Make error for GCC in chapter 6: libmpc.so.3: cannot open shared object file: No such file or directory
While compiling gcc in chapter 6.21, I'm getting the following make error:
Code:
make[2]: Entering directory '/sources/gcc-8.2.0/build/gcc' |
I would retry.. what commands did you use? I would go back and check 6.10. Adjusting the Toolchain if those all check out go to 6.19 and reinstall..
|
Try
Code:
ls /usr/lib|grep mpc Code:
libmpc.so |
After running the command this is what I got.
Code:
(lfs chroot) root:/sources/gcc-8.2.0/build# ls /usr/lib|grep mpc Code:
case $(uname -m) in |
I did the first couple of commands 6.10 but there was no adjusted linker to move so I undid them. I'm afraid of amending the specs file and doing something I can't undo easily because my gcc is not working right now because I installed the broken compiler.
What's happening is I get past the cc command with no errors but the readelf produces no output. In fact I did all of the checks on the dummy.log file after installing gcc and they all pass. |
Well, you've answered it yourself then. You did something wrong at an earlier stage. I hope you saved your tool set as suggested before making the chapter 6 adjustments. If so, you can clear everything except $LFS/sources, reinstall $LFS/tools and start chapter 6 again. Otherwise, you'll need to start from the beginning.
Not unusual for a first try at LFS! |
Yes for sure something is wrong. You may have to start all over again unless you saved tool set before chapter 6 adjustments.
|
LFS you need to really be careful step by step. Another way is use JHALFS which is automated but takes the fun out of it. Also make sure always save your tool set very important before moving to chapter 6.
|
Alright, thank you so much. I went ahead and started over. This time I'll be much more careful.
|
At the end of chapter 5, right after the chroot -R root:root /tools do this:
cd $LFS tar -cJvpf sources/lfs-8.3-tools.tar.xz tools If you ever need to replace them: cd $LFS && rm -rf /tools tar -xvpf sources/lfs-8.3-tools.tar.xz |
All times are GMT -5. The time now is 06:00 AM. |