Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831776 - sys-fs/cryptsetup-2.4.3: libtool: warning: complete static linking is impossible in this configuration
Summary: sys-fs/cryptsetup-2.4.3: libtool: warning: complete static linking is impossi...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-22 08:45 UTC by dm9pZCAq
Modified: 2022-01-22 16:31 UTC (History)
1 user (show)

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


Attachments
build log (build.log,183.03 KB, text/plain)
2022-01-22 15:06 UTC, dm9pZCAq
Details
emerge --info =sys-fs/cryptsetup-2.4.3 (emerge.info,22.06 KB, text/plain)
2022-01-22 15:08 UTC, dm9pZCAq
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dm9pZCAq 2022-01-22 08:45:22 UTC
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
Comment 1 Jonas Stein gentoo-dev 2022-01-22 10:00:38 UTC
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.
Comment 2 dm9pZCAq 2022-01-22 15:06:51 UTC
Created attachment 763251 [details]
build log
Comment 3 dm9pZCAq 2022-01-22 15:08:37 UTC
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
Comment 4 Mike Gilbert gentoo-dev 2022-01-22 15:24:07 UTC
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.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-22 15:31:46 UTC
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.
Comment 6 dm9pZCAq 2022-01-22 16:31:11 UTC
> 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