If it's what I think it is, it's more than an "OOOPS" for me, but I'm trying to be socially acceptable. This is a little long and involved.

Configure failed on binutils-2.24 with what turned out to be


gcc: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory

Now comes the really bad part.  'ls -al /usr/lib | grep libgcc' gives

lrwxrwxrwx 1 root root 22 Oct 20 2013 libgcc_s.so -> /tools/lib/libgcc_s.so lrwxrwxrwx 1 root root 24 Oct 20 2013 libgcc_s.so.1 -> /tools/lib/libgcc_s.so.1

It looks like I got bit by my beloved Package Users system. The install error log showed

*** The file or link: "/usr/lib/../lib64/libgcc_s.so.1" is owned by root and not gcc-4.8.1 *** The file or link: "/usr/lib/../lib64/libgcc_s.so" is owned by "root" and not "gcc-4.8.1" *** The file: "/usr/lib/libgcc_s.so" is owned by "root" and not "gcc-4.8.1"

gcc-4.8.1 is the "user" that built gcc. And it looks like, because the link could not be removed, the library never got installed and I got bitten really hard by my Package User System. I darkly remember seeing that message at the time and didn't do any further checking. I've never had anything like this happen before.

I had not removed the /tools directory after I completed Ch 6 in LFS-7.4 and probably wouldn't have caught this if I hadn't changed /tools to /tools-74 as I prepared to build LFS-7.5. What's both interesting and scary is that I built all of BLFS like this and not once did I have any negative indication like a test failure or a failed build.

Additionally, while I was composing this post, I lost the ability to access Firefox and ultimately Thunderbird. I rebooted. In doing so I noticed that xfce didn't ask me for my password. When the system came back up none of the items in the application that requred authentication worked and I was not connected through Network Manager. I couldn't find--didn't know which one--a log to describe what had happened. Since the only thing I had done to the system was prepare to build LFS-7.5, I removed the link to $LFS/tools and renamed /tools-74 to /tools.

Now to recover. At this point, I'm looking for suggestions or modifications to anything I might say.

First Recovery Method: Instead of using /tools in Ch. 5 I could use /tools-75--the name wouldn't matter. Then the only thing in that chapter I'd have to adjust from the book is --prefix=/tools-75. It would also mean that I'd have to adjust $PATH for user lfs and $PATH in the chroot environment and for my package users.

Second Recovery Method: If it's feasible, rebuild and reinstall gcc-4.8.1. It appears that the only thing that happened is that the links from Ch 6.6 didn't get eliminated and the actually libraries not installed.

I was surprised that I lost the capabilities I did when I linked /tools to $LFS/tools. I've checked a couple of the links from Ch 6 and they were deleted. It looks like I lost things like dbus and Network Manager in xfce. Would they depend on libgcc_s.so{,.1}?

I am just absolutely amazed that all the checks and double checks and testing didn't lead me to this at the time. Yes, I scrupulously follow the book.

Right now, I'm thinking that the easiest way to go is First Recovery Method. I don't know what else I'd lose if I removed the libgcc* link to /tools/lib. I suppose that if it is feasible to rebuild gcc-4.8.1, I could remove it and then see. And another recommendation for the first method is "let sleeping dogs lie."

Thanks to all who "hung in" reading this whole thing. I welcome any questions, comments and recommendations. Well, except, "I told you so about Package Users." :) Actually, that was my fault.

Thanks,
Dan



--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to