[SOLVED] error with perl 6.41.1 error on make lfs 7.9
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.
i am building my second lfs and it has gone flawlessly this time. the goal is to make a custom distro starting from scratch. when i hit 6.41 installing perl, i got an error on the test, so i did what i had been doing, rm the directory and started over. this time i noticed an error after make that i had missed. the output is here:
Quote:
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib64/libbz2.a(bzlib.o): relocation R_X86_64_32S against `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib64/libbz2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:483: recipe for target '../../lib/auto/Compress/Raw/Bzip2/Bzip2.so' failed
make[1]: *** [../../lib/auto/Compress/Raw/Bzip2/Bzip2.so] Error 1
make[1]: Leaving directory '/sources/perl-5.22.1/cpan/Compress-Raw-Bzip2'
make[1]: Entering directory '/sources/perl-5.22.1/cpan/Compress-Raw-Bzip2'
rm -f ../../lib/auto/Compress/Raw/Bzip2/Bzip2.so
cc -shared -O2 -L/usr/local/lib -fstack-protector-strong Bzip2.o -o ../../lib/auto/Compress/Raw/Bzip2/Bzip2.so \
-L/sources/perl-5.22.1/cpan/Compress-Raw-Bzip2/bzip2-src -lbz2 \
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib64/libbz2.a(bzlib.o): relocation R_X86_64_32S against `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib64/libbz2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:483: recipe for target '../../lib/auto/Compress/Raw/Bzip2/Bzip2.so' failed
make[1]: *** [../../lib/auto/Compress/Raw/Bzip2/Bzip2.so] Error 1
make[1]: Leaving directory '/sources/perl-5.22.1/cpan/Compress-Raw-Bzip2'
Unsuccessful make(cpan/Compress-Raw-Bzip2): code=512 at make_ext.pl line 574.
makefile:586: recipe for target 'lib/auto/Compress/Raw/Bzip2/Bzip2.so' failed
make: *** [lib/auto/Compress/Raw/Bzip2/Bzip2.so] Error 25
it says to recompile with - fPIC, but when i added that it said, "make: *** No rule to make target 'PIC'. Stop."
i am going to look into that further now. during my research so far i found someone asked what the output of env was, but when i looked at it, it nothing jumped out at me, but then i didn't have any idea what to look for. here it is if it will help:
i'm not sure how to fix that. in windows, i would unistall and reinstall. i am not sure what the equivilant here is. i'll give it a go in the morning. thanx for pointing out the problem. now i have a direction to go with it.
i have been doing that and crossing my fingers. so far, it has worked great. i did skip the perl and continue installing. there were only two installs that depended on perl, but then i had problems with the kernel. it kept giving me an error that said, command not found for bc. when i tried bc --help, it gave me a list of switches. doing bc -v failed, so i tried --version and it worked. so i updated the kbuild script by adding a dash and spelling it out, but it still failed. i have compiled lots of kernels so will work that out this weekend. i am going to try this one again, if it fails, i'll just redo the whole thing from scratch on my i7 laptop this weekend. thanx for the help.
well, marking this one closed. blew the install away and started over on the i7 laptop. having other issues which will go in another thread. this time with a sanity check after gcc install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.