I don't really want to use bugzilla as a support outlet but I can't find anything about this ANYWHERE else and IRC hasn't been helpful. I'm hitting something like these bugs but I'm not cross-compiling or running a prefix. https://bugs.gentoo.org/show_bug.cgi?id=354877 https://bugs.gentoo.org/show_bug.cgi?id=452758 And pkg-config is sane. # pkg-config --cflags-only-I libffi -I/usr/lib64/libffi-3.0.13/include Reproducible: Always Steps to Reproduce: MAKEOPTS="-j1" emerge -v1 =dev-lang/python-2* building '_multiprocessing' extension creating build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fwrapv -DNDEBUG -IModules/_multiprocessing -I. -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/multiprocessing.c -o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/multiprocessing.o x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fwrapv -DNDEBUG -IModules/_multiprocessing -I. -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/socket_connection.c -o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/socket_connection.o x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fwrapv -DNDEBUG -IModules/_multiprocessing -I. -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/semaphore.c -o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/semaphore.o x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,-z,now -Wl,--as-needed -Wl,--sort-common -L. -Wl,-O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,-z,now -Wl,--as-needed -Wl,--sort-common -L. -fno-strict-aliasing -march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fwrapv -DNDEBUG -I. -IInclude -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/multiprocessing.o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/socket_connection.o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_multiprocessing/semaphore.o -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_multiprocessing.so building 'linuxaudiodev' extension x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fwrapv -DNDEBUG -I. -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/linuxaudiodev.c -o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/linuxaudiodev.o x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,-z,now -Wl,--as-needed -Wl,--sort-common -L. -Wl,-O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,-z,now -Wl,--as-needed -Wl,--sort-common -L. -fno-strict-aliasing -march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fwrapv -DNDEBUG -I. -IInclude -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/linuxaudiodev.o -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/linuxaudiodev.so building 'ossaudiodev' extension x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fwrapv -DNDEBUG -I. -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/ossaudiodev.c -o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/ossaudiodev.o x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,-z,now -Wl,--as-needed -Wl,--sort-common -L. -Wl,-O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,-z,now -Wl,--as-needed -Wl,--sort-common -L. -fno-strict-aliasing -march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fwrapv -DNDEBUG -I. -IInclude -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/ossaudiodev.o -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/ossaudiodev.so error: /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_ctypes/libffi: No such file or directory Makefile:475: recipe for target 'sharedmods' failed make: *** [sharedmods] Error 1 * ERROR: dev-lang/python-2.7.6::gentoo failed (compile phase): * emake failed *
Attach full build log.
1) Please attach the entire build log to this bug report. 2) Please post your `emerge --info' output in a comment.
*** This bug has been marked as a duplicate of bug 503180 ***
Created attachment 372970 [details] build.log # EMERGE_DEFAULT_OPTS="" emerge --info Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.18-r1, 3.13.5-zen+ x86_64) ================================================================= System uname: Linux-3.13.5-zen+-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9500_@_2.60GHz-with-gentoo-2.2 KiB Mem: 4045320 total, 171076 free KiB Swap: 10485748 total, 9400512 free Timestamp of tree: Mon, 17 Mar 2014 04:15:01 +0000 ld GNU ld (GNU Binutils) 2.24 ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45-r1 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.2.5-r3, 3.3.4 dev-util/ccache: 3.1.9-r3 dev-util/cmake: 2.8.12.2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4::pentoo sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.14.1 sys-devel/binutils: 2.24-r2 sys-devel/gcc: 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.18-r1 Repositories: gentoo dropzone sunrise roslin pentoo FuckYeah ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize" CHOST="x86_64-pc-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="-march=native -O2 -pipe -fprefetch-loop-arrays -ftree-vectorize -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs candy ccache 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="-O2 -pipe" GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirrors.rit.edu/gentoo/ http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org/" INSTALL_MASK="/lib/systemd/system /usr/lib/systemd /usr/lib/tmpfiles.d" LANG="en_CA.utf8" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,-z,now -Wl,--as-needed -Wl,--sort-common" MAKEOPTS="-j3 -l3.5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--human-readable" 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/dropzone /var/lib/layman/sunrise /var/lib/layman/roslin /var/lib/layman/pentoo /usr/local/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="256-color 64bit X aac acl acpi aio alsa amd64 apng ass bash-completion berkdb bluetooth btrfs bzip2 cairo caps captcha cjk cli consolekit cracklib crypt cups cxx dbus dell device-mapper dmraid dri dvd exif extras fat ffmpeg flac fonts foomaticdb fortran freerdp g3dvl gdbm gdu gif gio gles2 gnutls graphite gtk gtk3 gtkstyle gudev hpn hunspell hwdb iconv icu injection inotify ioctl ipv6 ithreads java jpeg kmod laptop libnotify lm_sensors lto mdadm melt mmx modules mp3 mp4 mplayer msn multilib ncurses network new-login nls nptl ntp nvcontrol nvidia ogg ogm opengl openmp optimized-qmake opus pam pch pcre pdf png policykit ppds pulseaudio rar readline resolveids sdl session spell sqlite sse sse2 sse3 sse4 sse4_1 ssh ssl ssse3 startup-notification steamruntime system-ffmpeg system-jpeg system-libs system-sqlite tcpd tftp threads thumbnail thunderbird tiff udev unicode upcall upnp usb v4l vaapi vdpau vorbis wifi wps x264 xml xv xvmc zlib" ABI_X86="64" 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="alias auth_basic authn_core authz_core auth_digest authn_file authz_host authz_user autoindex charset_lite cgi cgid deflate dir env expires filter headers include info log_config mime mime_magic negotiation reqtimeout rewrite setenvif socache_shmcb status unique_id unixd" APACHE2_MPMS="event" 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 synaptics" 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" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="tarpit" Unset: CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
I don't know if this is a dupe since USE=-readline fails with the same error message. Could my system be broken in some magically weird way?
Do /usr/lib64/libffi.so and /usr/lib64/libffi-3.0.13/include/ffi.h exist?
unfortunately, the answer to why this is breaking tends to be buried inside of the custom python build code (compile.py or whatever it's called) and that logic has 0 logging. which means you end up having to triage it manually/externally and guess. if you ran that script by hand and looked at the results from it probing for ctypes support, you'd find out why it's failing.
/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu/Makefile:LIBFFI_INCLUDEDIR= /var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu/config.log:LIBFFI_INCLUDEDIR='' /var/tmp/portage/dev-lang/python-2.7.6/temp/environment:declare -x ac_cv_path_PKG_CONFIG="x86_64-pc-linux-gnu-pkg-config" HAF ~ # ls -al /usr/bin/x86_64-pc-linux-gnu-pkg-config ---------- 1 root root 42808 Feb 19 18:37 /usr/bin/x86_64-pc-linux-gnu-pkg-config HAF ~ # equery b /usr/bin/pkg-config * Searching for /usr/bin/pkg-config ... dev-util/pkgconf-0.9.3 (/usr/bin/pkg-config -> pkgconf) dev-util/pkgconf-0.9.3 (/usr/bin/pkgconf) HAF ~ # equery b /usr/bin/x86_64-pc-linux-gnu-pkg-config * Searching for /usr/bin/x86_64-pc-linux-gnu-pkg-config ... Where the **** did x86_64-pc-linux-gnu-pkg-config come from? And why the hell did it suddenly lose permissions after my last large update in jan/feb? I've had a few other ramdom merge failures since that time too and I'm now wondering if pkg-config caused them too. I thought it was the readline update that broke everything. :/
(In reply to Weedy from comment #8) > Where the **** did x86_64-pc-linux-gnu-pkg-config come from? And why the > hell did it suddenly lose permissions after my last large update in jan/feb? > Well, dev-util/pkgconfig installs that, but dev-util/pkgconf does not. Did you switch at some point? Still doesn't explain why it was installed with mode 0.
(In reply to Mike Gilbert from comment #9) > Well, dev-util/pkgconfig installs that, but dev-util/pkgconf does not. Did > you switch at some point? Not explicitly, if it got pulled in an update I guess I did.