sys-devel/gcc fails to build during bootstrap |
||||||
Issue descriptionChromiumos-sdk trybot: https://uberchromegw.corp.google.com/i/chromiumos.tryserver/builders/chromiumos-sdk/builds/2197 This was launched to test a draft CL for upgrading binutils to 2.27: https://chromium-review.googlesource.com/#/c/486144 Snippet of the log from the InitSDK stage: gcc-4.9.2-r153: x86_64-pc-linux-gnu-g++ -O2 -pipe -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-O1 -o lto1 \ gcc-4.9.2-r153: lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a gcc-4.9.2-r153: collect2: fatal error: cannot find 'ld' gcc-4.9.2-r153: compilation terminated. gcc-4.9.2-r153: make[3]: *** [lto1] Error 1 gcc-4.9.2-r153: * ERROR: sys-devel/gcc-4.9.2-r153::chromiumos failed (compile phase): gcc-4.9.2-r153: * emake failed The full log is here: https://uberchromegw.corp.google.com/i/chromiumos.tryserver/builders/chromiumos-sdk/builds/2197/steps/InitSDK/logs/stdio
,
May 3 2017
probably: https://bugs.gentoo.org/563614
,
May 15 2017
Issue 722439 has been merged into this issue.
,
Jul 21 2017
,
Sep 25 2017
This is annoyance but I dont see anyone doing anything about this. So, I will archive it.
,
Jan 5 2018
Issue 799509 has been merged into this issue.
,
Jan 5 2018
vapier@ : Will adding a RDEPEND >=${CATEGORY}/binutils-2.27 to gcc ebuild fix the parallel binutils update issue in the builder?
,
Jan 5 2018
I think a DEPEND= would fix it for now, but it will potentially re-break whenever we upgrade binutils again.
,
Jan 5 2018
right, everytime binutils updates, it'll run into it
,
Aug 30
Issue 879005 has been merged into this issue.
,
Aug 30
I feel bad people keep reporting this issue. can we try DEPEND solution? even if it is "temporary"
,
Aug 30
i'm fairly certain gcc just happens to trip it more frequently because it's a larger build, and because we're updating it around the same time. however, any package that happens to be compiling when binutils is installed might run into the same failure. i've looked at the binutils-config code and don't see where we're missing the atomic update.
,
Dec 17
Issue 915737 has been merged into this issue.
,
Dec 20
,
Dec 21
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/crosutils/+/af95b61ea18e9f223c01c3a81578e4a49620f890 commit af95b61ea18e9f223c01c3a81578e4a49620f890 Author: Mike Frysinger <vapier@chromium.org> Date: Fri Dec 21 19:33:34 2018 make_chroot: manually build host toolchain packages in order To workaround race conditions where we build & install a package that is actively being used by other packages we're building (e.g. we run the assembler while building gcc while also building & installing the assembler in parallel), pull some of the critical packages out so we can run them in a specific order. For now we build binutils & the C library in serial. The other libs and compilers don't directly depend on each other, so they can still build in parallel. This might slow the build down overall slightly, but we probably don't run as slow in practice because we don't see large packages (e.g. gcc) failing to build and then needing to be retried. BUG= chromium:715788 TEST=bootstrapping sdk still works Change-Id: I5d52d1660662957daf10f4ba6b0d116a788dff21 Reviewed-on: https://chromium-review.googlesource.com/c/1387715 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> [modify] https://crrev.com/af95b61ea18e9f223c01c3a81578e4a49620f890/sdk_lib/make_chroot.sh
,
Dec 21
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by rahulchaudhry@chromium.org
, Apr 26 2017Labels: -Pri-2 Pri-3
Owner: ----
Status: Available (was: Assigned)
Summary: sys-devel/gcc fails to build during bootstrap (was: binutils-2.27: sys-devel/gcc fails to build during bootstrap)