Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
firefox-52.4.0 ppc64 fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
rican-linux
n00b
n00b


Joined: 13 Apr 2015
Posts: 34

PostPosted: Fri Jan 12, 2018 6:04 am    Post subject: firefox-52.4.0 ppc64 fails to build Reply with quote

I am trying to build firefox 54 on my PowerMac G5. It marked as stable in packages.gentoo.org however it is failing to build. Here is tail end of the build log. Any help to figure out what is wrong is appreciated

Code:

Executing /var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/ff/dist/bin/xpcshell -g /var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/ff/dist/bin/ -a /var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/ff/dist/bin/ -f /var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
[22595] ###!!! ABORT: u_init() failed: file /var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/xpcom/build/XPCOMInit.cpp, line 709
[22595] ###!!! ABORT: u_init() failed: file /var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/xpcom/build/XPCOMInit.cpp, line 709
Traceback (most recent call last):
  File "/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/toolkit/mozapps/installer/packager.py", line 415, in <module>
    main()
  File "/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/toolkit/mozapps/installer/packager.py", line 409, in main
    args.source, gre_path, base)
  File "/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/toolkit/mozapps/installer/packager.py", line 166, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/python/mozbuild/mozpack/errors.py", line 103, in fatal
    self._handle(self.FATAL, msg)
  File "/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/python/mozbuild/mozpack/errors.py", line 98, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
make[1]: *** [/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/toolkit/mozapps/installer/packager.mk:41: stage-package] Error 1
make[1]: Leaving directory '/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/ff/browser/installer'
make: *** [/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/browser/build.mk:21: install] Error 2
 [31;01m*[0m ERROR: www-client/firefox-52.4.0::gentoo failed (install phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m
 [31;01m*[0m If you need support, post the output of `emerge --info '=www-client/firefox-52.4.0::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=www-client/firefox-52.4.0::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/www-client/firefox-52.4.0/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-52.4.0/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr/ff'
 [31;01m*[0m S: '/var/tmp/portage/www-client/firefox-52.4.0/work/firefox-52.4.0esr'
Back to top
View user's profile Send private message
johker
n00b
n00b


Joined: 15 Mar 2018
Posts: 3

PostPosted: Thu Mar 15, 2018 8:57 am    Post subject: Reply with quote

Hi there, exactly same error here, Kernel 4.14.24, ppc64.
Any help will be much apreciated. Thanks
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31348
Location: here

PostPosted: Thu Mar 15, 2018 10:42 am    Post subject: Reply with quote

You enabled debug use flag (see here)?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10676
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Mar 15, 2018 11:11 am    Post subject: Reply with quote

Moved from Portage & Programming to Gentoo on PPC where it has a better visibility.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
johker
n00b
n00b


Joined: 15 Mar 2018
Posts: 3

PostPosted: Thu Mar 15, 2018 6:20 pm    Post subject: Reply with quote

Thanks, but no success..
Compilation took more to complete, like 4h or more didn't take notice, but failed with same error, trying +custom-optimiztion, as described in https://forums.gentoo.org/viewtopic-t-1064932.html?sid=c8b38500db927f697643a35c7d8dcd06
Back to top
View user's profile Send private message
johker
n00b
n00b


Joined: 15 Mar 2018
Posts: 3

PostPosted: Sat Mar 17, 2018 4:30 pm    Post subject: Reply with quote

Still same output.
neither -debug or +custom-optimization worked.
Back to top
View user's profile Send private message
schwarzygesetzlos
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 187
Location: Funeralopolis

PostPosted: Mon Mar 26, 2018 4:54 pm    Post subject: Reply with quote

My working USE-flag combination for ppc64, built with gcc-7.3.0:
Code:
www-client/firefox -custom-cflags custom-optimization system-icu system-harfbuzz system-jpeg system-libevent system-libvpx system-sqlite


With gcc-6.4.0 I needed to build with CFLAGS="-O1". Which is generally not a bad idea when building big projects with only 2 cores. ;)
_________________
Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22853

PostPosted: Tue Mar 27, 2018 1:54 am    Post subject: Reply with quote

schwarzygesetzlos wrote:
With gcc-6.4.0 I needed to build with CFLAGS="-O1". Which is generally not a bad idea when building big projects with only 2 cores. ;)
Could you explain your reasoning on this? Reducing the optimization level will reduce the work done by the compiler, which may help during the build, but it comes at the price of building less optimized code, which may run less well. You would probably be better served by reducing the load in other ways, such as reducing MAKEOPTS.
Back to top
View user's profile Send private message
schwarzygesetzlos
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 187
Location: Funeralopolis

PostPosted: Sun Apr 01, 2018 8:04 pm    Post subject: Reply with quote

@Hu:

Yes that's the point, that using -O1 will reduce the work done by the compiler, which shortens build time greatly on a machine from 2005. ;) I am aware that the code is less optimized as a result. But to my experience FF needs to be rebuilt not too rarely (when some of its' deps change), which takes rather long on a G4/G5. If I had a Quad-G5 or some POWER6-9 machine, I would of course prefer -O2. Here's some nice comparison of the -O flags and some benchmarks: https://phoronix.com/scan.php?page=news_item&px=GCC-6.1-Compiler-Optimizations

Changing MAKEOPTS to -j2 or -j1 will of course reduce the load but increase build time. I guess running -j3 on this dual core machine is a good choice, and greater values may even increase build time.
_________________
Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum