Created attachment 351148 [details] build.log.gz *** WARNING: renaming "crypt" since importing it failed: build/lib.linux-i686-2. 7/crypt.so: undefined symbol: crypt ... Failed to build these modules: crypt This looks kind of similar to bug 433179, but this is not during bootstrap and the host is not multiarch, so I don't think it's the same thing. python-3.3.0-r1 builds successfully. $ emerge --info =dev-lang/python-2.7.5 !!! Your current profile is deprecated and not supported anymore. !!! Use eselect profile to update your profile. !!! Please upgrade to the following profile if possible: default/linux/x86/13.0 You may use the following command to upgrade: eselect profile set default/linux/x86/13.0 Portage 2.2.01.22013-prefix (prefix/linux/x86, gcc-4.7.2, unavailable, 2.6.18-308.11.1.el5PAE i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.18-308.11.1.el5PAE-i686-Intel-R-_Xeon-R-_CPU_5150_@_2.66GHz-with-redhat-5.8-Tikanga KiB Mem: 4145608 total, 872664 free KiB Swap: 3068404 total, 2258408 free Timestamp of tree: Fri, 14 Jun 2013 20:40:27 +0000 ld GNU ld (GNU Binutils) 2.23 app-shells/bash: 4.2_p39-r1 dev-lang/python: 2.7.3-r3, 3.3.0-r1 dev-util/cmake: 2.8.11.1 dev-util/pkgconfig: 0.28 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.12.4 sys-devel/binutils: 2.23 sys-devel/gcc: 4.6.3, 4.7.2-r1 sys-devel/gcc-config: 1.8-r00.1 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) Repositories: gentoo_prefix g-cpan ACCEPT_KEYWORDS="x86-linux ~x86-linux" ACCEPT_LICENSE="@FREE" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -ggdb" DISTDIR="/home/astrosun/wthrowe/tmp/distfiles" EMERGE_DEFAULT_OPTS="--ask" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs clean-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-orphans userfetch" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="POSIX" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu" MAKEOPTS="-j3" PKGDIR="/home/supernova/wthrowe/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/home/supernova/wthrowe/gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/home/supernova/wthrowe/gentoo/var/tmp" PORTDIR="/home/supernova/wthrowe/gentoo/usr/portage" PORTDIR_OVERLAY="/home/supernova/wthrowe/gentoo/var/lib/g-cpan" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules mudflap ncurses nls nptl openmp pcre prefix readline session ssl tcpd unicode x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON $ emerge -pqv =dev-lang/python-2.7.5 [ebuild U ] dev-lang/python-2.7.5 [2.7.3-r3] USE="gdbm ipv6 ncurses readline sqlite ssl threads (wide-unicode) xml (-aqua) (-berkdb) -build -doc -examples -hardened% -tk -wininst"
I have this same failure in prefix (~x86-linux). python-2.7.4 builds just fine. emerge --info Timestamp of tree: Thu, 15 Aug 2013 03:36:51 +0000 ld GNU ld (GNU Binutils) 2.23 ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p39-r1 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.4 dev-util/ccache: 3.1.9-r1::science dev-util/cmake: 2.8.11.1 dev-util/pkgconfig: 0.28 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.4 sys-devel/binutils: 2.23 sys-devel/gcc: 4.4.6-r1, 4.5.4, 4.6.3, 4.7.2-r1 sys-devel/gcc-config: 1.8-r00.1 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.8 (virtual/os-headers) Repositories: gentoo_prefix local-overlay sage-on-gentoo my-gentoo-sage science ACCEPT_KEYWORDS="~x86-linux" ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/storage/strogdon/gentoo/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/storage/strogdon/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/storage/strogdon/gentoo/" PORTAGE_RSYNC_EXTRA_OPTS="--delete-after --timeout=500" 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="/storage/strogdon/gentoo/var/tmp" PORTDIR="/storage/strogdon/gentoo/usr/portage" PORTDIR_OVERLAY="/storage/strogdon/gentoo/usr/local/portage /storage/strogdon/gentoo/usr/local/portage/sage-on-gentoo /storage/strogdon/gentoo/usr/local/portage/my-gentoo-sage /storage/strogdon/gentoo/usr/local/portage/gentoo-science" USE="berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules mudflap ncurses nls nptl openmp pcre prefix readline session ssl tcpd unicode x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 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" USE_PYTHON="2.7" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC for python-2.7.5 ldd -r /storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/i686-pc-linux-gnu/build/lib.linux-i686-2.7/crypt_failed.so linux-gate.so.1 => (0xb774e000) libpython2.7.so.1.0 => /storage/strogdon/gentoo/usr/lib/libpython2.7.so.1.0 (0xb75ac000) libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb757b000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7434000) libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7430000) libutil.so.1 => /lib/i686/cmov/libutil.so.1 (0xb742c000) libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7406000) /lib/ld-linux.so.2 (0xb774f000) undefined symbol: crypt (/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/i686-pc-linux-gnu/build/lib.linux-i686-2.7/crypt_failed.so) and for python-2.7.4 ldd -r /storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.4/work/i686-pc-linux-gnu/build/lib.linux-i686-2.7/crypt.so linux-gate.so.1 => (0xb7703000) libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb76b4000) libpython2.7.so.1.0 => /storage/strogdon/gentoo/usr/lib/libpython2.7.so.1.0 (0xb7517000) libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb74fe000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb73b7000) libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb73b3000) libutil.so.1 => /lib/i686/cmov/libutil.so.1 (0xb73af000) libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7388000) /lib/ld-linux.so.2 (0xb7704000)
From the build log when building the crypt extension: python-2.7.4 ^[[?1034hbuilding 'crypt' extension i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -march=core2 -O2 -pipe -fwrapv -DNDEBUG -I. -IInclude -I/storage/strogdon/gentoo/usr/include -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.4/work/Python-2.7.4/Include -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.4/work/i686-pc-linux-gnu -c /storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.4/work/Python-2.7.4/Modules/cryptmodule.c -o build/temp.linux-i686-2.7/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.4/work/Python-2.7.4/Modules/cryptmodule.o i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L. -fno-strict-aliasing -march=core2 -O2 -pipe -fwrapv -DNDEBUG -I. -IInclude -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.4/work/Python-2.7.4/Include -I/storage/strogdon/gentoo/usr/include build/temp.linux-i686-2.7/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.4/work/Python-2.7.4/Modules/cryptmodule.o -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L. -lcrypt -lpython2.7 -o build/lib.linux-i686-2.7/crypt.so python-2.7.5 ^[[?1034hbuilding 'crypt' extension i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -march=core2 -O2 -pipe -fwrapv -DNDEBUG -I. -IInclude -I/storage/strogdon/gentoo/usr/include -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Include -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/i686-pc-linux-gnu -c /storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Modules/cryptmodule.c -o build/temp.linux-i686-2.7/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Modules/cryptmodule.o i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L. -fno-strict-aliasing -march=core2 -O2 -pipe -fwrapv -DNDEBUG -I. -IInclude -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Include -I/storage/strogdon/gentoo/usr/include build/temp.linux-i686-2.7/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Modules/cryptmodule.o -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L. -lpython2.7 -o build/lib.linux-i686-2.7/crypt.so *** WARNING: renaming "crypt" since importing it failed: build/lib.linux-i686-2.7/crypt.so: undefined symbol: crypt An examination of the build/temp.linux-i686-2.7/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Modules/ folder reveals that cryptmodule.o is never created with python-2.7.5.
On my ~x86-linux the host OS is 32-bits but the architecture is 64-bits. Under /usr there is ls /usr bin games include lib lib64 local sbin share src and under /usr/lib64 there is ls -R /usr/lib64 /usr/lib64: libfakeroot /usr/lib64/libfakeroot: libfakeroot-sysv.so libfakeroot-tcp.so So if I make the changes @@ -200,7 +200,7 @@ append-ldflags -L${EPREFIX}/$(get_libdir) append-ldflags -L${EPREFIX}/usr/$(get_libdir) # fix compilation on some 64-bits Linux hosts, #381163 - for hostlibdir in /usr/lib32 /usr/lib64 /lib32 /lib64 ; do + for hostlibdir in /usr/lib /usr/lib32 /usr/lib64 /lib32 /lib64 ; do [[ -d ${hostlibdir} ]] || continue append-ldflags -L${hostlibdir} done to the python-2.7.5 ebuild then it builds. I'm not sure why python-2.7.4 builds since the /usr/lib is not added to ldflags there?
thanks! Does it also build when you append the /usr/lib to the end of the list?
(In reply to Fabian Groffen from comment #4) > thanks! > > Does it also build when you append the /usr/lib to the end of the list? Yes it does. Here is the building of the crypt extension with /usr/lib appended to the list: ^[[?1034hbuilding 'crypt' extension i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -march=core2 -O2 -pipe -fwrapv -DNDEBUG -I. -IInclude -I/storage/strogdon/gentoo/usr/include -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5-r99/work/Python-2.7.5/Include -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5-r99/work/i686-pc-linux-gnu -c /storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5-r99/work/Python-2.7.5/Modules/cryptmodule.c -o build/temp.linux-i686-2.7/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5-r99/work/Python-2.7.5/Modules/cryptmodule.o i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L/usr/lib -L. -Wl,-O1 -Wl,--as-needed -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L/usr/lib -L. -fno-strict-aliasing -march=core2 -O2 -pipe -fwrapv -DNDEBUG -I. -IInclude -I/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5-r99/work/Python-2.7.5/Include -I/storage/strogdon/gentoo/usr/include build/temp.linux-i686-2.7/storage/strogdon/gentoo/var/tmp/portage/dev-lang/python-2.7.5-r99/work/Python-2.7.5/Modules/cryptmodule.o -L/storage/strogdon/gentoo/lib -L/storage/strogdon/gentoo/usr/lib -L/usr/lib64 -L/usr/lib -L. -lcrypt -lpython2.7 -o build/lib.linux-i686-2.7/crypt.so
(In reply to Steven Trogdon from comment #5) > (In reply to Fabian Groffen from comment #4) > > thanks! > > > > Does it also build when you append the /usr/lib to the end of the list? > > Yes it does. Here is the building of the crypt extension with /usr/lib > appended to the list: Thanks a lot, that is very helpful!
ok, this fix should be in 2.7.5-r2, thanks once again
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f29dafd086fdc9bc1cc505d9ac8fe849d65bcb8d commit f29dafd086fdc9bc1cc505d9ac8fe849d65bcb8d Author: Michael Haubenwallner <haubi@gentoo.org> AuthorDate: 2018-01-22 15:37:15 +0000 Commit: Michael Haubenwallner <haubi@gentoo.org> CommitDate: 2018-01-22 15:38:00 +0000 dev-lang/python: can use elibc_glibc, not amd64-linux This must have been broken since https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=1896ea58f9eef2916986ade1d46aa3e727fbccc7 Bug: https://bugs.gentoo.org/381163 Bug: https://bugs.gentoo.org/473520 Package-Manager: Portage-2.3.19, Repoman-2.3.6 dev-lang/python/Manifest | 4 ++-- dev-lang/python/python-2.7.14.ebuild | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)}