Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622904 - www-client/firefox-54.0 fails build in install phase, can't find libxul.so
Summary: www-client/firefox-54.0 fails build in install phase, can't find libxul.so
Status: RESOLVED DUPLICATE of bug 580726
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-28 10:25 UTC by Duncan
Modified: 2017-06-28 15:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,6.11 KB, text/plain)
2017-06-28 10:25 UTC, Duncan
Details
full build log (www-client:firefox-54.0:20170628-084040.log.xz,128.87 KB, application/octet-stream)
2017-06-28 10:41 UTC, Duncan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2017-06-28 10:25:33 UTC
Created attachment 478270 [details]
emerge --info

This looks somewhat similar to bug #617882, problems with xpcshell in install phase, but...
* firefox-54.0 now, that was 53.
* ~amd64 gcc-6.3.0, not the 7.x mentioned there.
* There it was xpcshell aborting for some other reason, here it's xpcshell: error while loading shared libraries: libxul.so: cannot open shared object file: No such file or directory

But there's two libxul.so files there, in ff/dist/bin and ff/toolkit/library.

FWIW my cpu is a bd1, so it has avx, but not the new variants thereof.

Note that I've been running a firefox downloaded directly from mozilla and installed in my home dir for perhaps a year now, so I've not built the recent firefoxes to have an idea if it's new behavior or not, and there's no existing libxul.so in the system dirs for it to use, so it MUST use the one it just built.  But it apparently can't find it... either copy.

Here's the install phase output:

>>> Install firefox-54.0 into /tmp/portage/www-client/firefox-54.0/image/ category www-client
 * PT_PAX marking -m /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell with scanelf
 * XATTR_PAX marking -me /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell with setfattr
 * Failed to set XATTR_PAX markings -me /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell.
 * Adding prefs from mozconfig to /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/browser/defaults/preferences/all-gentoo.js
