http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56954
Bug #: 56954 Summary: Bootstrap failure: ./auto-host.h:1994:16: error: declaration does not declare anything [-fpermissive] Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: e1398...@rmqkr.net I am trying to bootstrap a cross compiler from an amd64 GNU/Linux host to x86_64-unknown-linux-gnu. First error: /tmp/build/./prev-gcc/xg++ -B/tmp/build/./prev-gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/src/libstdc++-v3/libsupc++ -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -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 -DGENERATOR_FILE -I. -Ibuild -I/tmp/src/gcc -I/tmp/src/gcc/build -I/tmp/src/gcc/../include -I/tmp/src/gcc/../libcpp/include -I/tmp/src/gcc/../libdecnumber -I/tmp/src/gcc/../libdecnumber/bid -I../libdecnumber -I/tmp/src/gcc/../libbacktrace \ -o build/genchecksum.o /tmp/src/gcc/genchecksum.c In file included from ./bconfig.h:3:0, from /tmp/src/gcc/gengenrtl.c:21: ./auto-host.h:1994:16: error: declaration does not declare anything [-fpermissive] #define rlim_t< long ^ /tmp/build/./prev-gcc/xg++ -v Using built-in specs. COLLECT_GCC=/tmp/build/./prev-gcc/xg++ Target: x86_64-unknown-linux-gnu Configured with: /tmp/src/configure --target=x86_64-unknown-linux-gnu --prefix=/usr --enable-languages=c,c++ --with-sysroot=/tmp/sysroot Thread model: posix gcc version 4.8.0 (GCC) make[3]: Entering directory `/tmp/build/gcc' TARGET_CPU_DEFAULT="" \ HEADERS="auto-host.h ansidecl.h" DEFINES="" \ /bin/sh /tmp/src/gcc/mkconfig.sh config.h TARGET_CPU_DEFAULT="" \ HEADERS="options.h insn-constants.h config/vxworks-dummy.h config/i386/biarch64.h config/i386/i386.h config/linux-android.h config/i386/unix.h config/i386/att.h config/dbxelf.h config/elfos.h config/gnu-user.h config/glibc-stdint.h config/i386/x86-64.h config/i386/gnu-user-common.h config/i386/gnu-user64.h config/linux.h config/i386/linux-common.h config/i386/linux64.h config/initfini-array.h defaults.h" DEFINES="LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 DEFAULT_LIBC=LIBC_GLIBC ANDROID_DEFAULT=0" \ /bin/sh /tmp/src/gcc/mkconfig.sh tm.h gawk -f /tmp/src/gcc/opt-gather.awk /tmp/src/gcc/ada/gcc-interface/lang.opt /tmp/src/gcc/fortran/lang.opt /tmp/src/gcc/go/lang.opt /tmp/src/gcc/java/lang.opt /tmp/src/gcc/lto/lang.opt /tmp/src/gcc/c-family/c.opt /tmp/src/gcc/common.opt /tmp/src/gcc/config/fused-madd.opt /tmp/src/gcc/config/i386/i386.opt /tmp/src/gcc/config/gnu-user.opt /tmp/src/gcc/config/linux.opt /tmp/src/gcc/config/linux-android.opt > tmp-optionlist TARGET_CPU_DEFAULT="" \ HEADERS="auto-host.h ansidecl.h" DEFINES="" \ /bin/sh /tmp/src/gcc/mkconfig.sh bconfig.h /tmp/build/./prev-gcc/xg++ -B/tmp/build/./prev-gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/src/libstdc++-v3/libsupc++ -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -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 -DGENERATOR_FILE -I. -Ibuild -I/tmp/src/gcc -I/tmp/src/gcc/build -I/tmp/src/gcc/../include -I/tmp/src/gcc/../libcpp/include -I/tmp/src/gcc/../libdecnumber -I/tmp/src/gcc/../libdecnumber/bid -I../libdecnumber -I/tmp/src/gcc/../libbacktrace \ -DBASEVER="\"4.8.0\"" -DDATESTAMP="\"\"" \ -DREVISION="\"\"" \ -DDEVPHASE="\"\"" -DPKGVERSION="\"(GCC) \"" \ -DBUGURL="\"<http://gcc.gnu.org/bugs.html>\"" -o build/version.o /tmp/src/gcc/version.c /bin/sh /tmp/src/gcc/../move-if-change tmp-gi.list gtyp-input.list echo "#define BUILDING_GCC_MAJOR `echo 4.8.0 | sed -e 's/^\([0-9]*\).*$/\1/'`" > bversion.h TARGET_CPU_DEFAULT="" \ HEADERS="config/i386/i386-protos.h tm-preds.h" DEFINES="" \ /bin/sh /tmp/src/gcc/mkconfig.sh tm_p.h echo timestamp > s-gtyp-input echo "#define BUILDING_GCC_MINOR `echo 4.8.0 | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`" >> bversion.h rm -f tmp-all-tree.def echo "#define BUILDING_GCC_PATCHLEVEL `echo 4.8.0 | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`" >> bversion.h echo '#include "tree.def"' > tmp-all-tree.def echo "#define BUILDING_GCC_VERSION (BUILDING_GCC_MAJOR * 1000 + BUILDING_GCC_MINOR)" >> bversion.h echo 'END_OF_BASE_TREE_CODES' >> tmp-all-tree.def echo timestamp > s-bversion echo '#include "c-family/c-common.def"' >> tmp-all-tree.def ltf="/tmp/src/gcc/ada/gcc-interface/ada-tree.def /tmp/src/gcc/cp/cp-tree.def /tmp/src/gcc/java/java-tree.def /tmp/src/gcc/objc/objc-tree.def"; for f in $ltf; do \ echo "#include \"$f\""; \ done | sed 's|/tmp/src/gcc/||' >> tmp-all-tree.def /bin/sh /tmp/src/gcc/../move-if-change tmp-all-tree.def all-tree.def echo timestamp > s-alltree if test yes = yes \ || test -n "m64=../lib64 m32=../lib mx32=../libx32"; then \ /bin/sh /tmp/src/gcc/genmultilib \ "m64/m32" \ " 64 32" \ "" \ "" \ "" \ "" \ "m64=../lib64 m32=../lib mx32=../libx32" \ "" \ "" \ "" \ "yes" \ > tmp-mlib.h; \ else \ /bin/sh /tmp/src/gcc/genmultilib '' '' '' '' '' '' '' '' \ "" '' no \ > tmp-mlib.h; \ fi lsf="/tmp/src/gcc/cp/lang-specs.h /tmp/src/gcc/lto/lang-specs.h"; for f in $lsf; do \ echo "#include \"$f\""; \ done | sed 's|/tmp/src/gcc/||' > tmp-specs.h /bin/sh /tmp/src/gcc/../move-if-change tmp-specs.h specs.h echo "/tmp/build/./prev-gcc/xg++ -B/tmp/build/./prev-gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/src/libstdc++-v3/libsupc++ -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -gtoggle -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 -static-libstdc++ -static-libgcc " > checksum-options.tmp \ && /tmp/src/gcc/../move-if-change checksum-options.tmp checksum-options echo timestamp > s-specs gawk -f /tmp/src/gcc/config/i386/i386-builtin-types.awk /tmp/src/gcc/config/i386/i386-builtin-types.def > tmp-bt.inc cp /tmp/src/gcc/gcc-ar.c gcc-nm.c cp /tmp/src/gcc/gcc-ar.c gcc-ranlib.c /bin/sh /tmp/src/gcc/../move-if-change tmp-bt.inc i386-builtin-types.inc rm -f mm_malloc.h cat /tmp/src/gcc/config/i386/pmm_malloc.h > mm_malloc.h echo timestamp > s-i386-bt TARGET_CPU_DEFAULT="" \ HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \ /bin/sh /tmp/src/gcc/mkconfig.sh tconfig.h /tmp/build/./prev-gcc/xg++ -B/tmp/build/./prev-gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/src/libstdc++-v3/libsupc++ -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -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 -DGENERATOR_FILE -I. -Ibuild -I/tmp/src/gcc -I/tmp/src/gcc/build -I/tmp/src/gcc/../include -I/tmp/src/gcc/../libcpp/include -I/tmp/src/gcc/../libdecnumber -I/tmp/src/gcc/../libdecnumber/bid -I../libdecnumber -I/tmp/src/gcc/../libbacktrace \ -o build/gengenrtl.o /tmp/src/gcc/gengenrtl.c /tmp/build/./prev-gcc/xg++ -B/tmp/build/./prev-gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/src/libstdc++-v3/libsupc++ -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -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 -DGENERATOR_FILE -I. -Ibuild -I/tmp/src/gcc -I/tmp/src/gcc/build -I/tmp/src/gcc/../include -I/tmp/src/gcc/../libcpp/include -I/tmp/src/gcc/../libdecnumber -I/tmp/src/gcc/../libdecnumber/bid -I../libdecnumber -I/tmp/src/gcc/../libbacktrace \ -o build/genhooks.o /tmp/src/gcc/genhooks.c /bin/sh /tmp/src/gcc/../move-if-change tmp-mlib.h multilib.h echo timestamp > s-mlib /tmp/build/./prev-gcc/xg++ -B/tmp/build/./prev-gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/src/libstdc++-v3/libsupc++ -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -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 -DGENERATOR_FILE -I. -Ibuild -I/tmp/src/gcc -I/tmp/src/gcc/build -I/tmp/src/gcc/../include -I/tmp/src/gcc/../libcpp/include -I/tmp/src/gcc/../libdecnumber -I/tmp/src/gcc/../libdecnumber/bid -I../libdecnumber -I/tmp/src/gcc/../libbacktrace \ -o build/genchecksum.o /tmp/src/gcc/genchecksum.c In file included from ./bconfig.h:3:0, from /tmp/src/gcc/gengenrtl.c:21: ./auto-host.h:1994:16: error: declaration does not declare anything [-fpermissive] #define rlim_t long ^ In file included from /tmp/src/gcc/gengenrtl.c:22:0: /tmp/src/gcc/system.h:444:23: error: declaration of C function 'void* sbrk(int)' conflicts with extern void *sbrk (int); ^ In file included from /tmp/src/gcc/system.h:254:0, from /tmp/src/gcc/gengenrtl.c:22: /tmp/sysroot/usr/include/unistd.h:1065:14: error: previous declaration 'void* sbrk(intptr_t)' here extern void *sbrk (intptr_t __delta) __THROW; ^ In file included from /tmp/src/gcc/gengenrtl.c:22:0: /tmp/src/gcc/system.h:448:48: error: new declaration 'char* strstr(const char*, const char*)' extern char *strstr (const char *, const char *); ^ In file included from /tmp/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cstring:42:0, from /tmp/src/gcc/system.h:205, from /tmp/src/gcc/gengenrtl.c:22: /tmp/sysroot/usr/include/string.h:331:1: error: ambiguates old declaration 'const char* strstr(const char*, const char*)' strstr (const char *__haystack, const char *__needle) __THROW ^