Created attachment 697833 [details, diff] riscv workaround patch Different failures with host linker set to bfd or gold; cross-binutils ends up without a riscv64-unknown-linux-gnu-ld sometimes, other times it can't find gcc libs. Not sure what the "right" fix is, but the cleanest workaround so far is a small patch: @@ -247,6 +247,11 @@ parse_target() { STAGE_DEFAULT=${STAGE_C_ONLY} WITH_DEF_HEADERS="no";; + riscv*) + BUSE+=" -default-gold"; + WITH_DEF_HEADERS="no"; + ;; + # added in bug #609602 mmix*) KPKG="[none]"
(In reply to Steve Arnold from comment #0) > Created attachment 697833 [details, diff] [details, diff] > riscv workaround patch > > Different failures with host linker set to bfd or gold; cross-binutils ends > up without a riscv64-unknown-linux-gnu-ld sometimes, other times it can't > find gcc libs. Probably default lib path should be set explicitly in binutils ebuild (but gcc is expected to have up to date path). Hard to say without seeing an error. > Not sure what the "right" fix is, but the cleanest workaround so far is a small patch: > @@ -247,6 +247,11 @@ parse_target() { > STAGE_DEFAULT=${STAGE_C_ONLY} > WITH_DEF_HEADERS="no";; > > + riscv*) > + BUSE+=" -default-gold"; This looks wrong. Should be -gold as well. Do you have an example failure reproducer? > + WITH_DEF_HEADERS="no"; This is already a crossdev's default: bug #686248
You're right, riscv does need to have gold disabled (at least for now).
Closing as NEEDINFO as we need to have at least some logs to evaluate the change.