Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox fails to compile with LTO
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
muke
n00b
n00b


Joined: 17 Feb 2019
Posts: 51

PostPosted: Wed Mar 20, 2019 2:50 pm    Post subject: Firefox fails to compile with LTO Reply with quote

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:

7898:27.03   = note: /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'
7898:27.03           /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'
7898:27.03           /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'
7898:27.03           /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'
7898:27.03           collect2: error: ld returned 1 exit status
7898:27.03           
7898:27.03 
7898:27.04 error: aborting due to previous error
7898:27.04 
7898:27.54 error: Could not compile `style`.
7898:27.54 
7898:27.54 To learn more, run the command again with --verbose.
7898:27.56 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
7898:27.57 gmake[4]: Leaving directory '/home/muke/portage_tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/ff/toolkit/library/rust'
7898:27.57 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


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
View user's profile Send private message
deejay
l33t
l33t


Joined: 24 Aug 2004
Posts: 983
Location: Hannover, Germany

PostPosted: Wed Apr 03, 2019 5:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 441

PostPosted: Wed Apr 03, 2019 8:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 494
Location: Estonia

PostPosted: Thu Apr 04, 2019 7:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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