https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-lisp/gcl-2.6.12 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses a gold linker (ld.gold). If you think that this issue is strictly related to ld.gold please block bug 269315.
Created attachment 664540 [details] build.log build log and emerge --info
Created attachment 664543 [details] 1-config.log 1-config.log
Possible context of error(s): checking for buggy maximum sscanf length... cat: conftest1: No such file or directory checking for isfinite... checking for finite()... configure: error: no
It seems the real error is earlier: configure:8513: x86_64-pc-linux-gnu-gcc -o conftest -pipe -march=native -frecord-gcc-switches -fgnu89-inline -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=gold -Wl,-T gcl.script conftest.c >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: gcl.script:49:22: syntax error, unexpected '(' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: fatal error: unable to parse script file gcl.script collect2: error: ld returned 1 exit status configure:8513: $? = 1 configure: program exited with status 1 And it seems that it's indeed some incompatibility of gold with the normal ld.