Skip to content

Instantly share code, notes, and snippets.

@avnik
Created March 26, 2015 23:12
Show Gist options
  • Save avnik/647bc1cb68f3c0f16f9e to your computer and use it in GitHub Desktop.
Save avnik/647bc1cb68f3c0f16f9e to your computer and use it in GitHub Desktop.
failure of gcc 4.9 bootstrap
echo "/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/./prev-gcc/xg++ -B/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/./prev-gcc/ -B/nix/store/s1k3bm28a66lvw5p9lxhdk6fs0d5017v-gccgo-4.9.2/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/var/tmp/nix-build-gccgo-4.9.2.drv-0/gcc-4.9.2/libstdc++-v3/libsupc++ -L/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -O2 -I/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/include -B/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib/ -idirafter /nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/include -idirafter /nix/store/6vz6baw7wc26bp2c2i2lpip1z9yvcw0c-gcc-4.8.4/lib/gcc/*/*/include-fixed -Wl,-L/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-rpath -Wl,/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-L/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-dynamic-linker -Wl,/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib/ld-linux-x86-64.so.2 -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 -O2 -I/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/include -B/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib/ -idirafter /nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/include -idirafter /nix/store/6vz6baw7wc26bp2c2i2lpip1z9yvcw0c-gcc-4.8.4/lib/gcc/*/*/include-fixed -Wl,-L/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-rpath -Wl,/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-L/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-dynamic-linker -Wl,/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib/ld-linux-x86-64.so.2" > checksum-options.tmp \
&& ../../gcc-4.9.2/gcc/../move-if-change checksum-options.tmp checksum-options
/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/./prev-gcc/xg++ -B/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/./prev-gcc/ -B/nix/store/s1k3bm28a66lvw5p9lxhdk6fs0d5017v-gccgo-4.9.2/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/var/tmp/nix-build-gccgo-4.9.2.drv-0/gcc-4.9.2/libstdc++-v3/libsupc++ -L/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/nix/store/s1k3bm28a66lvw5p9lxhdk6fs0d5017v-gccgo-4.9.2/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/nix/store/s1k3bm28a66lvw5p9lxhdk6fs0d5017v-gccgo-4.9.2/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.9.2\" -DDEFAULT_TARGET_MACHINE=\"x86_64-unknown-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/nix/store/s1k3bm28a66lvw5p9lxhdk6fs0d5017v-gccgo-4.9.2/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" -DENABLE_SHARED_LIBGCC -DCONFIGURE_SPECS="\"\"" -DTARGET_MACHINE=\"x86_64-unknown-linux-gnu\" -DPERSONALITY=\"ar\" -O2 -I/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/include -B/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib/ -idirafter /nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/include -idirafter /nix/store/6vz6baw7wc26bp2c2i2lpip1z9yvcw0c-gcc-4.8.4/lib/gcc/*/*/include-fixed -Wl,-L/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-rpath -Wl,/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-L/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib -Wl,-dynamic-linker -Wl,/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/lib/ld-linux-x86-64.so.2 -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 -I. -I. -I../../gcc-4.9.2/gcc -I../../gcc-4.9.2/gcc/. -I../../gcc-4.9.2/gcc/../include -I../../gcc-4.9.2/gcc/../libcpp/include -I/nix/store/fjkshii315nzy8bh74wv0x51di09iadj-gmp-5.1.3/include -I/nix/store/k3mpiqy8bgwkf6bwbw2p7rji9lasxrjs-mpfr-3.1.2/include -I/nix/store/3jj32qc78m1dyxnx14wfq6hkcmq1wsyz-libmpc-1.0.1/include -I../../gcc-4.9.2/gcc/../libdecnumber -I../../gcc-4.9.2/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-4.9.2/gcc/../libbacktrace -DCLOOG_INT_GMP -I/nix/store/g1vlkx6a44d2xk8fc0l3lmc568qy9bna-cloog-0.18.0/include -I/nix/store/ddgm4nrck01iliqypxdahrrqn4jq93dd-isl-0.11.1/include -o gcc-ar.o -MT gcc-ar.o -MMD -MP -MF ./.deps/gcc-ar.TPo ../../gcc-4.9.2/gcc/gcc-ar.c
In file included from ../../gcc-4.9.2/gcc/gcc-ar.c:22:0:
../../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/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cstring:42:0,
from ../../gcc-4.9.2/gcc/system.h:205,
from ../../gcc-4.9.2/gcc/gcc-ar.c:22:
/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/include/string.h:563:14: note: previous declaration 'char* strsignal(int)'
extern char *strsignal (int __sig) __THROW;
^
In file included from ../../gcc-4.9.2/gcc/../include/hashtab.h:40:0,
from ../../gcc-4.9.2/gcc/../include/filenames.h:29,
from ../../gcc-4.9.2/gcc/system.h:630,
from ../../gcc-4.9.2/gcc/gcc-ar.c:22:
../../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)))
^
../../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/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cstring:42:0,
from ../../gcc-4.9.2/gcc/system.h:205,
from ../../gcc-4.9.2/gcc/gcc-ar.c:22:
/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/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 ../../gcc-4.9.2/gcc/system.h:1064:0,
from ../../gcc-4.9.2/gcc/gcc-ar.c:22:
../../gcc-4.9.2/gcc/hwint.h: In function 'int clz_hwi(long unsigned int)':
../../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)
^
../../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
^
../../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;
^
../../gcc-4.9.2/gcc/hwint.h: In function 'int ctz_hwi(long unsigned int)':
../../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)
^
../../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
^
../../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;
^
../../gcc-4.9.2/gcc/hwint.h: In function 'int floor_log2(long unsigned int)':
../../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)
^
../../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
^
../../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);
^
../../gcc-4.9.2/gcc/hwint.h: In function 'long int sext_hwi(long int, unsigned int)':
../../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)
^
../../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
^
../../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)
^
../../gcc-4.9.2/gcc/hwint.h: In function 'long unsigned int zext_hwi(long unsigned int, unsigned int)':
../../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)
^
../../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
^
../../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)
^
../../gcc-4.9.2/gcc/gcc-ar.c: In function 'int main(int, char**)':
../../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);
^
../../gcc-4.9.2/gcc/gcc-ar.c:189:35: error: call of overloaded 'strsignal(int&)' is ambiguous
exe_name, sig, strsignal (sig),
^
../../gcc-4.9.2/gcc/gcc-ar.c:189:35: note: candidates are:
In file included from /var/tmp/nix-build-gccgo-4.9.2.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/cstring:42:0,
from ../../gcc-4.9.2/gcc/system.h:205,
from ../../gcc-4.9.2/gcc/gcc-ar.c:22:
/nix/store/6k9z1sfl7kghmagwd205k3i81pbcw57s-glibc-2.21/include/string.h:563:14: note: char* strsignal(int)
extern char *strsignal (int __sig) __THROW;
^
In file included from ../../gcc-4.9.2/gcc/gcc-ar.c:22:0:
../../gcc-4.9.2/gcc/system.h:506:20: note: const char* strsignal(int)
extern const char *strsignal (int);
^
Makefile:1058: recipe for target 'gcc-ar.o' failed
make[3]: *** [gcc-ar.o] Error 1
make[3]: Leaving directory '/var/tmp/nix-build-gccgo-4.9.2.drv-0/build/gcc'
Makefile:4261: recipe for target 'all-stage2-gcc' failed
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory '/var/tmp/nix-build-gccgo-4.9.2.drv-0/build'
Makefile:20017: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/var/tmp/nix-build-gccgo-4.9.2.drv-0/build'
Makefile:20220: recipe for target 'bootstrap' failed
make: *** [bootstrap] Error 2
builder for ‘/nix/store/rpz46lq8wp3jhkkr3s3bwnlrbc0k772x-gccgo-4.9.2.drv’ failed with exit code 2
cannot build derivation ‘/nix/store/xg55w66wdxzis7zyighl8y4ji0lvdx5z-gccgo-wrapper-4.9.2.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/3aw7h3ld026yrz47jrndc9fc3xy8kz6y-env-gccgo.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/3aw7h3ld026yrz47jrndc9fc3xy8kz6y-env-gccgo.drv’ failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment