Summary: | =sys-devel/gcc-5.4.0-r3 fails to build - collect2: error: ld returned 1 exit status | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Renato Alves <simpledark> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | aparicio99, graaff |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | gcc-build-logs.tar.bz2 |
Description
Renato Alves
2017-05-06 19:08:07 UTC
I see the same error on one of my systems. /tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./prev-gcc/xg++ -B/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -isystem /tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -isystem /tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -isystem /tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/libstdc++-v3/libsupc++ -L/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -DEFAULT_SSP -m64 -march=core2 -O2 -pipe -gtoggle -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-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-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 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 -lmpc -lmpfr -lgmp -rdynamic -ldl -lz /tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./prev-gcc/xg++ -B/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -isystem /tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -isystem /tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -isystem /tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/libstdc++-v3/libsupc++ -L/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -DEFAULT_SSP -m64 -march=core2 -O2 -pipe -gtoggle -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 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-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 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 -lmpc -lmpfr -lgmp -rdynamic -ldl -lz collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status make[3]: *** [/tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/gcc/cp/Make-lang.in:99: cc1plus] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [/tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/gcc/c/Make-lang.in:71: cc1] Error 1 ld didn't want to tell us why. Anything that can be done about it? If I run resume the ebuild while running as root, it can get past this. If I resume it while running as portage, it just gives the same error. I haven't been able to find any permissions problems in the working directory though. (In reply to David Owen from comment #4) > If I run resume the ebuild while running as root, it can get past this. If > I resume it while running as portage, it just gives the same error. > > I haven't been able to find any permissions problems in the working > directory though. Oh, just found *my* problem. Out of disk space. Running as root allowed me to use the reserved space, but portage couldn't. The lto1 file that this bug is failing at was 115 MiB on my system. Anyone still hitting this when building gcc-6 ? Please check if disk space may be the problem. (In reply to Andreas K. Hüttel from comment #6) > Anyone still hitting this when building gcc-6 ? > Please check if disk space may be the problem. Seems not. (In reply to Andreas K. Hüttel from comment #6) > Anyone still hitting this when building gcc-6 ? > Please check if disk space may be the problem. Run into this yesterday: out of disk space. |