Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help building static cryptsetup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
tjwoosta
n00b
n00b


Joined: 31 Jul 2009
Posts: 15

PostPosted: Fri Dec 27, 2013 4:29 pm    Post subject: Need help building static cryptsetup Reply with quote

Im trying to setup and initramfs with luks support using genkernel.

genkernel told me to emerge cryptsetup[static]

cryptsetup failed to build...

http://bpaste.net/show/162169/

http://bpaste.net/raw/162170/

http://bpaste.net/show/162171/
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2970
Location: Germany

PostPosted: Fri Dec 27, 2013 6:15 pm    Post subject: Reply with quote

maybe a static-libs missing somewhere.

I have this in my package.use

Code:

# Initramfs:
sys-apps/busybox -dynamic static static-libs
sys-fs/lvm2 -dynamic static static-libs
sys-fs/mdadm -dynamic static static-libs
sys-fs/cryptsetup -dynamic static static-libs
# Initramfs dependencies:
dev-libs/libgcrypt static-libs
sys-apps/util-linux static-libs
sys-libs/e2fsprogs-libs static-libs
dev-libs/libgpg-error static-libs
virtual/udev static-libs
dev-libs/popt static-libs
sys-fs/udev static-libs


The only thing that currently fails to build statically is LVM, there's a workaround for it on the bug tracker.
Back to top
View user's profile Send private message
tjwoosta
n00b
n00b


Joined: 31 Jul 2009
Posts: 15

PostPosted: Fri Dec 27, 2013 6:30 pm    Post subject: Reply with quote

I have all the same entries in package.use except without the -dynamic flags. I added -dynamic just to be sure but it makes no difference, still fails with same output.

Do you use selinux? The only problem I see in the build log are these two lines...
Code:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lselinux
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpcre


Not sure what I should do to fix it.


EDIT:
Also static lvm2 built without any errors or warnings for me without doing anything special.
Back to top
View user's profile Send private message
tjwoosta
n00b
n00b


Joined: 31 Jul 2009
Posts: 15

PostPosted: Fri Dec 27, 2013 7:16 pm    Post subject: Reply with quote

ok, im not sure if what I did was the correct path to take, but I set the static-libs use flags for libselinux and libpcre and emerged them. After doing that cryptsetup built without a hitch.

Does this indicate a missing dependencies bug with the cryptsetup ebuild that I should report? I assume it should have told me i needed those packages with static-libs use flags like it did for all the other deps.
Back to top
View user's profile Send private message
jesuisfol
n00b
n00b


Joined: 04 May 2014
Posts: 2

PostPosted: Sun May 04, 2014 7:51 pm    Post subject: Reply with quote

Sorry for the ressurection of this topic... But I spent a few hours this week end on this exact same issue.

So... Is it a bug and shouldn't it be reported ?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun May 04, 2014 9:00 pm    Post subject: Reply with quote

jesuisfol ...

a suggestion: better-initramfs ... with this there is no need to build with the static useflag (as all required dependencies are built using Aboriginal Linux). As it contains no modules (which can be seens as a deficiency or a benefit) there is no need to rebuild the initramfs on kernel updates. There are also pre-built initramfs for amd64 and x86 (if you don't want to build it yourself).

Also, better-initramfs supports lvm2, cryptsetup, dropbear (ssh), (software) RAID, rescue shell (busybox), suspend/hibernate (using either TuxOnIce or uswsusp), and UUID/LABEL.

best ... khay
Back to top
View user's profile Send private message
jesuisfol
n00b
n00b


Joined: 04 May 2014
Posts: 2

PostPosted: Fri May 09, 2014 11:15 am    Post subject: Reply with quote

Thanks for pointing this better-initramfs ! I'll try this :D

(And sorry for the latency of this reply, I've been quite busy the past few days.)
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri May 09, 2014 11:08 pm    Post subject: Re: Need help building static cryptsetup Reply with quote

tjwoosta wrote:
genkernel told me to emerge cryptsetup[static]


There is no such requirement anymore in current genkernel, instead, it copies the required shared libraries to the initramfs.

Outdated post, outdated problem, upgrade genkernel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum