Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737072 - dev-lang/gprolog-1.4.5 fails to compile
Summary: dev-lang/gprolog-1.4.5 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prolog project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2020-08-14 06:50 UTC by Agostino Sarubbo
Modified: 2021-06-27 10:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,19.87 KB, text/plain)
2020-08-14 06:50 UTC, Agostino Sarubbo
Details
llvm-as fail (gprolog-1.4.5:20210324-043325.log,22.59 KB, text/x-log)
2021-03-24 19:08 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-08-14 06:50:52 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-14 06:50:55 UTC
Created attachment 654564 [details]
build.log

build log and emerge --info
Comment 2 Alessandro Barbieri 2021-03-24 19:07:34 UTC
The issue here isn't clang but llvm-ar and company
Comment 3 Alessandro Barbieri 2021-03-24 19:08:41 UTC
Created attachment 693351 [details]
llvm-as fail
Comment 4 Keri Harris gentoo-dev 2021-06-26 14:15:48 UTC
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.
Comment 5 Keri Harris gentoo-dev 2021-06-27 10:35:11 UTC
This is now fixed in git.