make -j10 -l8 DESTDIR=/tmp/portage/www-client/firefox-54.0/image/ install 
make[1]: Entering directory '/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/browser/installer'
OMNIJAR_NAME=omni.ja \
NO_PKG_FILES="core bsdecho js js-config jscpucfg nsinstall viewer TestGtkEmbed elf-dynstr-gc mangle* maptsv* mfc* msdump* msmap* nm2tsv* nsinstall* res/samples res/throbber shlibsign* certutil* pk12util* BadCertServer* OCSPStaplingServer* GenerateOCSPResponse* chrome/chrome.rdf chrome/app-chrome.manifest chrome/overlayinfo components/compreg.dat components/xpti.dat content_unit_tests necko_unit_tests *.dSYM " \
/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/_virtualenv/bin/python /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/installer/packager.py -DMOZ_APP_NAME=firefox -DPREF_DIR=defaults/preferences -DMOZ_GTK=1 -DMOZ_GTK3=1 -DMOZ_SYSTEM_NSPR=1 -DMOZ_SYSTEM_NSS=1 -DJAREXT= -DMOZ_CHILD_PROCESS_NAME=plugin-container -DDLL_PREFIX=lib -DDLL_SUFFIX=.so -DBIN_SUFFIX= -DDIR_MACOS= -DDIR_RESOURCES= -DBINPATH=bin -DRESPATH=bin -DLPROJ_ROOT=en -DMOZ_ICU_VERSION=58 -DMOZ_SYSTEM_ICU -DMOZ_ICU_DBG_SUFFIX= -DICU_DATA_FILE=icudt58l.dat -DENABLE_MARIONETTE=1 -DA11Y_LOG=1 -DACCESSIBILITY=1 -DATK_MAJOR_VERSION=2 -DATK_MINOR_VERSION=22 -DATK_REV_VERSION=0 -DBUILD_CTYPES=1 -DCROSS_COMPILE='' -DD_INO=d_ino -DENABLE_INTL_API=1 -DENABLE_SYSTEM_EXTENSION_DIRS=1 -DEXPOSE_INTL_API=1 -DFIREFOX_VERSION=54.0 -DFORCE_PR_LOG=1 -DFUNCPROTO=15 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGL_PROVIDER_GLX=1 -DHAVE_64BIT_BUILD=1 -DHAVE_ALLOCA_H=1 -DHAVE_BYTESWAP_H=1 -DHAVE_CLOCK_MONOTONIC=1 -DHAVE_CPUID_H=1 -DHAVE_DIRENT_H=1 -DHAVE_DLADDR=1 -DHAVE_DLOPEN=1 -DHAVE_FONTCONFIG_FCFREETYPE_H=1 -DHAVE_FT_BITMAP_SIZE_Y_PPEM=1 -DHAVE_FT_GLYPHSLOT_EMBOLDEN=1 -DHAVE_FT_LOAD_SFNT_TABLE=1 -DHAVE_GETOPT_H=1 -DHAVE_GMTIME_R=1 -DHAVE_I18N_LC_MESSAGES=1 -DHAVE_INTTYPES_H=1 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LCHOWN=1 -DHAVE_LIBPNG=1 -DHAVE_LIBVPX=1 -DHAVE_LIBXSS=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_PERF_EVENT_H=1 -DHAVE_LINUX_QUOTA_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_LOCALECONV=1 -DHAVE_LOCALTIME_R=1 -DHAVE_LSTAT64=1 -DHAVE_MALLINFO=1 -DHAVE_MALLOC_H=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MEMALIGN=1 -DHAVE_MEMMEM=1 -DHAVE_NETINET_IN_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_POSIX_FALLOCATE=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_PTHREAD_H=1 -DHAVE_RES_NINIT=1 -DHAVE_SETPRIORITY=1 -DHAVE_STAT64=1 -DHAVE_STDINT_H=1 -DHAVE_STRERROR=1 -DHAVE_STRNDUP=1 -DHAVE_SYSCALL=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_SYS_QUOTA_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_THREAD_TLS_KEYWORD=1 -DHAVE_TRUNCATE64=1 -DHAVE_UNISTD_H=1 -DHAVE_VALLOC=1 -DHAVE_VA_COPY=1 -DHAVE_VA_LIST_AS_ARRAY=1 -DHAVE_VISIBILITY_ATTRIBUTE=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE__UNWIND_BACKTRACE=1 -DHAVE___CXA_DEMANGLE=1 -DJS_DEFAULT_JITREPORT_GRANULARITY=3 -DMALLOC_H='<malloc.h>' -DMALLOC_USABLE_SIZE_CONST_PTR='' -DMOZILLA_UAVERSION='"54.0"' -DMOZILLA_VERSION='"54.0"' -DMOZILLA_VERSION_U=54.0 -DMOZ_ACCESSIBILITY_ATK=1 -DMOZ_ADDON_SIGNING=1 -DMOZ_APP_UA_NAME='""' -DMOZ_APP_UA_VERSION='"54.0"' -DMOZ_B2G_OS_NAME='""' -DMOZ_B2G_VERSION='"1.0.0"' -DMOZ_BUILD_APP=browser -DMOZ_BUNDLED_FONTS=1 -DMOZ_CONTENT_SANDBOX=1 -DMOZ_CRASHREPORTER_ENABLE_PERCENT=100 -DMOZ_DATA_REPORTING=1 -DMOZ_DEFAULT_MOZILLA_FIVE_HOME='"/usr/lib64/firefox"' -DMOZ_DISTRIBUTION_ID='"org.mozilla"' -DMOZ_DLL_SUFFIX='".so"' -DMOZ_ENABLE_DBUS=1 -DMOZ_ENABLE_GIO=1 -DMOZ_ENABLE_MASK_AS_SHORTHAND=1 -DMOZ_ENABLE_SIGNMAR=1 -DMOZ_ENABLE_SKIA=1 -DMOZ_ENABLE_STARTUP_NOTIFICATION=1 -DMOZ_ENABLE_XREMOTE=1 -DMOZ_FEEDS=1 -DMOZ_FFMPEG=1 -DMOZ_FFVPX=1 -DMOZ_FMP4=1 -DMOZ_GECKO_PROFILER=1 -DMOZ_GLUE_IN_PROGRAM=1 -DMOZ_GMP_SANDBOX=1 -DMOZ_INSTRUMENT_EVENT_LOOP=1 -DMOZ_JSDOWNLOADS=1 -DMOZ_LIBAV_FFT=1 -DMOZ_LOGGING=1 -DMOZ_MACBUNDLE_ID=org.mozilla.firefoxdeveloperedition -DMOZ_MEMORY=1 -DMOZ_MEMORY_LINUX=1 -DMOZ_PEERCONNECTION=1 -DMOZ_PERMISSIONS=1 -DMOZ_PHOENIX=1 -DMOZ_PLACES=1 -DMOZ_RAW=1 -DMOZ_SAMPLE_TYPE_FLOAT32=1 -DMOZ_SANDBOX=1 -DMOZ_SCTP=1 -DMOZ_SECUREELEMENT=1 -DMOZ_SERVICES_HEALTHREPORT=1 -DMOZ_SRTP=1 -DMOZ_STATIC_JS=1 -DMOZ_SYSTEM_SQLITE=1 -DMOZ_TREE_CAIRO=1 -DMOZ_TREE_PIXMAN=1 -DMOZ_UPDATE_CHANNEL=default -DMOZ_USER_DIR='".mozilla"' -DMOZ_VORBIS=1 -DMOZ_VPX_NO_MEM_REPORTING=1 -DMOZ_WEBM_ENCODER=1 -DMOZ_WEBRTC=1 -DMOZ_WEBRTC_ASSERT_ALWAYS=1 -DMOZ_WEBRTC_SIGNALING=1 -DMOZ_WEBSPEECH=1 -DMOZ_WEBSPEECH_TEST_BACKEND=1 -DMOZ_WIDGET_GTK=3 -DMOZ_X11=1 -DMOZ_XUL=1 -DNO_NSPR_10_SUPPORT=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1 -DRELEASE_OR_BETA=1 -DSTATIC_JS_API=1 -DSTDC_HEADERS=1 -DTARGET_XPCOM_ABI='"x86_64-gcc3"' -DUSE_SKIA=1 -DUSE_SKIA_GPU=1 -DU_USING_ICU_NAMESPACE=0 -DVA_COPY=va_copy -DXP_LINUX=1 -DXP_UNIX=1 -D_REENTRANT=1 -DAB_CD=en-US \
        --format omni \
        --removals /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/browser/installer/removed-files.in \
        --ignore-errors \
         \
         \
         \
        --optimizejars \
         \
        /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/browser/installer/package-manifest.in ../../dist ../../dist/firefox \

