Slackware - ARM This forum is for the discussion of Slackware ARM. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-12-2022, 02:39 AM
|
#1
|
Member
Registered: Oct 2015
Location: Where the buffalo's roam
Distribution: Slackware Current Multilib
Posts: 161
Rep:
|
firefox error on slackware arm current
so i was giving firefox a few tries from slackware64 source from earlier this year(the iso date)..
this week.
now i didnt do much patch chasing. as I never had good luck building browsers from source by myself. so the point of this topic is just to document first steps and maybe down the line there can be success for us
and if not theres always hope
Quote:
1:23.72 checking for rust host triplet...
1:23.72 ERROR: The rust compiler host (armv7-unknown-linux-gnueabihf) is not suitable for the configure host (armv7-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf).
1:23.73 You can solve this by:
1:23.73 * Set your configure host to match the rust compiler host by editing your
1:23.73 mozconfig and adding "ac_add_options --host=armv7-unknown-linux-gnueabihf".
1:23.74 * Or, install the rust toolchain for armv7-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf, if supported, by running
1:23.74 "rustup default stable-arm-unknown-linux-gnueabihf"
Error running mach:
['build']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file build| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
Exception: Process executed with non-0 exit code 1: ['/tmp/firefox-98.0.2/obj/_virtualenvs/build/bin/python', '/mnt/tmp/firefox-98.0.2/configure.py']
File "/mnt/tmp/firefox-98.0.2/python/mozbuild/mozbuild/build_commands.py", line 220, in build
return driver.build(
File "/mnt/tmp/firefox-98.0.2/python/mozbuild/mozbuild/controller/building.py", line 1296, in build
config_rc = self.configure(
File "/mnt/tmp/firefox-98.0.2/python/mozbuild/mozbuild/controller/building.py", line 1677, in configure
status = self._run_command_in_objdir(
File "/mnt/tmp/firefox-98.0.2/python/mozbuild/mozbuild/base.py", line 862, in _run_command_in_objdir
return self.run_process(cwd=self.topobjdir, **args)
File "/mnt/tmp/firefox-98.0.2/python/mach/mach/mixin/process.py", line 180, in run_process
raise Exception(
|
definitely in no hurry to try. But it is firefox. It gurantee worthwhile later down the line imho. thanks for looking at what im doing
|
|
|
05-12-2022, 02:59 AM
|
#2
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,710
|
Hi
Firefox will never build from Slackware64's source tree - it required several patches and configuration option changes.
It was dropped from 32bit Slackware ARM as it stopped building a few years ago.
It's included in Slackware AArch64.
|
|
|
06-09-2023, 10:52 AM
|
#3
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,536
Rep: 
|
I tried anyway to compile firefox on Slackware ARM 15.0.
I managed to build an armv7-optimized rust 1.63.
I used gcc and g++ for firefox 102.12.
Although getting a "Finished release [optimized] target(s)", unfortunately, the build ended with:
Code:
177:43.05 In file included from /tmp/firefox-102.12.0/obj/dist/include/nsTArray.h:3343,
177:43.05 from /tmp/firefox-102.12.0/obj/dist/include/mozilla/dom/BindingDeclarations.h:25,
177:43.05 from /tmp/firefox-102.12.0/obj/dist/include/mozilla/dom/HTMLElementBinding.h:9,
177:43.05 from HTMLOptGroupElementBinding.cpp:4,
177:43.05 from UnifiedBindings9.cpp:2:
177:43.05 /tmp/firefox-102.12.0/obj/dist/include/nsTArray-inl.h: In member function ‘virtual bool mozilla::dom::HTMLOptionsCollection_Binding::DOMProxyHandler::ownPropNames(JSContext*, JS::Handle<JSObject*>, unsigned int, JS::MutableHandleVector<JS::PropertyKey>) const’:
177:43.06 /tmp/firefox-102.12.0/obj/dist/include/nsTArray-inl.h:128:40: warning: array subscript 8 is outside array bounds of ‘nsTArray<nsTString<char16_t> > [1]’ [-Warray-bounds]
177:43.06 128 | return mHdr == GetAutoArrayBuffer(4) || mHdr == GetAutoArrayBuffer(8);
177:43.06 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
177:43.09 In file included from UnifiedBindings9.cpp:28:
177:43.09 HTMLOptionsCollectionBinding.cpp:672:24: note: while referencing ‘names’
177:43.09 672 | nsTArray<nsString> names;
177:43.09 | ^~~~~
178:25.61 Compiling webrender_bindings v0.1.0 (/tmp/firefox-102.12.0/gfx/webrender_bindings)
178:29.68 Compiling gkrust-shared v0.1.0 (/tmp/firefox-102.12.0/toolkit/library/rust/shared)
195:25.67 Compiling gkrust v0.1.0 (/tmp/firefox-102.12.0/toolkit/library/rust)
195:28.19 Finished release [optimized] target(s) in 186m 19s
195:32.85 gmake[2]: *** [/tmp/firefox-102.12.0/config/recurse.mk:34: compile] Error 2
195:32.89 gmake[1]: *** [/tmp/firefox-102.12.0/config/rules.mk:361: default] Error 2
195:32.91 gmake: *** [client.mk:63: build] Error 2
195:32.95 0 compiler warnings present.
195:35.74 Failed to parse ccache stats output: 'Uncacheable/Multiple source files' '14'
195:35.75 /usr/bin/notify-send --app-name=Mozilla Build System Mozilla Build System Build failed
Why do I do that ?
Because Debian SID has a working arm 32 firefox:
https://packages.debian.org/sid/armhf/firefox/download
Any help is welcome.
|
|
|
06-09-2023, 11:43 AM
|
#4
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,536
Rep: 
|
After a bit of inspection:
Code:
1:04.05 In file included from Unified_cpp_dom_base10.cpp:74:
1:04.05 /tmp/firefox-102.12.0/dom/base/nsTreeSanitizer.cpp:635:20: error: non-constant condition for static assertion
1:04.05 635 | static_assert(AllOf(std::begin(kURLAttributesSVG), std::end(kURLAttributesSVG),
1:04.05 | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1:04.05 636 | [](auto aURLAttributeSVG) {
1:04.05 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1:04.05 637 | return AnyOf(std::begin(kAttributesSVG),
1:04.05 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1:04.06 638 | std::end(kAttributesSVG),
1:04.06 | ~~~~~~~~~~~~~~~~~~~~~~~~~
1:04.06 639 | [&](auto aAttributeSVG) {
1:04.06 | ~~~~~~~~~~~~~~~~~~~~~~~~~
1:04.08 640 | return aAttributeSVG == aURLAttributeSVG;
1:04.08 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1:04.08 641 | });
1:04.08 | ~~~
1:04.08 642 | }));
1:04.08 | ~~
Last edited by Linux.tar.gz; 06-10-2023 at 01:46 AM.
|
|
|
06-09-2023, 12:11 PM
|
#5
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,536
Rep: 
|
May be related to this:
https://bugs.gentoo.org/850988
Quote:
This is indeed an issue with -fno-delete-null-pointer-checks, the build succeeds without this flag.
|
Any idea about how to disable this flag ?
|
|
|
06-10-2023, 02:18 AM
|
#6
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,536
Rep: 
|
I was able to build a working firefox from the main Slackware source tree without any patch, i did:
-remove rust
-build + install rust 1.63
-use gcc/g++ as the compilers
-use export CXXFLAGS="-O2 -pipe -mfloat-abi=hard -fdelete-null-pointer-checks" before the "./mach build" in the SlackBuild.
Youtube doesn't work but I don't care.
Last edited by Linux.tar.gz; 06-10-2023 at 07:50 AM.
|
|
1 members found this post helpful.
|
07-07-2023, 12:46 AM
|
#7
|
Member
Registered: Apr 2015
Posts: 53
Rep: 
|
Quote:
Originally Posted by Linux.tar.gz
I was able to build a working firefox from the main Slackware source tree without any patch, i did:
-remove rust
-build + install rust 1.63
-use gcc/g++ as the compilers
-use export CXXFLAGS="-O2 -pipe -mfloat-abi=hard -fdelete-null-pointer-checks" before the "./mach build" in the SlackBuild.
Youtube doesn't work but I don't care.
|
So you are on slackwarearm-15.0 and you are able to build natively firefox-102.12.0?
I tried to build natively firefox-111.0.1 on slackwarearm-15.0 and the result is always an "out of memory": https://bugzilla.mozilla.org/show_bug.cgi?id=1841042
It is because slackwarearm-15.0 is a 32-bit operating system so each process can only use 4GB of memory.
The build process on recent versions of firefox requires more, even with the options decreasing memory usage.
However, building recent versions of firefox on sackwareaarch64 should be fine because it is a 64-bit operating system.
Have you tried to build a more recent firefox than 102.12 please?
Last edited by YuGiOhJCJ; 07-07-2023 at 12:48 AM.
|
|
|
10-31-2023, 07:49 PM
|
#8
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,536
Rep: 
|
Last version I tried was 102.12. The build was successful.
It's a shame that it's a pain to compile, at a time when we should stop throwing out "old" hardware.
Last edited by Linux.tar.gz; 10-31-2023 at 07:50 PM.
|
|
|
All times are GMT -5. The time now is 03:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|