i'm trying to compile sys-fs/cryptsetup-2.4.3::gentoo with USE="-* argon2 nettle static" and in the end of compilation is tells: libtool: warning: complete static linking is impossible in this configuration and `file /sbin/cryptsetup` tells that it is "dynamically linked" Reproducible: Always
Thank you for the report. We need to have all information at hand before ticket assignment. This includes * the complete build.log as attachment and * paste the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Created attachment 763251 [details] build log
Created attachment 763253 [details] emerge --info =sys-fs/cryptsetup-2.4.3 does this really matters? i think you can reproduce this just with same USE flags
From your build log: > checking if x86_64-gentoo-linux-musl-clang static flag -static works... no That's quite strange. With a fully functional toolchain, it looks like this: > checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes Please attach config.log so we can see why this configure test is failing.
Globally setting -fPIC is a bad idea and will lead to various failures, even if it's not the issue here. We already set it by default. (In reply to dm9pZCAq from comment #3) > Created attachment 763253 [details] > emerge --info =sys-fs/cryptsetup-2.4.3 > > does this really matters? > > i think you can reproduce this just with same USE flags With respect, I think this is a bit naive. Your setup is not simple or vanilla and even then, problems which seem easy to reproduce often can't. Happening for you doesn't mean it happens for us. Most bugs I fix are ones I fix based on information from users.
> With respect, I think this is a bit naive. as it turned out, yes... sorry and thank you so much problem was in -flto, i removed it and everything builds fine > Globally setting -fPIC is a bad idea and will lead to various failures, even if it's not the issue here. i never had problems with -fPIC, only some times with -fPIE