Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917022 - app-misc/jq-1.7 fails to build with clang
Summary: app-misc/jq-1.7 fails to build with clang
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-08 02:11 UTC by wolfgang
Modified: 2023-11-08 03:07 UTC (History)
0 users

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


Attachments
emerge_info.txt (emerge_info.txt,7.05 KB, text/plain)
2023-11-08 02:12 UTC, wolfgang
Details
build.log (build.log,4.16 KB, text/plain)
2023-11-08 02:13 UTC, wolfgang
Details
config.log (config.log,8.92 KB, text/plain)
2023-11-08 02:23 UTC, wolfgang
Details

Note You need to log in before you can comment on or make changes to this bug.
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.