[SOLVED] sanity check after gcc install at 6.17 failed
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ok, after about three hours of testing and installing gcc, i ran the sanity checks at the end of 6.17 and the first one didn't print an output. the others passed, but nothing for the first one. i had two failures on the gcc test, but they matched exactly the link given, so i installed as it said. when i looked back at the one after 6.10, i noticed there was a small difference in the path. this time there have been no errors at all throughout the whole process and it has only taken about 8 hours to get here, and that includes the installation of slackware and configuring it. eventually, i am going to finish one of these. here is the output of the errors i mentioned.
sanity check after 6.10.
did you notice that both paths have the extra "../" after the "readelf -l a.out | grep ': /lib' " command? after i posted this, i figured i would just go ahead and install the rest, but then bzip failed.
Code:
root:/sources# tar -xf bzip2-1.0.6.tar.gz
root:/sources# cd bzip2-1.0.6
root:/sources/bzip2-1.0.6# patch -Np1 -i ../bzip2-1.0.6-install_docs-1.patch
patching file Makefile
root:/sources/bzip2-1.0.6# sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
root:/sources/bzip2-1.0.6# sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
root:/sources/bzip2-1.0.6# make -f Makefile-libbz2_so
gcc -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
/usr/bin/ld: blocksort.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
blocksort.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile-libbz2_so:38: recipe for target 'all' failed
make: *** [all] Error 1
these may not even be related. but this does look a lot like the error i got on the other build i failed at last weekend. it is a different computer, so it has to be something else.
the last errors pointed to the same thing in the perl build, but looked like it pointed to bzip.
Last edited by sfzombie13; 09-03-2016 at 03:28 PM.
Reason: clarification
"On 64-bit systems, the path above will be /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib64/. This reduces to /usr/lib64 and /usr/lib64 is a symlink that points to /usr/lib. "
after removing the directory and the tarball i downloaded from the wget list, i tried again, and it worked this time. installed with no errors. so i am moving on and will mark this one as solved as soon as i get past the perl.
after reading this where it went wrong in 6.10, how would i recover from that? is it just as easy as removing the directories and starting over? that is not a problem, i am used to redoing things.
Last edited by sfzombie13; 09-03-2016 at 03:49 PM.
Reason: new info
nope, didn't keep a copy of them. looks like another start over. i installed everything until sed with no issues, but sed is a bzip file, and of course bzip isn't working, so i can't unzip it. so, without a copy of the tools, i guess i just start again. for next time, when i keep the tools folder at the end of chapter 5, if i need to use it again, do i just dd the folder into the $LFS directory after deleting the old tools folder?
the system is finished, sort of. it got done with everything, but will not boot. i added the information to lilo instead of installing grub, then ran lilo to add it. when i selected it, it got just past adding the clocksource to tsc, then said that line 678 of the /run/lib/init-functions couldn't write to the /run/bootlog because it was a read only file system. then line 689 couldn't find /sys in fstab. sounds like it is not mounting the virtual file system so that it can write to the logs. should i continue on with this thread, or start a new one? i am going to be looking all day to see if i can fix it, hopefully it is an easy fix.
SUCCESS!!! i found the problem and fixed it, well, sort of. i renamed the S10udev to .old and copied the rc.udev file from my host system and renamed it S10udev. it gave me a couple of failures, but let me login. i created a test file in vim and saved it. now, i just have to figure out where the problem was and fix it, or leave it as it is and continue on to the blfs. either way, thanx to all for the help, and if anyone else has this issue, hope this helps out. this os is going to be distributed soon as an addition to the code project, free computer training at codewv dot org.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.