Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 917022

Summary: app-misc/jq-1.7 fails to build with clang
Product: Gentoo Linux Reporter: wolfgang <ezzieyguywuf>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge_info.txt
build.log
config.log

Description wolfgang 2023-11-08 02:11:47 UTC
From build.log:

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc -->
checking for x86_64-pc-linux-gnu-gcc... clang
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/app-misc/jq-1.7/work/jq-jq-1.7':
configure: error: C compiler cannot create executables
See `config.log' for more details
Comment 1 wolfgang 2023-11-08 02:12:10 UTC
Created attachment 874300 [details]
emerge_info.txt

emerge --info
Comment 2 wolfgang 2023-11-08 02:13:14 UTC
Created attachment 874301 [details]
build.log

build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-08 02:15:50 UTC
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-misc/jq-1.7/work/jq-jq-1.7/config.log
Comment 4 wolfgang 2023-11-08 02:23:14 UTC
Created attachment 874302 [details]
config.log

/var/tmp/portage/app-misc/jq-1.7/work/jq-jq-1.7/config.log

🤦
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-08 02:33:20 UTC
configure:3315: checking whether the C compiler works
configure:3337: clang -O2 -pipe -march=znver3  -Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed conftest.c  >&5
clang-16: error: invalid linker name in argument '-fuse-ld=lld'
configure:3341: $? = 1

Do you have lld installed?
Comment 6 wolfgang 2023-11-08 02:36:31 UTC
> Do you have lld installed?

I don't! as discussed in chat I probably depcleaned this away recently.

I'll remerge it and then retry jq. I'll close the bug if all goes well.
Comment 7 wolfgang 2023-11-08 03:07:30 UTC
confirmed that installing lld resolves this, closing bug.