Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888847 - sys-libs/efivar fails to build with clang
Summary: sys-libs/efivar fails to build with clang
Status: RESOLVED DUPLICATE of bug 831472
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-29 09:46 UTC by Juan Simón
Modified: 2022-12-29 10:02 UTC (History)
0 users

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


Attachments
emerge --info '=sys-libs/efivar-38::gentoo' (emerge-info.txt,6.15 KB, text/plain)
2022-12-29 09:46 UTC, Juan Simón
Details
Portage log output (sys-libs:efivar-38:20221229-091700.log,3.08 KB, text/x-log)
2022-12-29 09:50 UTC, Juan Simón
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Simón 2022-12-29 09:46:00 UTC
Created attachment 845569 [details]
emerge --info '=sys-libs/efivar-38::gentoo'

Relevant info in several attachments.

Output of emerge:
....
>>> Compiling source in /var/tmp/portage/sys-libs/efivar-38/work/efivar-38 ...
make -j3 
make[1]: Entering directory '/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src'
clang -O2 -pipe -march=native -flto=thin -std=gnu11 -funsigned-char -fvisibility=hidden   -std=gnu11 -funsigned-char -fvisibility=hidden    -fPIC  -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/ -DEFIVAR_BUILD_ENVIRONMENT -c -o makeguids.o makeguids.c
clang -O2 -pipe -march=native -flto=thin -std=gnu11 -funsigned-char -fvisibility=hidden   -std=gnu11 -funsigned-char -fvisibility=hidden    -fPIC  -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/ -DEFIVAR_BUILD_ENVIRONMENT -c -o util.o util.c
clang -O2 -pipe -march=native -flto=thin -std=gnu11 -funsigned-char -fvisibility=hidden   -std=gnu11 -funsigned-char -fvisibility=hidden    -L.   -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,-z,now -Wl,-z,muldefs -Wl,--fatal-warnings,-z,relro -rtlib=compiler-rt    -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/ -DEFIVAR_BUILD_ENVIRONMENT -o makeguids makeguids.o util.o -ldl 
ld.lld: error: unknown argument '--add-needed'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/rules.mk:32: makeguids] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src'
make: *** [Makefile:14: prep] Error 2
Comment 1 Juan Simón 2022-12-29 09:50:16 UTC
Created attachment 845573 [details]
Portage log output
Comment 2 Stephan Hartmann (RETIRED) gentoo-dev 2022-12-29 10:02:52 UTC

*** This bug has been marked as a duplicate of bug 831472 ***