Executing /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell -g /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/ -a /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/ -f /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell: error while loading shared libraries: libxul.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/installer/packager.py", line 397, in <module>
    main()
  File "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/installer/packager.py", line 391, in main
    args.source, gre_path, base)
  File "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/installer/packager.py", line 165, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/python/mozbuild/mozpack/errors.py", line 103, in fatal
    self._handle(self.FATAL, msg)
  File "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/python/mozbuild/mozpack/errors.py", line 98, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
make[1]: *** [/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/installer/packager.mk:41: stage-package] Error 1
make[1]: Leaving directory '/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/browser/installer'
make: *** [/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/browser/build.mk:18: install] Error 2
 * ERROR: www-client/firefox-54.0::gentoo failed (install phase):
 *   emake failed

Output of emerge -pqv firefox:
[ebuild  N    ] www-client/firefox-54.0  USE="bindist custom-cflags custom-optimization dbus gmp-autoupdate hwaccel startup-notification system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite -debug -hardened -jack -jemalloc (-neon) -nsplugin -pgo -pulseaudio (-selinux) (-system-cairo) {-test} -wifi" L10N="-ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 

I'm attaching emerge --info and will attach the full build log, and will try without the custom-cflags and custom-optimization USE too but haven't yet.

(BTW, the gentoo bugzilla server seems to be missing a css file or something ATM, bug pages are printing without the usual formatted gentoo header, without line wrapping and missing some other page formatting, making reading other bugs for dups really difficult ATM.  A forced refresh doeszn't fix it, but it was working a few hours ago.  Hopefully it's a short-lived bug.)
Comment 1 Duncan 2017-06-28 10:41:15 UTC
Created attachment 478272 [details]
full build log

