https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-lang/gprolog-1.4.5 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses a clang/LLVM toolchain. If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
Created attachment 654564 [details] build.log build log and emerge --info
The issue here isn't clang but llvm-ar and company
Created attachment 693351 [details] llvm-as fail
Using llvm-as looks suspicious. gprolog converts (Prolog) VM instructions into AT&T assembler. AFAIK llvm-as requires LLVM assembler as an input, whereas clang itself should be used to compile AT&T assembler. A workaround could be to patch the configure script to check for "clang" rather than "as" for the assembler if $CC == clang.
This is now fixed in git.