Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943507 - sys-apps/systemd-utils[boot] can not compile in systems when gcc is not present
Summary: sys-apps/systemd-utils[boot] can not compile in systems when gcc is not present
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-14 13:48 UTC by David Carlos Manuelda
Modified: 2025-04-04 22:06 UTC (History)
4 users (show)

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


Attachments
emerge --info (emergeinfo.txt,18.78 KB, text/plain)
2024-11-14 13:49 UTC, David Carlos Manuelda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2024-11-14 13:48:14 UTC
When trying to compile sys-apps/systemd-utils with boot IUSE enabled on a LLVM+musl with no gcc at all I got the following error:

[425/558 ( 76%)] Linking target src/boot/efi/addonx64.elf.stub
FAILED: src/boot/efi/addonx64.elf.stub 
clang  -o src/boot/efi/addonx64.elf.stub src/boot/efi/addonx64.elf.stub.p/addon.c.o -Wl,--as-needed -Wl,--no-undefined -pie -fstack-protector -O2 -pipe -march=native -Wl,-z,pack-relative-relocs -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-O2 -fuse-ld=lld -Wl,--thinlto-jobs=all -lgcc -nostdlib -static-pie -Wl,--entry=efi_main -Wl,--fatal-warnings -Wl,-static,-pie,--no-dynamic-linker,-z,text -z common-page-size=4096 -z max-page-size=4096 -z noexecstack -z relro -z separate-code -Wl,-z,nopack-relative-relocs -fcf-protection=none -fno-asynchronous-unwind-tables -fno-exceptions -fno-unwind-tables -fno-sanitize=all -Wno-unused-command-line-argument -m64
ld.lld: error: unable to find library -lgcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Reproducible: Always
Comment 1 David Carlos Manuelda 2024-11-14 13:49:00 UTC
Created attachment 908700 [details]
emerge --info
Comment 2 Mike Gilbert gentoo-dev 2024-11-14 16:06:46 UTC
Please report the issue upstream.
Comment 3 Alfred Wingate 2024-12-29 23:10:03 UTC
Shouldn't there be a gcc dependency with system-utils[boot] until upstream decides on the matter?

Whether it means they decide to keep the explicit libgcc linkage or not.
Comment 4 Mike Gilbert gentoo-dev 2024-12-30 02:24:58 UTC
gcc-less systems are rare enough that I don't care to mess with dependencies in the systemd ebuild.
Comment 5 Mike Gilbert gentoo-dev 2024-12-30 02:28:43 UTC
Possibly the USE flag could be masked in llvm/musl profiles, but I leave that to those teams to decide.
Comment 6 David Carlos Manuelda 2025-04-04 22:06:15 UTC
As a notice, my PR got merged upstream so this might be fixed in the next release.