Created attachment 400104 [details] gcc-build-logs sys-devel/gcc-4.9.2 was already compiled on this system. But with todays ebuild update (-cilk% USE flag) I had to rebuild which is failing: In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22:0: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:506:34: error: conflicting declaration of C function ‘const char* strsignal(int)’ extern const char *strsignal (int); ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libstdc++-v3/include/c_global/cstring:42:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:205, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /usr/include/string.h:563:14: note: previous declaration ‘char* strsignal(int)’ extern char *strsignal (int __sig) __THROW; ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include/hashtab.h:40:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include/filenames.h:29, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:630, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include/ansidecl.h:171:64: error: ambiguating new declaration of ‘char* basename(const char*)’ # define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m))) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include/libiberty.h:110:64: note: in expansion of macro ‘ATTRIBUTE_NONNULL’ extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1); ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libstdc++-v3/include/c_global/cstring:42:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:205, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /usr/include/string.h:600:26: note: old declaration ‘const char* basename(const char*)’ extern "C++" const char *basename (const char *__filename) ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:1064:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘int clz_hwi(long unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:244:12: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ return HOST_BITS_PER_WIDE_INT; ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘int ctz_hwi(long unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:258:12: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ return HOST_BITS_PER_WIDE_INT; ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘int floor_log2(long unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:295:10: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ return HOST_BITS_PER_WIDE_INT - 1 - clz_hwi (x); ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘long int sext_hwi(long int, unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:328:15: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ if (prec == HOST_BITS_PER_WIDE_INT) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘long unsigned int zext_hwi(long unsigned int, unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:342:15: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ if (prec == HOST_BITS_PER_WIDE_INT) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c: In function ‘int main(int, char**)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:139:39: error: ‘LTOPLUGINSONAME’ was not declared in this scope plugin = find_a_file (&target_path, LTOPLUGINSONAME, R_OK); ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:189:35: error: call of overloaded ‘strsignal(int&)’ is ambiguous exe_name, sig, strsignal (sig), ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:189:35: note: candidates are: In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libstdc++-v3/include/c_global/cstring:42:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:205, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /usr/include/string.h:563:14: note: char* strsignal(int) extern char *strsignal (int __sig) __THROW; ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22:0: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:506:20: note: const char* strsignal(int) extern const char *strsignal (int); ^ Makefile:1069: recipe for target 'gcc-ar.o' failed make[3]: *** [gcc-ar.o] Error 1 make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/gcc' Makefile:4261: recipe for target 'all-stage2-gcc' failed make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.2/work/build' Makefile:17945: recipe for target 'stage2-bubble' failed make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.9.2/work/build' Makefile:18159: recipe for target 'bootstrap-lean' failed make: *** [bootstrap-lean] Error 2 I tried to compile gcc 3 times. Same error. # emerge --info Portage 2.2.18 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 3.19.2-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.19.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 32650760 total, 29350604 free KiB Swap: 2097148 total, 2097148 free Timestamp of repository gentoo: Sun, 29 Mar 2015 22:45:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.25 p1.0) 2.25 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.3_p33-r2::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r2::gentoo, 3.4.3::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.13.11::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25::gentoo sys-devel/gcc: 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo ABI="amd64" ABI_X86="64" ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" ACCEPT_PROPERTIES="*" ACCEPT_RESTRICT="*" ARCH="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=sandybridge -mtune=sandybridge" CFLAGS_amd64="-m64" CFLAGS_x32="-mx32" CFLAGS_x86="-m32" CHOST="x86_64-pc-linux-gnu" CHOST_amd64="x86_64-pc-linux-gnu" CHOST_x32="x86_64-pc-linux-gnux32" CHOST_x86="i686-pc-linux-gnu" CLEAN_DELAY="5" COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CXXFLAGS="-O2 -pipe -march=sandybridge -mtune=sandybridge" DCC_EMAILLOG_WHOM_TO_BLAME="" DEFAULT_ABI="amd64" DISTCC_ENABLE_DISCREPANCY_EMAIL="" DISTCC_FALLBACK="1" DISTCC_SAVE_TEMPS="0" DISTCC_SSH="" DISTCC_TCP_CORK="" DISTCC_VERBOSE="0" DISTDIR="/usr/portage/distfiles" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_DEFAULT_OPTS=" --verbose --with-bdeps=y --misspell-suggestions=n --jobs 4 --load-average 7.95" EMERGE_WARNING_DELAY="10" EPREFIX="" EROOT="/" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup 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" GCC_SPECS="" GRUB_PLATFORMS="" HOME="/root" ICECC_VERSION="/var/lib/icecream/x86_64-4.7.3.tar.gz" INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.25/info" INPUT_DEVICES="keyboard mouse evdev" IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest" KERNEL="linux" LANG="en_US.UTF-8" LC_MESSAGES="C" LC_NUMERIC="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LDFLAGS_amd64="-m elf_x86_64" LDFLAGS_x32="-m elf32_x86_64" LDFLAGS_x86="-m elf_i386" LIBDIR_amd64="lib64" LIBDIR_amd64_fbsd="lib64" LIBDIR_arm="lib" LIBDIR_arm64="lib64" LIBDIR_n32="lib32" LIBDIR_n64="lib64" LIBDIR_o32="lib" LIBDIR_ppc="lib32" LIBDIR_ppc64="lib64" LIBDIR_s390="lib32" LIBDIR_s390x="lib64" LIBDIR_sparc32="lib32" LIBDIR_sparc64="lib64" LIBDIR_x32="libx32" LIBDIR_x86="lib32" LIBDIR_x86_fbsd="lib32" LINGUAS="en de" LOGNAME="root" MAIL="/var/mail/root" MAKEOPTS="--jobs 9 --load-average 7.95" MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.25/man" MULTILIB_ABIS="amd64 x86" MULTILIB_STRICT_DENY="64-bit.*shared object" MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib" MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec)" ================================================================= Package Settings ================================================================= sys-devel/gcc-4.9.2::gentoo was built with the following: USE="cxx (multilib) nls nptl openmp sanitize (-altivec) (-awt) -doc (-fixed-point) -fortran -gcj -go -graphite (-hardened) (-libssp) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" ABI_X86="64" CFLAGS="-O2 -pipe -march=corei7-avx -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase -mtune=corei7-avx" CXXFLAGS="-O2 -pipe -march=corei7-avx -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase -mtune=corei7-avx"
Same problem here: gcc-4.9.2 is installed and active compiler and fails to rebuild (after emul-linux-* unmerge) with the same error.
Created attachment 400180 [details] build.log
Created attachment 400182 [details] emerge --info
Created attachment 400184 [details] environment
FYI: On my system it finally succeeded after 9 attempts with the same error.
With USE="cilk" build was successful on the first attempt.
Built successfully the 2nd time for me, no changes to the use flag (as in still -clik) Not sure worth noting, but the first time sys-devel/gnuconfig was also being updated. Second attempt was just gcc.
I had no extra updates both times.
the error messages, and your descriptions, make it look like a parallel build issue ... like it's picking up the wrong config.h when you have a failure, try: cd /var/tmp/portage/sys-devel/gcc-4.9.2/work/build/gcc make gcc-ar.o if that still fails, try: make gcc-ar.o CPPFLAGS='-E -dD' and then attach that gcc-ar.o file here (it should be an ascii file)
Created attachment 400232 [details] gcc-ar.i make gcc-ar.o failed. Here's the requested file and output: gentoo-buildhost-x64 ~ # cd /var/tmp/portage/sys-devel/gcc-4.9.2/work/build/gcc gentoo-buildhost-x64 gcc # make gcc-ar.o /var/tmp/portage/sys-devel/gcc-4.9.2/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -isystem /var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -isystem /var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -isystem /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DEFAULT_SSP -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/usr/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.9.2\" -DDEFAULT_TARGET_MACHINE=\"x86_64-pc-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" -DENABLE_SHARED_LIBGCC -DCONFIGURE_SPECS="\"\"" -DTARGET_MACHINE=\"x86_64-pc-linux-gnu\" -DPERSONALITY=\"ar\" -m64 -O2 -pipe -march=sandybridge -mtune=sandybridge -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../libbacktrace -o gcc-ar.o -MT gcc-ar.o -MMD -MP -MF ./.deps/gcc-ar.TPo /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22:0: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:506:34: error: conflicting declaration of C function ‘const char* strsignal(int)’ extern const char *strsignal (int); ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libstdc++-v3/include/c_global/cstring:42:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:205, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /usr/include/string.h:563:14: note: previous declaration ‘char* strsignal(int)’ extern char *strsignal (int __sig) __THROW; ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include/hashtab.h:40:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include/filenames.h:29, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:630, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include/ansidecl.h:171:64: error: ambiguating new declaration of ‘char* basename(const char*)’ # define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m))) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include/libiberty.h:110:64: note: in expansion of macro ‘ATTRIBUTE_NONNULL’ extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1); ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libstdc++-v3/include/c_global/cstring:42:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:205, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /usr/include/string.h:600:26: note: old declaration ‘const char* basename(const char*)’ extern "C++" const char *basename (const char *__filename) ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:1064:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘int clz_hwi(long unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:244:12: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ return HOST_BITS_PER_WIDE_INT; ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘int ctz_hwi(long unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:258:12: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ return HOST_BITS_PER_WIDE_INT; ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘int floor_log2(long unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:295:10: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ return HOST_BITS_PER_WIDE_INT - 1 - clz_hwi (x); ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘long int sext_hwi(long int, unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:328:15: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ if (prec == HOST_BITS_PER_WIDE_INT) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h: In function ‘long unsigned int zext_hwi(long unsigned int, unsigned int)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:16:30: error: ‘CHAR_BIT’ was not declared in this scope #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’ # define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/hwint.h:342:15: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’ if (prec == HOST_BITS_PER_WIDE_INT) ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c: In function ‘int main(int, char**)’: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:139:39: error: ‘LTOPLUGINSONAME’ was not declared in this scope plugin = find_a_file (&target_path, LTOPLUGINSONAME, R_OK); ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:189:35: error: call of overloaded ‘strsignal(int&)’ is ambiguous exe_name, sig, strsignal (sig), ^ /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:189:35: note: candidates are: In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libstdc++-v3/include/c_global/cstring:42:0, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:205, from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22: /usr/include/string.h:563:14: note: char* strsignal(int) extern char *strsignal (int __sig) __THROW; ^ In file included from /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c:22:0: /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/system.h:506:20: note: const char* strsignal(int) extern const char *strsignal (int); ^ Makefile:1069: recipe for target 'gcc-ar.o' failed make: *** [gcc-ar.o] Error 1 gentoo-buildhost-x64 gcc # make gcc-ar.o CPPFLAGS='-E -dD' /var/tmp/portage/sys-devel/gcc-4.9.2/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -isystem /var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -isystem /var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -isystem /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-4.9.2/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DEFAULT_SSP -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/usr/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.9.2\" -DDEFAULT_TARGET_MACHINE=\"x86_64-pc-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" -DENABLE_SHARED_LIBGCC -DCONFIGURE_SPECS="\"\"" -DTARGET_MACHINE=\"x86_64-pc-linux-gnu\" -DPERSONALITY=\"ar\" -m64 -O2 -pipe -march=sandybridge -mtune=sandybridge -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/../libbacktrace -E -dD -o gcc-ar.o -MT gcc-ar.o -MMD -MP -MF ./.deps/gcc-ar.TPo /var/tmp/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/gcc/gcc-ar.c
thanks, that file shows it is indeed a parallel issue: # 1 "../libdecnumber/config.h" 1 it should be using config.h from $PWD which would pull in auto-host.h which handles things like strsignal
probably the fact that gcc/Makefile does: native: config.status auto-host.h build-po $(LANGUAGES) \ $(EXTRA_PROGRAMS) $(COLLECT2) lto-wrapper$(exeext) \ gcc-ar$(exeext) gcc-nm$(exeext) gcc-ranlib$(exeext) ordering of dependencies is not guaranteed. if it's cilk related, my guess is that the cilk config.h was fuller and the gcc dir didn't notice.
upstream already has a bug report, so i'll move development there. doesn't look like too much progress has been made yet though.
i've backported the upstream fix into 4.8.4 and 4.9.2 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.8.4/gentoo/93_all_gcc-4.8-config.h-bconfig.h-parallel-PR57125-PR61899.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.9.2/gentoo/93_all_gcc-4.9-config.h-bconfig.h-parallel-PR57125-PR61899.patch?rev=1.1 hopefully this should put to bed all bconfig.h/config.h issues ;)
Commit message: Add fix from upstream for config.h/bconfig.h parallel build problems http://sources.gentoo.org/sys-devel/gcc/gcc-4.8.4.ebuild?r1=1.4&r2=1.5 http://sources.gentoo.org/sys-devel/gcc/gcc-4.9.2.ebuild?r1=1.15&r2=1.16
*** Bug 545166 has been marked as a duplicate of this bug. ***
*** Bug 549638 has been marked as a duplicate of this bug. ***
I'm getting the same thing on gcc-4.9.3 Should i open a new bug?
(In reply to Gary E. Miller from comment #18) yes. this has been closed for over 6 months w/no new reports.