http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50279
Bug #: 50279 Summary: go bootstrap fails with lto Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: jpfol...@verizon.net A git checkout of gcc trunk at 982ffd8d9a1d9df5d91298d89d38293f4f3c86b4 configured with --with-build-config=bootstrap-lto --enable-languages=all,obj-c++,go on a gentoo linux x86_64 system with a gcc 4.5.3 bootstrap compiler gives this error: /root/gcc/lto/./prev-gcc/g++ -B/root/gcc/lto/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/root/gcc/libstdc++-v3/libsupc++ -L/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/root/gcc/lto/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -flto=jobserver -frandom-seed=1 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o go1 \ go/ast-dump.o go/dataflow.o go/export.o go/expressions.o go/go-backend.o go/go-dump.o go/go-gcc.o go/go-lang.o go/go-optimize.o go/go.o go/gogo-tree.o go/gogo.o go/import.o go/import-archive.o go/lex.o go/parse.o go/runtime.o go/statements.o go/types.o go/unsafe.o attribs.o main.o tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lppl_c -lppl -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz In file included from ../../gcc/tree-ssa-address.c:1020:0, from ../../gcc/coretypes.h:63, from :4410: ../../gcc/go/gofrontend/gogo-tree.cc: In function 'sort': ../../gcc/go/gofrontend/gogo-tree.cc:205:32: internal compiler error: in splice_child_die, at dwarf2out.c:5007 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[3]: *** [/tmp/ccgXj2ab.ltrans1.ltrans.o] Error 1 lto-wrapper: make returned 2 exit status /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status make[2]: *** [go1] Error 1