When attempting to do an emerge of libnl-3.2.25, the configure process dies with the errors: checking whether the C compiler works... no configure: error: in `/var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64': configure: error: C compiler cannot create executables See `config.log' for more details Reproducible: Always Steps to Reproduce: A pretty standard Gentoo KDE setup emerge libnl Actual Results: Crashes during configure process Expected Results: emerge succeeds
bluey log # emerge --info =dev-libs/libnl-3.2.25::gentoo !!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf' !!! Set 'masters = gentoo' in this file for future compatibility Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.20, 3.17.4-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.17.4-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2 KiB Mem: 16468400 total, 9268196 free KiB Swap: 16777212 total, 16777212 free Timestamp of tree: Tue, 25 Nov 2014 13:45:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] ccache version 3.2 [enabled] app-shells/bash: 4.3_p30-r1 dev-java/java-config: 2.2.0 dev-lang/perl: 5.20.1-r2 dev-lang/python: 2.7.8, 3.3.5-r1, 3.4.2 dev-util/ccache: 3.2 dev-util/cmake: 3.0.2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.3-r2 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers) sys-libs/glibc: 2.20 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=amdfam10 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs 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://ftp.swin.edu.au/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j7" 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="/usr/local/portage" SYNC="rsync://rsync1.au.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amd64 bash-completion berkdb boost branding bzip2 cairo cdda cdr cjk cleartype cli consolekit corefonts cracklib crypt cups cxx dbus declarative dhcpcd dirac dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm glamor gpm iconv icu jpeg jpeg2k kde kipi lcms ldap libnotify lzma lzo mad matroska mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin nvidia ogg ogg123 opengl openmp pam pango pcre pdf phonon plasma png policykit ppds private-headers qt3support qt4 readline samba schroedinger sdl semantic-desktop session spell sse sse2 ssl startup-notification static-libs subversion svg symlink tcpd theora tiff truetype type1 udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= dev-libs/libnl-3.2.25 was built with the following: USE="static-libs -python -utils" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7 python3_3 -python3_2 -python3_4"
bluey log # emerge -pqv '=dev-libs/libnl-3.2.25::gentoo' !!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf' !!! Set 'masters = gentoo' in this file for future compatibility [ebuild R ] dev-libs/libnl-3.2.25 USE="static-libs -python -utils" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_3 -python3_4 (-python3_2%)"
bluey log # cat /var/tmp/portage/dev-libs/libnl-3.2.25/temp/build.log * Package: dev-libs/libnl-3.2.25 * Repository: gentoo * Maintainer: netmon@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_3 static-libs userland_GNU * FEATURES: ccache preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking libnl-3.2.25.tar.gz to /var/tmp/portage/dev-libs/libnl-3.2.25/work >>> Source unpacked in /var/tmp/portage/dev-libs/libnl-3.2.25/work >>> Preparing source in /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25 ... * Applying libnl-1.1-vlan-header.patch ... [ ok ] * Applying libnl-3.2.20-rtnl_tc_get_ops.patch ... [ ok ] * Applying libnl-3.2.20-cache-api.patch ... [ ok ] * Running elibtoolize in: libnl-3.2.25/ * Applying target-nm/2.4.2 patch ... * Running elibtoolize in: libnl-3.2.25/build-aux/ * Applying portage/1.2.0 patch ... * Applying sed/1.5.6 patch ... * Applying as-needed/2.4.2 patch ... * Will copy sources from /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25 * abi_x86_64.amd64: copying to /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64 >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25 ... * abi_x86_64.amd64: running multilib-minimal_abi_src_configure * econf: updating libnl-3.2.25/build-aux/config.guess with /usr/share/gnuconfig/config.guess * econf: updating libnl-3.2.25/build-aux/config.sub with /usr/share/gnuconfig/config.sub * econf: updating libnl-3.2.25-abi_x86_64.amd64/build-aux/config.guess with /usr/share/gnuconfig/config.guess * econf: updating libnl-3.2.25-abi_x86_64.amd64/build-aux/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 --disable-silent-rules --enable-static --disable-cli checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... no configure: error: in `/var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64': configure: error: C compiler cannot create executables See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64/config.log * ERROR: dev-libs/libnl-3.2.25::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 4316: Called multilib-minimal_src_configure * environment, line 2921: Called multilib_parallel_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 3227: Called multibuild_parallel_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2814: Called multibuild_foreach_variant '_multibuild_parallel' '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2757: Called _multibuild_run '_multibuild_parallel' '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2755: Called _multibuild_parallel '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2805: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 623: Called multilib-minimal_abi_src_configure * environment, line 2915: Called multilib_src_configure * environment, line 3351: Called econf '--disable-silent-rules' '--enable-static' '--disable-cli' * phase-helpers.sh, line 584: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of `emerge --info '=dev-libs/libnl-3.2.25::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/libnl-3.2.25::gentoo'`. /usr/lib/portage/python2.7/isolated-functions.sh: line 195: wait: `econf failed': not a pid or valid job spec * The complete build log is located at '/var/tmp/portage/dev-libs/libnl-3.2.25/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libnl-3.2.25/temp/environment'. * Working directory: '/var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64' * S: '/var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25'
Forgot to say that contrary to what the configure system thinks, gcc is not broken. I can compile my own code and other ebuilds.
Please attach the config.log file mentioned in the build log.
Also, try to clear the ccache cache.
Sorry, thought I had them all. ******************** bluey portage # cat /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64/config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by libnl configure 3.2.25, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 --disable-silent-rules --enable-static --disable-cli ## --------- ## ## Platform. ## ## --------- ## hostname = bluey uname -m = x86_64 uname -r = 3.17.4-gentoo uname -s = Linux uname -v = #1 SMP Mon Nov 24 20:31:58 AWST 2014 /usr/bin/uname -p = AMD Phenom(tm) II X6 1090T Processor /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/lib64/ccache/bin PATH: /usr/lib/portage/python2.7/ebuild-helpers PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /opt/bin PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3 ## ----------- ## ## Core tests. ## ## ----------- ## configure:2206: checking for a BSD-compatible install configure:2274: result: /usr/bin/install -c configure:2285: checking whether build environment is sane configure:2340: result: yes configure:2491: checking for a thread-safe mkdir -p configure:2530: result: /bin/mkdir -p configure:2537: checking for gawk configure:2553: found /usr/bin/gawk configure:2564: result: gawk configure:2575: checking whether make sets $(MAKE) configure:2597: result: yes configure:2626: checking whether make supports nested variables configure:2643: result: yes configure:2738: checking whether make supports nested variables configure:2755: result: yes configure:2778: checking for style of include used by make configure:2806: result: GNU configure:2837: checking for x86_64-pc-linux-gnu-gcc configure:2853: found /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc configure:2864: result: x86_64-pc-linux-gnu-gcc configure:3133: checking for C compiler version configure:3142: x86_64-pc-linux-gnu-gcc --version >&5 ccache: error: /var/tmp/ccache/ccache.conf: Permission denied configure:3153: $? = 1 configure:3142: x86_64-pc-linux-gnu-gcc -v >&5 ccache: error: /var/tmp/ccache/ccache.conf: Permission denied configure:3153: $? = 1 configure:3142: x86_64-pc-linux-gnu-gcc -V >&5 ccache: error: /var/tmp/ccache/ccache.conf: Permission denied configure:3153: $? = 1 configure:3142: x86_64-pc-linux-gnu-gcc -qversion >&5 ccache: error: /var/tmp/ccache/ccache.conf: Permission denied configure:3153: $? = 1 configure:3173: checking whether the C compiler works configure:3195: x86_64-pc-linux-gnu-gcc -march=amdfam10 -O2 -pipe -Wl,-O1 -Wl,--as-needed conftest.c >&5 ccache: error: /var/tmp/ccache/ccache.conf: Permission denied configure:3199: $? = 1 configure:3237: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libnl" | #define PACKAGE_TARNAME "libnl" | #define PACKAGE_VERSION "3.2.25" | #define PACKAGE_STRING "libnl 3.2.25" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.infradead.org/~tgr/libnl/" | #define PACKAGE "libnl" | #define VERSION "3.2.25" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3242: error: in `/var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64': configure:3244: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-march=amdfam10 -O2 -pipe' ac_cv_env_CHECK_CFLAGS_set= ac_cv_env_CHECK_CFLAGS_value= ac_cv_env_CHECK_LIBS_set= ac_cv_env_CHECK_LIBS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_PKG_CONFIG_LIBDIR_set= ac_cv_env_PKG_CONFIG_LIBDIR_value= ac_cv_env_PKG_CONFIG_PATH_set=set ac_cv_env_PKG_CONFIG_PATH_value=/usr/lib64/pkgconfig ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-pc-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=x86_64-pc-linux-gnu ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64/build-aux/missing aclocal-1.13' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='#' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='' AUTOCONF='${SHELL} /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64/build-aux/missing autoconf' AUTOHEADER='${SHELL} /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64/build-aux/missing autoheader' AUTOMAKE='${SHELL} /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64/build-aux/missing automake-1.13' AWK='gawk' CC='x86_64-pc-linux-gnu-gcc' CCDEPMODE='' CFLAGS='-march=amdfam10 -O2 -pipe' CHECK_CFLAGS='' CHECK_LIBS='' CPP='' CPPFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='.deps' DISABLE_PTHREADS_FALSE='' DISABLE_PTHREADS_TRUE='' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' ENABLE_CLI_FALSE='' ENABLE_CLI_TRUE='' ENABLE_DEBUG_FALSE='' ENABLE_DEBUG_TRUE='' ENABLE_UNIT_TESTS_FALSE='' ENABLE_UNIT_TESTS_TRUE='' EXEEXT='' FGREP='' FLEX='' GREP='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='' LDFLAGS='-Wl,-O1 -Wl,--as-needed' LIBNL_VERSION='' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' LT_AGE='' LT_CURRENT='' LT_REVISION='' MAJ_VERSION='' MAKEINFO='${SHELL} /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64/build-aux/missing makeinfo' MANIFEST_TOOL='' MIC_VERSION='' MIN_VERSION='' MKDIR_P='/bin/mkdir -p' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='libnl' PACKAGE_BUGREPORT='' PACKAGE_NAME='libnl' PACKAGE_STRING='libnl 3.2.25' PACKAGE_TARNAME='libnl' PACKAGE_URL='http://www.infradead.org/~tgr/libnl/' PACKAGE_VERSION='3.2.25' PATH_SEPARATOR=':' PKG_CONFIG='' PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH='/usr/lib64/pkgconfig' RANLIB='' SED='' SET_MAKE='' SHELL='/bin/sh' STRIP='' VERSION='3.2.25' YACC='' ac_ct_AR='' ac_ct_CC='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='include' am__isrc='' am__leading_dot='.' am__nodep='' am__quote='' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='x86_64-pc-linux-gnu' build_cpu='' build_os='' build_vendor='' datadir='/usr/share' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='x86_64-pc-linux-gnu' host_alias='x86_64-pc-linux-gnu' host_cpu='' host_os='' host_vendor='' htmldir='${docdir}' includedir='${prefix}/include' infodir='/usr/share/info' install_sh='${SHELL} /var/tmp/portage/dev-libs/libnl-3.2.25/work/libnl-3.2.25-abi_x86_64.amd64/build-aux/install-sh' libdir='/usr/lib64' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='/var/lib' mandir='/usr/share/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' pkgconfigdir='' prefix='/usr' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' subdirs='' sysconfdir='/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "libnl" #define PACKAGE_TARNAME "libnl" #define PACKAGE_VERSION "3.2.25" #define PACKAGE_STRING "libnl 3.2.25" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "http://www.infradead.org/~tgr/libnl/" #define PACKAGE "libnl" #define VERSION "3.2.25" configure: exit 77
OK, I've now disabled ccache, removed it from the FEATURES list, and the ebuild runs successfully. I'm now good to go, but where does that leave the ebuild?
Looks like it is more ccaches fault that anything else. After successfully getting libnl to compile, I reenabled ccache and the next item on the list, libcap-ng-07.4, also failed with the same error,
*** This bug has been marked as a duplicate of bug 529998 ***