View previous topic :: View next topic |
Author |
Message |
muke n00b
Joined: 17 Feb 2019 Posts: 51
|
Posted: Wed Mar 20, 2019 2:50 pm Post subject: Firefox fails to compile with LTO |
|
|
I'm trying to emege firefox on the stable branch and it keeps failing with the following error in the build.log (apologies for the broken encoding):
Code: |
78[1G[K[34m98:27.03[m [0m [0m[0m[1m[38;5;12m= [0m[0m[1mnote[0m[0m: /home/muke/portage_tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/ff/toolkit/library/release/deps/liblibloading-87564b6b542d4277.rlib(libloading-87564b6b542d4277.libloading0.rcgu.o):libloading0-e72b0deb5d17a15bb53fdb7c0b816e8e.rs:function core::ptr::drop_in_place: error: undefined reference to 'rust_libloading_dlerror_mutex_unlock'[0m[m
78[1G[K[34m98:27.03[m [0m /home/muke/portage_tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/ff/toolkit/library/release/deps/liblibloading-87564b6b542d4277.rlib(libloading-87564b6b542d4277.libloading0.rcgu.o):libloading0-e72b0deb5d17a15bb53fdb7c0b816e8e.rs:function libloading::os::unix::DlerrorMutexGuard::new: error: undefined reference to 'rust_libloading_dlerror_mutex_lock'[0m[m
78[1G[K[34m98:27.03[m [0m /home/muke/portage_tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/ff/toolkit/library/release/deps/liblibloading-87564b6b542d4277.rlib(libloading-87564b6b542d4277.libloading0.rcgu.o):libloading0-e72b0deb5d17a15bb53fdb7c0b816e8e.rs:function <libloading::os::unix::Library as core::ops::drop::Drop>::drop: error: undefined reference to 'rust_libloading_dlerror_mutex_lock'[0m[m
78[1G[K[34m98:27.03[m [0m /home/muke/portage_tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/ff/toolkit/library/release/deps/liblibloading-87564b6b542d4277.rlib(libloading-87564b6b542d4277.libloading0.rcgu.o):libloading0-e72b0deb5d17a15bb53fdb7c0b816e8e.rs:function <libloading::os::unix::Library as core::ops::drop::Drop>::drop: error: undefined reference to 'rust_libloading_dlerror_mutex_unlock'[0m[m
78[1G[K[34m98:27.03[m [0m collect2: error: ld returned 1 exit status[0m[m
78[1G[K[34m98:27.03[m [0m [0m[m
78[1G[K[34m98:27.03[m [m
78[1G[K[34m98:27.04[m [0m[1m[38;5;9merror[0m[0m[1m: aborting due to previous error[0m[m
78[1G[K[34m98:27.04[m [m
78[1G[K[34m98:27.54[m [0m[0m[1m[31merror:[0m Could not compile `style`.[m
78[1G[K[34m98:27.54[m [m
78[1G[K[34m98:27.54[m To learn more, run the command again with --verbose.[m
78[1G[K[34m98:27.56[m gmake[4]: *** [/home/muke/portage_tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/config/rules.mk:979: force-cargo-library-build] Error 101[m
78[1G[K[34m98:27.57[m gmake[4]: Leaving directory '/home/muke/portage_tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/ff/toolkit/library/rust'[m
78[1G[K[34m98:27.57[m gmake[3]: *** [/home/muke/portage_tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/config/recurse.mk:73: toolkit/library/rust/target] Error 2[m
|
Here's my make.conf:
Code: |
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CC="gcc"
CXX="g++"
COMMON_FLAGS="-march=native -O2 -pipe -fomit-frame-pointer -flto=6 -fuse-linker-plugin -fno-fat-lto-objects"
USE="alsa -gnome -kde -pulseaudio"
MAKEOPTS="-j6"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
PORTAGE_TMPDIR="/home/muke/portage_tmp"
AR="gcc-ar"
NM="gcc-nm"
RANLIB="gcc-ranlib"
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
INPUT_DEVICES="libinput mouse keyboard"
VIDEO_CARDS="intel i915 i965"
GRUB_PLATFORMS="pc coreboot"
L10N="en-GB"
GENTOO_MIRRORS="https://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://rsync.mirrorservice.org/distfiles.gentoo.org/"
|
I'm also using the gold linker.
And here's the full build.log: https://pastebin.com/yRSspraq
Any help would be appreciated, thanks. |
|
Back to top |
|
|
deejay l33t
Joined: 24 Aug 2004 Posts: 983 Location: Hannover, Germany
|
Posted: Wed Apr 03, 2019 5:40 am Post subject: |
|
|
Hi,
is there a special reason to compile the Firefox. You could use the www-client/firefox-bin package instead.
Regards
dee _________________
|
|
Back to top |
|
|
Maitreya Guru
Joined: 11 Jan 2006 Posts: 441
|
Posted: Wed Apr 03, 2019 8:59 am Post subject: |
|
|
deejay wrote: | Hi,
is there a special reason to compile the Firefox. You could use the www-client/firefox-bin package instead.
Regards
dee |
That's quite the opposite of what he is doing here.
firefox-bin is more for low powered systems and is compiled to run on most systems.
What OP is doing is optimizing Firefox (otherwise he would not compile, let alone with LTO, which is nothing _but_ optimization) |
|
Back to top |
|
|
Leio Developer
Joined: 27 Feb 2003 Posts: 494 Location: Estonia
|
Posted: Thu Apr 04, 2019 7:48 am Post subject: |
|
|
Mozilla provided binaries in firefox-bin are built with LTO too, and I believe also PGO. _________________ GNOME team lead; GStreamer; MIPS/ARM64 |
|
Back to top |
|
|
|