Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
zfs-9999 can't boot any longer because of libgcc_s.so.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Mon Aug 08, 2016 3:24 pm    Post subject: zfs-9999 can't boot any longer because of libgcc_s.so.1 Reply with quote

It seems in the last 2 weeks or so my openzfs systems here at work that have zfs on / will no longer boot because zfs-9999 somehow depends on libgcc_s.so.1 (although it does not appear to show up in ldd)

similar to this thread: https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/issues/1

I am using genkenel-next.

During boot I get "libgcc_s.so.1 must be installed for pthread_cancel to work" printed 2 times then I see Aborted and then the prompt about not finding the root block device.

On the first system this happened to I solved this by manually expanding the initramfs putting libgcc_s.so.1 to /lib folder and recreating the initramfs.

Is there an easy way to keep genkernel-next and have it do this for me?
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Tue Aug 09, 2016 3:42 am    Post subject: Reply with quote

While the list might still be long, you can ask revdep-rebuild to help finding packages using that lib, and with that list, finding ones you need to boot should be easy.
revdep-rebuild -L libgcc_s.so.1

From a dry run on mine, seeing llvm, i would put my bets on it.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Wed Aug 10, 2016 3:19 am    Post subject: Reply with quote

Thanks, I will try to take a look tomorrow. I did not have time today.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Wed Aug 17, 2016 1:02 am    Post subject: Reply with quote

The problem has been reported to zfsonlinux and closed as a packaging issue. Which I believe that means that genkernel / genkernel-next would need to be altered to add this dependency.

https://github.com/zfsonlinux/zfs/issues/4976
https://github.com/zfsonlinux/zfs/issues/4749
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
redog
n00b
n00b


Joined: 06 Nov 2002
Posts: 35

PostPosted: Wed Oct 19, 2016 5:40 pm    Post subject: I was able to get around this with genkernel Reply with quote

mkdir -p /usr/src/initramfs/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3
cp -a /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 /usr/src/initramfs/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/

In /etc/genkernel.conf Set
[code]INITRAMFS_OVERLAY="/usr/src/initramfs"[/code]

genkernel --zfs initramfs
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Wed Oct 19, 2016 5:51 pm    Post subject: Reply with quote

Thanks. I see this could be helpful in the future (provided I remember this thread!). I have since patched genkernel-next.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Thu Oct 20, 2016 1:43 am    Post subject: Reply with quote

drescherjm wrote:
I see this could be helpful in the future (provided I remember this thread!).
Set a bookmark so you can find this thread again easily?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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