LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 05-12-2022, 02:39 AM   #1
slackartist
Member
 
Registered: Oct 2015
Location: Where the buffalo's roam
Distribution: Slackware Current Multilib
Posts: 161
Blog Entries: 20

Rep: Reputation: 26
Talking 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
 
Old 05-12-2022, 02:59 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,553

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
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.
 
Old 06-09-2023, 10:52 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
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.
 
Old 06-09-2023, 11:43 AM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
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.
 
Old 06-09-2023, 12:11 PM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
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 ?
 
Old 06-10-2023, 02:18 AM   #6
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Lightbulb

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.
Old 07-07-2023, 12:46 AM   #7
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Rep: Reputation: Disabled
Quote:
Originally Posted by Linux.tar.gz View Post
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.
 
Old 10-31-2023, 07:49 PM   #8
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KODI Leia - 18.x MediaPlayer - Optimized for Raspberry Pi1/Zero/Pi2B/Pi3B(+) on Slackware ARM 14.2 SF & Slackware ARM - current HF abga Slackware - ARM 25 04-29-2020 05:43 PM
[SOLVED] KODI Krypton - 17.x MediaPlayer - Optimized for Raspberry Pi1/Pi2/Pi3 on Slackware ARM 14.2 SF & Slackware ARM - current HF abga Slackware - ARM 40 08-28-2018 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration