Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500156 - app-emulation/docker-0.7.6 on x32 - x86_64-pc-linux-gnux32-ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
Summary: app-emulation/docker-0.7.6 on x32 - x86_64-pc-linux-gnux32-ld: skipping incom...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tianon
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 07:45 UTC by Kyle Sanderson
Modified: 2016-04-27 15:29 UTC (History)
2 users (show)

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


Attachments
docker-1.3.2.ebuild.patch (docker-1.3.2.ebuild.patch,821 bytes, patch)
2014-11-28 10:09 UTC, Alexander Tsoy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Sanderson 2014-02-03 07:45:56 UTC
Trying to compile Docker results in a failed build due to (presumably) the incorrect binary being snatched.

---> Making bundle: dynbinary (in bundles/0.7.6/dynbinary)
Created binary: /var/tmp/portage/app-emulation/docker-0.7.6/work/docker-0.7.6/bundles/0.7.6/dynbinary/dockerinit-0.7.6
# runtime/cgo
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libc.a when searching for -lc
# code.google.com/p/gosqlite/sqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libsqlite3.so when searching for -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../libsqlite3.so when searching for -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching for -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: cannot find -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
collect2: error: ld returned 1 exit status
# github.com/dotcloud/docker/graphdriver/devmapper
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: cannot find -ldevmapper
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
collect2: error: ld returned 1 exit status
 * ERROR: app-emulation/docker-0.7.6::gentoo failed (compile phase):
 *   (no error message)


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-03 10:36:36 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Tianon 2014-02-03 15:21:01 UTC
Also, are you trying to build an x32 Docker, or do you have a mixed amd64 system you're trying to install Docker on?

Golang upstream has no support for x32 that I'm aware of, and Docker upstream definitely has no support for any daemon platform other than amd64 (yet).
Comment 3 Kyle Sanderson 2014-02-03 15:56:41 UTC
(In reply to Tianon from comment #2)
> Also, are you trying to build an x32 Docker, or do you have a mixed amd64
> system you're trying to install Docker on?
> 
> Golang upstream has no support for x32 that I'm aware of, and Docker
> upstream definitely has no support for any daemon platform other than amd64
> (yet).

Golang works on x32 (well; golang compiled). Yes, it's a native x32 system with an amd64 iptables/ipset.

docker-bin functions under x32, which is provided via the docker overlay. I'm not sure if the bug is upstream, or not.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-04 07:15:40 UTC
(In reply to Jeroen Roovers from comment #1)
> 1) Please post your `emerge --info' output in a comment.
> 2) Please attach the entire build log to this bug report.
Comment 5 Kyle Sanderson 2014-02-04 18:53:06 UTC
(In reply to Jeroen Roovers from comment #4)
> (In reply to Jeroen Roovers from comment #1)
> > 1) Please post your `emerge --info' output in a comment.
Portage 2.2.7 (default/linux/amd64/13.0/x32, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1270_v3_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16398104 total,  13310320 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 24 Jan 2014 09:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo docker
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnux32"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnux32"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/docker"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/"
USE="acl aio amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 jit mmx modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 sse3 sse4 ssl ssse3 tcpd threads unicode zlib" ABI_X86="64 x32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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 6 Kyle Sanderson 2014-02-04 18:54:56 UTC
(In reply to Jeroen Roovers from comment #4)
> (In reply to Jeroen Roovers from comment #1)
> > 2) Please attach the entire build log to this bug report.

 * Package:    app-emulation/docker-0.7.6
 * Repository: docker
 * Maintainer: admwiggin@gmail.com
 * USE:        amd64 device-mapper elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.10.25-gentoo/build
 * Found sources for kernel version:
 *     3.10.25-gentoo
 * Checking for suitable kernel configuration options...
 [ ok ]
# WARNING! I don't seem to be running in a docker container.
# The result of this command might be an incorrect build, and will not be officially supported.
# Try this: 'make all'
---> Making bundle: dynbinary (in bundles/0.7.6/dynbinary)
Created binary: /var/tmp/portage/app-emulation/docker-0.7.6/work/docker-0.7.6/bundles/0.7.6/dynbinary/dockerinit-0.7.6
# runtime/cgo
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libc.a when searching for -lc
# code.google.com/p/gosqlite/sqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libsqlite3.so when searching for -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../libsqlite3.so when searching for -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching for -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: cannot find -lsqlite3
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
collect2: error: ld returned 1 exit status
# github.com/dotcloud/docker/graphdriver/devmapper
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: cannot find -ldevmapper
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnux32/4.7.3/../../../../x86_64-pc-linux-gnux32/bin/ld: skipping incompatible //usr/lib/libpthread.a when searching for -lpthread
collect2: error: ld returned 1 exit status
 * ERROR: app-emulation/docker-0.7.6::docker failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 3039:  Called die
 * The specific snippet of code:
 *       ./hack/make.sh dynbinary || die;
 *
 * If you need support, post the output of `emerge --info '=app-emulation/docker-0.7.6::docker'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/docker-0.7.6::docker'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/docker-0.7.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/docker-0.7.6/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/docker-0.7.6/work/docker-0.7.6'
 * S: '/var/tmp/portage/app-emulation/docker-0.7.6/work/docker-0.7.6'
Comment 7 Tianon 2014-02-06 06:23:38 UTC
I haven't played with x32 myself, so I can't say for sure, but it looks to me like "/usr/lib/libpthread.so" etc are compiled for x32, and the x86_64 linker refuses to link that into an amd64 binary (because the Go compiler doesn't have support for x32 - see also http://golang.org/doc/install#requirements where the supported Go platforms are enumerated).

It looks like it's even having trouble with "-lc", so I don't think this is a problem specific to Docker, and that any attempted Go compilations on x32 would probably fail similarly.

Does portage have a method to specify that core deps like "libc" need to be available for amd64?  If not, then it would probably be good if dev-lang/go ewarned on install for x32 users that it won't actually be able to compile anything because there's no "valid" libc for Go's amd64 compiler to link with.

Can you test compiling some other Go code and confirm?  The "sys-fs/go-mtpfs" package/ebuild is a good candidate for testing if you don't want to set up a GOPATH.
Comment 8 Pete Ezzo 2014-04-04 23:56:58 UTC
I still see this on 0.9.1, with a 64/32 multilib setup and SYMLINK_LIB="no".  x32 also has SYMLINK_LIB=no

CGO_LDFLAGS in the ebuild specifies /usr/lib which is the 32 bit libs.  When /usr/lib64 is used the error goes away.
Comment 9 Alexander Tsoy 2014-11-28 10:09:41 UTC
Created attachment 390478 [details, diff]
docker-1.3.2.ebuild.patch

Well, how about this patch? Please also add bug 506276 to the blockers.
Comment 10 Alexander Tsoy 2014-11-28 10:14:06 UTC
(In reply to Alexander Tsoy from comment #9)
> Please also add bug 506276 to the blockers.

Sorry, I meant that this bug should block bug 506276.
Comment 11 Tianon 2014-12-02 19:22:22 UTC
I've committed the patch against app-emulation/docker-9999 in the docker overlay.  It'd be great if we could get an x32 user or two to test and see if that fixes the issue so we can backport the fix to 1.3.2 and get it in tree.
Comment 12 Alexander Tsoy 2014-12-02 21:23:02 UTC
(In reply to Tianon from comment #11)

I can't test on x32, but this patch fixes similar problem on amd64 system with SYMLINK_LIB=no LIBDIR_x86=lib (/usr/lib contains 32 bit libraries).
Comment 13 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2016-04-27 15:29:44 UTC
Version no longer in tree. Please reopen if issue persists with docker-1.11.0