OK, trying it xz-ed.

(Seems some bug pages are showing up properly formatted, some not.  Maybe it depends on the bugzilla server node I hit.  The bug page refresh after submitting the bug was well formatted, this page for adding an attachment isn't.)
Comment 2 Duncan 2017-06-28 13:10:41 UTC
Progress!

After trying without custom-optimization, with the patch from the earlier bug that supposedly disabled the cache generation, etc, to no avail...

I decided to try installing firefox-bin, to see if the firefox build would see its libxul.so.

Still no luck, at first, but then I realized that it installs to /opt (which makes sense for a pre-built binary package), and...

symlinked /usr/lib64/libxul.so -> /opt/firefox/libxul.so.

That actually got me further, so it worked... as far as it went.

After that I got a similar error about a missing libmozsandbox.so, which of course can now be expected, since I didn't symlink any of the other libs.


So it seems the installation phase is trying to use the system libs instead of what it's installing and can't see what it has just built.  That explains why I seem to be the first to see this, since I'm merging "clean", while most people will be merging over an existing firefox.

That also might explain some of the other install-phase xpcshell related bugs, if it's attempting to use the possibly old system libraries instead of the not yet actually qmerged to system new versions.

So how to tell it to use the just built versions?
Comment 3 Jory A. Pratt gentoo-dev 2017-06-28 15:15:51 UTC
(In reply to Duncan from comment #2)
> Progress!
> 
> After trying without custom-optimization, with the patch from the earlier
> bug that supposedly disabled the cache generation, etc, to no avail...
> 
> I decided to try installing firefox-bin, to see if the firefox build would
> see its libxul.so.
> 
> Still no luck, at first, but then I realized that it installs to /opt (which
> makes sense for a pre-built binary package), and...
> 
> symlinked /usr/lib64/libxul.so -> /opt/firefox/libxul.so.
> 
> That actually got me further, so it worked... as far as it went.
> 
> After that I got a similar error about a missing libmozsandbox.so, which of
> course can now be expected, since I didn't symlink any of the other libs.
> 
> 
> So it seems the installation phase is trying to use the system libs instead
> of what it's installing and can't see what it has just built.  That explains
> why I seem to be the first to see this, since I'm merging "clean", while
> most people will be merging over an existing firefox.
> 
> That also might explain some of the other install-phase xpcshell related
> bugs, if it's attempting to use the possibly old system libraries instead of
> the not yet actually qmerged to system new versions.
> 
> So how to tell it to use the just built versions?

This is very wrong, this is a sandbox issue where it is looking to use the system installed libxul.so when it shouldn't. Please revert all your changes and for simple testing just emerge -C firefox && emerge firefox
Comment 4 Jory A. Pratt gentoo-dev 2017-06-28 15:18:54 UTC
(In reply to Duncan from comment #0)
> Created attachment 478270 [details]
> emerge --info
> 
> This looks somewhat similar to bug #617882, problems with xpcshell in
> install phase, but...
> * firefox-54.0 now, that was 53.
> * ~amd64 gcc-6.3.0, not the 7.x mentioned there.
> * There it was xpcshell aborting for some other reason, here it's xpcshell:
> error while loading shared libraries: libxul.so: cannot open shared object
> file: No such file or directory
> 
> But there's two libxul.so files there, in ff/dist/bin and ff/toolkit/library.
> 
> FWIW my cpu is a bd1, so it has avx, but not the new variants thereof.
> 
> Note that I've been running a firefox downloaded directly from mozilla and
> installed in my home dir for perhaps a year now, so I've not built the
> recent firefoxes to have an idea if it's new behavior or not, and there's no
> existing libxul.so in the system dirs for it to use, so it MUST use the one
> it just built.  But it apparently can't find it... either copy.
> 
> Here's the install phase output:
> 
> >>> Install firefox-54.0 into /tmp/portage/www-client/firefox-54.0/image/ category www-client
>  * PT_PAX marking -m
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell
> with scanelf
>  * XATTR_PAX marking -me
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell
> with setfattr
>  * Failed to set XATTR_PAX markings -me
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell.
>  * Adding prefs from mozconfig to
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/browser/
> defaults/preferences/all-gentoo.js
> make -j10 -l8 DESTDIR=/tmp/portage/www-client/firefox-54.0/image/ install 
> make[1]: Entering directory
> '/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/browser/installer'
> OMNIJAR_NAME=omni.ja \
> NO_PKG_FILES="core bsdecho js js-config jscpucfg nsinstall viewer
> TestGtkEmbed elf-dynstr-gc mangle* maptsv* mfc* msdump* msmap* nm2tsv*
> nsinstall* res/samples res/throbber shlibsign* certutil* pk12util*
> BadCertServer* OCSPStaplingServer* GenerateOCSPResponse* chrome/chrome.rdf
> chrome/app-chrome.manifest chrome/overlayinfo components/compreg.dat
> components/xpti.dat content_unit_tests necko_unit_tests *.dSYM " \
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/_virtualenv/bin/
> python
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/
> installer/packager.py -DMOZ_APP_NAME=firefox -DPREF_DIR=defaults/preferences
> -DMOZ_GTK=1 -DMOZ_GTK3=1 -DMOZ_SYSTEM_NSPR=1 -DMOZ_SYSTEM_NSS=1 -DJAREXT=
> -DMOZ_CHILD_PROCESS_NAME=plugin-container -DDLL_PREFIX=lib -DDLL_SUFFIX=.so
> -DBIN_SUFFIX= -DDIR_MACOS= -DDIR_RESOURCES= -DBINPATH=bin -DRESPATH=bin
> -DLPROJ_ROOT=en -DMOZ_ICU_VERSION=58 -DMOZ_SYSTEM_ICU -DMOZ_ICU_DBG_SUFFIX=
> -DICU_DATA_FILE=icudt58l.dat -DENABLE_MARIONETTE=1 -DA11Y_LOG=1
> -DACCESSIBILITY=1 -DATK_MAJOR_VERSION=2 -DATK_MINOR_VERSION=22
> -DATK_REV_VERSION=0 -DBUILD_CTYPES=1 -DCROSS_COMPILE='' -DD_INO=d_ino
> -DENABLE_INTL_API=1 -DENABLE_SYSTEM_EXTENSION_DIRS=1 -DEXPOSE_INTL_API=1
> -DFIREFOX_VERSION=54.0 -DFORCE_PR_LOG=1 -DFUNCPROTO=15
> -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4
> -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32
> -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGL_PROVIDER_GLX=1
> -DHAVE_64BIT_BUILD=1 -DHAVE_ALLOCA_H=1 -DHAVE_BYTESWAP_H=1
> -DHAVE_CLOCK_MONOTONIC=1 -DHAVE_CPUID_H=1 -DHAVE_DIRENT_H=1 -DHAVE_DLADDR=1
> -DHAVE_DLOPEN=1 -DHAVE_FONTCONFIG_FCFREETYPE_H=1
> -DHAVE_FT_BITMAP_SIZE_Y_PPEM=1 -DHAVE_FT_GLYPHSLOT_EMBOLDEN=1
> -DHAVE_FT_LOAD_SFNT_TABLE=1 -DHAVE_GETOPT_H=1 -DHAVE_GMTIME_R=1
> -DHAVE_I18N_LC_MESSAGES=1 -DHAVE_INTTYPES_H=1 -DHAVE_LANGINFO_CODESET=1
> -DHAVE_LCHOWN=1 -DHAVE_LIBPNG=1 -DHAVE_LIBVPX=1 -DHAVE_LIBXSS=1
> -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_PERF_EVENT_H=1 -DHAVE_LINUX_QUOTA_H=1
> -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_LOCALECONV=1 -DHAVE_LOCALTIME_R=1
> -DHAVE_LSTAT64=1 -DHAVE_MALLINFO=1 -DHAVE_MALLOC_H=1
> -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MEMALIGN=1 -DHAVE_MEMMEM=1
> -DHAVE_NETINET_IN_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_POSIX_FADVISE=1
> -DHAVE_POSIX_FALLOCATE=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_PTHREAD_H=1
> -DHAVE_RES_NINIT=1 -DHAVE_SETPRIORITY=1 -DHAVE_STAT64=1 -DHAVE_STDINT_H=1
> -DHAVE_STRERROR=1 -DHAVE_STRNDUP=1 -DHAVE_SYSCALL=1 -DHAVE_SYS_QUEUE_H=1
> -DHAVE_SYS_QUOTA_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_THREAD_TLS_KEYWORD=1
> -DHAVE_TRUNCATE64=1 -DHAVE_UNISTD_H=1 -DHAVE_VALLOC=1 -DHAVE_VA_COPY=1
> -DHAVE_VA_LIST_AS_ARRAY=1 -DHAVE_VISIBILITY_ATTRIBUTE=1
> -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE__UNWIND_BACKTRACE=1
> -DHAVE___CXA_DEMANGLE=1 -DJS_DEFAULT_JITREPORT_GRANULARITY=3
> -DMALLOC_H='<malloc.h>' -DMALLOC_USABLE_SIZE_CONST_PTR=''
> -DMOZILLA_UAVERSION='"54.0"' -DMOZILLA_VERSION='"54.0"'
> -DMOZILLA_VERSION_U=54.0 -DMOZ_ACCESSIBILITY_ATK=1 -DMOZ_ADDON_SIGNING=1
> -DMOZ_APP_UA_NAME='""' -DMOZ_APP_UA_VERSION='"54.0"' -DMOZ_B2G_OS_NAME='""'
> -DMOZ_B2G_VERSION='"1.0.0"' -DMOZ_BUILD_APP=browser -DMOZ_BUNDLED_FONTS=1
> -DMOZ_CONTENT_SANDBOX=1 -DMOZ_CRASHREPORTER_ENABLE_PERCENT=100
> -DMOZ_DATA_REPORTING=1
> -DMOZ_DEFAULT_MOZILLA_FIVE_HOME='"/usr/lib64/firefox"'
> -DMOZ_DISTRIBUTION_ID='"org.mozilla"' -DMOZ_DLL_SUFFIX='".so"'
> -DMOZ_ENABLE_DBUS=1 -DMOZ_ENABLE_GIO=1 -DMOZ_ENABLE_MASK_AS_SHORTHAND=1
> -DMOZ_ENABLE_SIGNMAR=1 -DMOZ_ENABLE_SKIA=1
> -DMOZ_ENABLE_STARTUP_NOTIFICATION=1 -DMOZ_ENABLE_XREMOTE=1 -DMOZ_FEEDS=1
> -DMOZ_FFMPEG=1 -DMOZ_FFVPX=1 -DMOZ_FMP4=1 -DMOZ_GECKO_PROFILER=1
> -DMOZ_GLUE_IN_PROGRAM=1 -DMOZ_GMP_SANDBOX=1 -DMOZ_INSTRUMENT_EVENT_LOOP=1
> -DMOZ_JSDOWNLOADS=1 -DMOZ_LIBAV_FFT=1 -DMOZ_LOGGING=1
> -DMOZ_MACBUNDLE_ID=org.mozilla.firefoxdeveloperedition -DMOZ_MEMORY=1
> -DMOZ_MEMORY_LINUX=1 -DMOZ_PEERCONNECTION=1 -DMOZ_PERMISSIONS=1
> -DMOZ_PHOENIX=1 -DMOZ_PLACES=1 -DMOZ_RAW=1 -DMOZ_SAMPLE_TYPE_FLOAT32=1
> -DMOZ_SANDBOX=1 -DMOZ_SCTP=1 -DMOZ_SECUREELEMENT=1
> -DMOZ_SERVICES_HEALTHREPORT=1 -DMOZ_SRTP=1 -DMOZ_STATIC_JS=1
> -DMOZ_SYSTEM_SQLITE=1 -DMOZ_TREE_CAIRO=1 -DMOZ_TREE_PIXMAN=1
> -DMOZ_UPDATE_CHANNEL=default -DMOZ_USER_DIR='".mozilla"' -DMOZ_VORBIS=1
> -DMOZ_VPX_NO_MEM_REPORTING=1 -DMOZ_WEBM_ENCODER=1 -DMOZ_WEBRTC=1
> -DMOZ_WEBRTC_ASSERT_ALWAYS=1 -DMOZ_WEBRTC_SIGNALING=1 -DMOZ_WEBSPEECH=1
> -DMOZ_WEBSPEECH_TEST_BACKEND=1 -DMOZ_WIDGET_GTK=3 -DMOZ_X11=1 -DMOZ_XUL=1
> -DNO_NSPR_10_SUPPORT=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1
> -DRELEASE_OR_BETA=1 -DSTATIC_JS_API=1 -DSTDC_HEADERS=1
> -DTARGET_XPCOM_ABI='"x86_64-gcc3"' -DUSE_SKIA=1 -DUSE_SKIA_GPU=1
> -DU_USING_ICU_NAMESPACE=0 -DVA_COPY=va_copy -DXP_LINUX=1 -DXP_UNIX=1
> -D_REENTRANT=1 -DAB_CD=en-US \
>         --format omni \
>         --removals
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/browser/installer/
> removed-files.in \
>         --ignore-errors \
>          \
>          \
>          \
>         --optimizejars \
>          \
>        
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/browser/installer/
> package-manifest.in ../../dist ../../dist/firefox \
> 
> Executing
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell
> -g /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/ -a
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/ -f
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/
> installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
> /tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell:
> error while loading shared libraries: libxul.so: cannot open shared object
> file: No such file or directory
> Traceback (most recent call last):
>   File
> "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/
> installer/packager.py", line 397, in <module>
>     main()
>   File
> "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/
> installer/packager.py", line 391, in main
>     args.source, gre_path, base)
>   File
> "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/
> installer/packager.py", line 165, in precompile_cache
>     errors.fatal('Error while running startup cache precompilation')
>   File
> "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/python/mozbuild/
> mozpack/errors.py", line 103, in fatal
>     self._handle(self.FATAL, msg)
>   File
> "/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/python/mozbuild/
> mozpack/errors.py", line 98, in _handle
>     raise ErrorMessage(msg)
> mozpack.errors.ErrorMessage: Error: Error while running startup cache
> precompilation
> make[1]: ***
> [/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/
> installer/packager.mk:41: stage-package] Error 1
> make[1]: Leaving directory
> '/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/browser/installer'
> make: ***
> [/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/browser/build.mk:18:
> install] Error 2
>  * ERROR: www-client/firefox-54.0::gentoo failed (install phase):
>  *   emake failed
> 
> Output of emerge -pqv firefox:
> [ebuild  N    ] www-client/firefox-54.0  USE="bindist custom-cflags
> custom-optimization dbus gmp-autoupdate hwaccel startup-notification
> system-harfbuzz system-icu system-jpeg system-libevent system-libvpx
> system-sqlite -debug -hardened -jack -jemalloc (-neon) -nsplugin -pgo
> -pulseaudio (-selinux) (-system-cairo) {-test} -wifi" L10N="-ach -af -an -ar
> -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el
> -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy
> -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk
> -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR
> -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi
> -xh -zh-CN -zh-TW" 
> 
> I'm attaching emerge --info and will attach the full build log, and will try
> without the custom-cflags and custom-optimization USE too but haven't yet.
> 
> (BTW, the gentoo bugzilla server seems to be missing a css file or something
> ATM, bug pages are printing without the usual formatted gentoo header,
> without line wrapping and missing some other page formatting, making reading
> other bugs for dups really difficult ATM.  A forced refresh doeszn't fix it,
> but it was working a few hours ago.  Hopefully it's a short-lived bug.)

downgrade to sandbox-2.10 and your issue will go away.
Comment 5 Jory A. Pratt gentoo-dev 2017-06-28 15:59:05 UTC

*** This bug has been marked as a duplicate of bug 580726 ***