Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557956 - www-client/firefox-36, -37, -38, -39, -40, -41: OSError: libc.so.6: cannot open shared object file: No such file or directory
Summary: www-client/firefox-36, -37, -38, -39, -40, -41: OSError: libc.so.6: cannot op...
Status: RESOLVED FIXED
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: PATCH, REGRESSION
Depends on:
Blocks:
 
Reported: 2015-08-16 19:48 UTC by Émeric Maschino
Modified: 2015-09-26 05:43 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,13.63 KB, text/plain)
2015-08-16 19:48 UTC, Émeric Maschino
Details
environment (environment,205.98 KB, text/plain)
2015-08-16 19:48 UTC, Émeric Maschino
Details
libc detect patch for >=www-client/firefox-36 (firefox-36.0-detect-libc.patch,563 bytes, patch)
2015-08-22 07:31 UTC, Émeric Maschino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2015-08-16 19:48:04 UTC
Created attachment 409194 [details]
build.log

Hi,

Today's emerge @world updated media-libs/libvpx that triggered reinstall of firefox. Version I had currently installed is no more available in portage tree, so I tried to update to firefox-40.0.2 and firefox-38.2.0. Both are failing with similar errors:

Traceback (most recent call last):
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 148, in <module>
    main(sys.argv[1:])
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 76, in main
    mach = get_mach()
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 67, in get_mach
    mach = check_and_get_mach(dir_path)
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 42, in check_and_get_mach
    return load_mach(dir_path, mach_path)
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 30, in load_mach
    return mach_bootstrap.bootstrap(dir_path)
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/build/mach_bootstrap.py", line 217, in bootstrap
    mach.load_commands_from_file(os.path.join(mozilla_dir, path))
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/python/mach/mach/main.py", line 266, in load_commands_from_file
    imp.load_source(module_name, path)
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/mach_commands.py", line 24, in <module>
    from update import updatecommandline
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/update/__init__.py", line 17, in <module>
    from wptrunner.update import setup_logging, WPTUpdate
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/update/__init__.py", line 12, in <module>
    from update import WPTUpdate
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/update/update.py", line 8, in <module>
    from metadata import MetadataUpdateRunner
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/update/metadata.py", line 7, in <module>
    from .. import metadata
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/metadata.py", line 18, in <module>
    import testloader
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/testloader.py", line 11, in <module>
    import wpttest
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/wpttest.py", line 10, in <module>
    import mozinfo
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/mozbase/mozinfo/mozinfo/__init__.py", line 54, in <module>
    import mozinfo
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/mozbase/mozinfo/mozinfo/mozinfo.py", line 99, in <module>
    ctypes.CDLL("libc.so.6", use_errno=True).prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, 0)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libc.so.6: cannot open shared object file: No such file or directory
client.mk:201: /.mozconfig.mk: No such file or directory
Traceback (most recent call last):
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 148, in <module>
    main(sys.argv[1:])
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 76, in main
    mach = get_mach()
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 67, in get_mach
    mach = check_and_get_mach(dir_path)
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 42, in check_and_get_mach
    return load_mach(dir_path, mach_path)
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/mach", line 30, in load_mach
    return mach_bootstrap.bootstrap(dir_path)
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/build/mach_bootstrap.py", line 217, in bootstrap
    mach.load_commands_from_file(os.path.join(mozilla_dir, path))
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/python/mach/mach/main.py", line 266, in load_commands_from_file
    imp.load_source(module_name, path)
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/mach_commands.py", line 24, in <module>
    from update import updatecommandline
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/update/__init__.py", line 17, in <module>
    from wptrunner.update import setup_logging, WPTUpdate
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/update/__init__.py", line 12, in <module>
    from update import WPTUpdate
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/update/update.py", line 8, in <module>
    from metadata import MetadataUpdateRunner
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/update/metadata.py", line 7, in <module>
    from .. import metadata
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/metadata.py", line 18, in <module>
    import testloader
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/testloader.py", line 11, in <module>
    import wpttest
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/web-platform/harness/wptrunner/wpttest.py", line 10, in <module>
    import mozinfo
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/mozbase/mozinfo/mozinfo/__init__.py", line 54, in <module>
    import mozinfo
  File "/var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/mozbase/mozinfo/mozinfo/mozinfo.py", line 99, in <module>
    ctypes.CDLL("libc.so.6", use_errno=True).prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, 0)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libc.so.6: cannot open shared object file: No such file or directory
/usr/bin/python2.7 /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/config/pythonpath.py -I /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/testing/mozbase/mozfile \
    /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/python/mozbuild/mozbuild/controller/clobber.py /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38 
Usage: clobber.py topsrcdir topobjdir
client.mk:334: recipe for target '/CLOBBER' failed

Feel free to ask for additional information.

     Émeric
Comment 1 Émeric Maschino 2015-08-16 19:48:47 UTC
Created attachment 409196 [details]
environment
Comment 2 Émeric Maschino 2015-08-16 19:49:42 UTC
emerge --info output:

Portage 2.2.20.1 (python 2.7.9-final-0, default/linux/ia64/13.0/desktop/gnome/systemd, gcc-4.7.4, glibc-2.20-r2, 3.18.16-gentoo ia64)
=================================================================
System uname: Linux-3.18.16-gentoo-ia64-Madison-with-gentoo-2.2
KiB Mem:    25052672 total,   3508864 free
KiB Swap:     524224 total,    524224 free
Timestamp of repository gentoo: Sat, 15 Aug 2015 18:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.5.4::gentoo, 4.6.4::gentoo, 4.7.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

my_ebuilds
    location: /var/lib/layman/my_ebuilds
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-mtune=itanium2 -O2 -pipe"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=itanium2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-mtune=itanium2 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-mtune=itanium2 -O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvdr eds encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ia64 iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" ALSA_CARDS="fm801" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev modesetting radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Émeric Maschino 2015-08-16 19:51:36 UTC
emerge -pqv output:

[ebuild     U ] www-client/firefox-38.2.0 [31.8.0] USE="dbus gmp-autoupdate%* gstreamer jemalloc3%* jit minimal pulseaudio startup-notification -bindist -custom-cflags (-custom-optimization) -debug -egl% -gstreamer-0% -hardened (-neon) (-pgo) (-selinux) -system-cairo* -system-icu* -system-jpeg* -system-libvpx* -system-sqlite* {-test} (-wifi)" LINGUAS="fr -af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -th -tr -uk -vi -xh -zh_CN -zh_TW (-csb%) (-ku%) (-zu%)"
Comment 4 Alex Xu (Hello71) 2015-08-17 14:40:30 UTC
please paste the results of the command "ldd /bin/ls".
Comment 5 Émeric Maschino 2015-08-17 19:17:00 UTC
(In reply to Alex Xu (Hello71) from comment #4)
> please paste the results of the command "ldd /bin/ls".

Sure. Here is it:
emeric@longspeak ~ $ ldd /bin/ls
	linux-gate.so.1 (0xa000000000000000)
	libacl.so.1 => /lib/libacl.so.1 (0x2000000000080000)
	libc.so.6.1 => /lib/libc.so.6.1 (0x20000000000a0000)
	libattr.so.1 => /lib/libattr.so.1 (0x2000000000340000)
	/lib/ld-linux-ia64.so.2 (0x2000000000000000)

BTW, there's indeed no libc.so.6 on my system (database up-to-date):
longspeak ~ # locate libc.so.6
/lib/libc.so.6.1

Is this the problem?

     Émeric
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-08-18 04:51:50 UTC
@ia64, is this normal for there to be libc.so.6.1 instead of libc.so.6 on your arch?
Comment 7 Émeric Maschino 2015-08-19 19:47:51 UTC
(In reply to Alexandre Rostovtsev from comment #6)
> @ia64, is this normal for there to be libc.so.6.1 instead of libc.so.6 on
> your arch?

Don't know about libc, but this clearly is a regression as a rebuild of firefox-31.8.0 (previous ESR version) just completed successfully.

     Émeric
Comment 8 SpanKY gentoo-dev 2015-08-20 04:47:15 UTC
the firefox code is broken.  you cannot assume any specific SONAME.  ia64 isn't the only one to not use exactly "libc.so.6".  instead, use the standard method:
  ctypes.CDLL(ctypes.util.find_library('c'))
Comment 9 Émeric Maschino 2015-08-20 06:03:10 UTC
It's all started with firefox-36.0-r1. firefox-35.0 was fine.

This quickly reminded me a similar issue [1] but diff of toolkit/components/osfile/modules/osfile_unix_allthreads.jsm shows no difference at all between firefox-35.0 and firefox-36.0-r1 ebuilds.

     Émeric
Comment 10 Émeric Maschino 2015-08-20 06:04:40 UTC
(In reply to Émeric Maschino from comment #9)
> It's all started with firefox-36.0-r1. firefox-35.0 was fine.
> 
> This quickly reminded me a similar issue [1] but diff of
> toolkit/components/osfile/modules/osfile_unix_allthreads.jsm shows no
> difference at all between firefox-35.0 and firefox-36.0-r1 ebuilds.
> 
>      Émeric

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=878791
Comment 11 Émeric Maschino 2015-08-22 07:31:45 UTC
Created attachment 409806 [details, diff]
libc detect patch for >=www-client/firefox-36

Following SpanKY comment (https://bugs.gentoo.org/show_bug.cgi?id=557956#c8), please find firefox-36.0-detect.libc.patch that modifies testing/mozbase/mozinfo/mozinfo/mozinfo.py script to detect libc calling ctypes.util.find_library('c') rather than hardcoding a specific name. This patch cleanly applies against firefox-38.1.1, firefox-38.2.0 and firefox-40.0.2 ebuilds currently in portage tree and just allowed me to successfully emerge latest ESR version (firefox-38.2.0).
Comment 12 Émeric Maschino 2015-08-22 12:00:09 UTC
(In reply to Émeric Maschino from comment #11)
> Created attachment 409806 [details, diff] [details, diff]
> libc detect patch for >=www-client/firefox-36
> 
> Following SpanKY comment
> (https://bugs.gentoo.org/show_bug.cgi?id=557956#c8), please find
> firefox-36.0-detect.libc.patch that modifies
> testing/mozbase/mozinfo/mozinfo/mozinfo.py script to detect libc calling
> ctypes.util.find_library('c') rather than hardcoding a specific name. This
> patch cleanly applies against firefox-38.1.1, firefox-38.2.0 and
> firefox-40.0.2 ebuilds currently in portage tree and just allowed me to
> successfully emerge latest ESR version (firefox-38.2.0).

The provided firefox-36.0-detect.libc.patch also let me successfully emerge latest firefox-40.0.2 currently in portage tree.

     Émeric
Comment 13 Ian Stakenvicius (RETIRED) gentoo-dev 2015-08-23 14:38:58 UTC
(In reply to Émeric Maschino from comment #12)
> (In reply to Émeric Maschino from comment #11)
> > Created attachment 409806 [details, diff] [details, diff] [details, diff]
> > libc detect patch for >=www-client/firefox-36
> > 
> > Following SpanKY comment
> > (https://bugs.gentoo.org/show_bug.cgi?id=557956#c8), please find
> > firefox-36.0-detect.libc.patch that modifies
> > testing/mozbase/mozinfo/mozinfo/mozinfo.py script to detect libc calling
> > ctypes.util.find_library('c') rather than hardcoding a specific name. This
> > patch cleanly applies against firefox-38.1.1, firefox-38.2.0 and
> > firefox-40.0.2 ebuilds currently in portage tree and just allowed me to
> > successfully emerge latest ESR version (firefox-38.2.0).
> 
> The provided firefox-36.0-detect.libc.patch also let me successfully emerge
> latest firefox-40.0.2 currently in portage tree.
> 
>      Émeric

Great to hear -- this patch is very similar to one I made locally (mine patches a second python script that was loading 'libc.so.6' directly), which i've committed (in-place) to the main tree this morning.

There is one final location that loads libc.so.6 on 'linux' platforms, in 'subprocess.js' within addon-sdk, but fixing that will be much more difficult since spidermonkey right now doesn't have a way of auto-detecting the libc library name.
Comment 14 Émeric Maschino 2015-09-23 22:13:47 UTC
Re-opening as =www-client/firefox-41.0 is still failing the same :-(

Would it be possible to include the patch I've provided in attachment 409806 [details, diff] to fix this issue, please? And also manage to include it upstream?

Thanks,

     Émeric
Comment 15 Ian Stakenvicius (RETIRED) gentoo-dev 2015-09-24 16:46:52 UTC
(In reply to Émeric Maschino from comment #14)
> Re-opening as =www-client/firefox-41.0 is still failing the same :-(
> 
> Would it be possible to include the patch I've provided in attachment 409806 [details, diff]
> [details, diff] to fix this issue, please? And also manage to include it
> upstream?
> 
> Thanks,
> 
>      Émeric

Apologies, I dropped this patch a version too early I believe.  I'll have it back in place shortly.
Comment 16 Émeric Maschino 2015-09-26 05:43:19 UTC
(In reply to Ian Stakenvicius from comment #15)
> 
> Apologies, I dropped this patch a version too early I believe.  I'll have it
> back in place shortly.

Fixed again in firefox-41.0-r1. Closing.

Thanks,

     Émeric