ports/186541: installing www/libxul fails
Don Lewis
truckman at FreeBSD.org
Wed Feb 26 10:50:01 UTC 2014
The following reply was made to PR ports/186541; it has been noted by GNATS.
From: Don Lewis <truckman at FreeBSD.org>
To: bug-followup at FreeBSD.org
Cc: turutani at scphys.kyoto-u.ac.jp
Subject: Re: ports/186541: installing www/libxul fails
Date: Wed, 26 Feb 2014 02:46:09 -0800 (PST)
Here's what I found:
Executing /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/xpcshell -g /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -a /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -f ../../../toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
Traceback (most recent call last):
File "../../../toolkit/mozapps/installer/packager.py", line 375, in <module>
main()
File "../../../toolkit/mozapps/installer/packager.py", line 367, in main
args.source, gre_path, base)
File "../../../toolkit/mozapps/installer/packager.py", line 148, in precompile_cache
errors.fatal('Error while running startup cache precompilation')
File "/usr/ports/www/firefox/work/mozilla-release/python/mozbuild/mozpack/errors.py", line 101, in fatal
self._handle(self.FATAL, msg)
File "/usr/ports/www/firefox/work/mozilla-release/python/mozbuild/mozpack/errors.py", line 96, in _handle
raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
gmake[4]: *** [stage-package] Error 1
I dug through the python code, and it looks like the problem is that the
command that it says that it is "Executing" is failing. If I try
running this command manually, this is what I see:
# /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/xpcshell -g /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -a /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -f ../../../toolkit/mozapps/installer/precompile_cache.js -e 'precompile_startupcache("resource://gre/");'
Shared object "libicui18n.so.50" not found, required by "libxul.so"
The problem is that xpcshell is loading a stale copy of libxul.so in
/usr/local/lib/libxul that is looking for an old copy of libicui18n.so,
which has undergone a library version bump since libxul was installed.
... or maybe not. Looking back at the python script:
if launcher.launch(['xpcshell', '-g', gre_path, '-a', app_path,
'-f', os.path.join(os.path.dirname(__file__),
'precompile_cache.js'),
'-e', 'precompile_startupcache("resource://%s/");'
% resource],
extra_linker_path=gre_path,
extra_env={'MOZ_STARTUP_CACHE': cache}):
errors.fatal('Error while running startup cache precompilation')
return
it looks like $LD_LIBRARY_PATH is getting set to
/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/
and $MOZ_STARTUP_CACHE is getting set to a temporary zip file under
/tmp. If I try to duplicate that:
env MOZ_STARTUP_CACHE=/tmp/cache.zip LD_LIBRARY_PATH=/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/xpcshell -g /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -a /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -f ../../../toolkit/mozapps/installer/precompile_cache.js -e 'precompile_startupcache("resource://gre/");'
Illegal instruction (core dumped)
Running gdb on the core file gets me this backtrace:
(gdb) bt
#0 0x8833308d in XRE_GetBinaryPath ()
from /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin//libxul.so
#1 0x88332fe5 in XRE_GetBinaryPath ()
from /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin//libxul.so
#2 0x88e20515 in XRE_XPCShellMain ()
from /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin//libxul.so
#3 0x0804a5ba in _start ()
#4 0x00000009 in ?? ()
#5 0xbfbfd9bc in ?? ()
#6 0xbfbfd9e4 in ?? ()
#7 0xbfbfd9e4 in ?? ()
#8 0xbfbfd9b8 in ?? ()
#9 0x00000000 in ?? ()
More information about the freebsd-gecko
mailing list