Hi!
I have a combined source tree (binutils and gcc together) and I see an
error when I try to enable the gold linker. Is this a bug or is it
something wrong on my end?
/home/solskogen/obj/./prev-gcc/xg++ -B/home/solskogen/obj/./prev-gcc/
-B/tools/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/solskogen/src/gcc-ba10013/libstdc++-v3/libsupc++
-L/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-no-pie -g -O2 -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o cc1 c/c-lang.o
c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o
c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o
c/c-array-notation.o c/c-fold.o c/gimple-parser.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o
c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o
c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o
c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o
c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o
c-family/c-attribs.o c-family/c-warn.o i386-c.o glibc-c.o \
cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-L/home/solskogen/obj/./isl/.libs -lisl
-L/home/solskogen/obj/./gmp/.libs -L/home/solskogen/obj/./mpfr/src/.libs
-L/home/solskogen/obj/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl
-L./../zlib -lz
/home/solskogen/obj/./prev-gcc/xg++ -B/home/solskogen/obj/./prev-gcc/
-B/tools/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/solskogen/src/gcc-ba10013/libstdc++-v3/libsupc++
-L/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/solskogen/obj/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-no-pie -g -O2 -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o cc1plus \
cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o
cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o
cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o
cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o
cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o
cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o
cp/cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o
cp/constexpr.o cp/cp-ubsan.o cp/constraint.o cp/logic.o attribs.o
incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o
c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o
c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o
c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o
c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o
c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o
c-family/c-attribs.o c-family/c-warn.o i386-c.o glibc-c.o
cc1plus-checksum.o libbackend.a main.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-L/home/solskogen/obj/./isl/.libs -lisl
-L/home/solskogen/obj/./gmp/.libs -L/home/solskogen/obj/./mpfr/src/.libs
-L/home/solskogen/obj/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl
-L./../zlib -lz
collect2: error: ld returned 1 exit status
/home/solskogen/src/gcc-ba10013/gcc/cp/Make-lang.in:113: recipe for
target 'cc1plus' failed
make[3]: *** [cc1plus] Error 1
make[3]: Leaving directory '/home/solskogen/obj/gcc'
Makefile:7896: recipe for target 'all-stage3-gcc' failed
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory '/home/solskogen/obj'
Makefile:31394: recipe for target 'stage3-bubble' failed
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory '/home/solskogen/obj'
Makefile:941: recipe for target 'all' failed
make: *** [all] Error 2
This is with "/home/solskogen/src/gcc-ba10013/configure --prefix=/tools
--libexecdir=/tools/lib --enable-languages=c,c++ --disable-libstdcxx-pch
--disable-multilib --enable-checking=release --with-tune=native
--with-arch=native --enable-gold", without "--enable-gold" it builds
perfectly.
--
chs