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, so I got past my Inetutils problem, but now im running into a issue with installing Perl, the next section lol.
So Ill go through and do the echo command and both of the export commands in the untapped Perl-5.20.0 file. I run through the sh Configure command without any visible errors.
When I go to the make command, I get this at the end of the command:
Making x2p stuff
make[1]: Entering directory '/sources/perl-5.20.0/x2p'
You haven't done a "make depend" yet!
Makefile:132: recipe for target 'hash.o' failed
make[1]: *** [hash.o] Error 1
make[1]: Leaving directory '/sources/perl-5.20.0/x2p'
Makefile:286: recipe for target 'translators' failed
make: *** [translators] Error 2
Now, after last post I had, I tried moving on and doing the rest of it.
make -k test comes back clean
make install:
make[2]: Leaving directory '/sources/perl-5.20.0/x2p'
../makedepend: line 202: You don't seem to have a proper C preprocessor. Using grep instead.: command not found
../makedepend: line 203: ^#include : command not found
../makedepend: line 204: Updating ...: command not found
../makedepend: line 205: -n: command not found
../makedepend: line 211: -n: command not found
../makedepend: line 213: s|^[^;]*/||: No such file or directory
../makedepend: line 212: -n: command not found
../makedepend: line 214: -f: command not found
../makedepend: line 215: -n: command not found
../makedepend: line 216: -f: command not found
../makedepend: line 218: -f: command not found
../makedepend: line 219: .old: command not found
../makedepend: line 220: -f: command not found
../makedepend: line 221: .new: command not found
../makedepend: line 222: .new: command not found
../makedepend: line 223: $mf: ambiguous redirect
../makedepend: line 224: -rf: command not found
make[1]: Leaving directory '/sources/perl-5.20.0/x2p'
Making x2p stuff
make[1]: Entering directory '/sources/perl-5.20.0/x2p'
You haven't done a "make depend" yet!
Makefile:132: recipe for target 'hash.o' failed
make[1]: *** [hash.o] Error 1
make[1]: Leaving directory '/sources/perl-5.20.0/x2p'
Makefile:286: recipe for target 'translators' failed
make: *** [translators] Error 2
root:/sources/perl-5.20.0#
I even tried moving on to the XML:Parser section and perl cannot find Makefile.PL which im assuming is because of errors in the PERL installation.
Yes, try backtracking through the packages you already have installed and see if you may have accidentally missed one. Sometimes you can forget a section and mess up accidentally. The C preprocessor could be anything between GCC and Perl.
Try this:
Go through the chapters and look for the "Short Descriptions" section and run this command on at least one of the files mentioned:
Code:
whereis xxxxx
It should spit out a /path/to/... per each mentioned. If it doesn't then you may need to recheck that package.
Ok, I went through and the only place I found anything missing when running whereis xxxx was all the way back at the GCC-4.9.1 installation 6.17. I did end up running most of the other short descriptions from GCC to Perl and they all checked out. The ones missing from GCC were:
libtsan
libiberty
libgcov
libgcc
If I have to do a re install from this point (fingers crossed no...84 sbu lol pass), would it be a full re do, or would I just have to do this section again? And would I be able to just overwrite whats already existing?
And just reading the descriptions on those missing, I couldn't quite figure out if they even related to the issue I'm having with Perl, and was wondering if you could elaborate.
Since LFS is the core and is fairly small, you could rebuild it fairly quickly. I can tell you, you can save a TON of time by skipping the checks and tests. The sanity checks for GCC and binutils are really all you need to use. You could probably rebuild everything in about 8 hours if you utilize your multi-core CPU with make -jX replacing X with the number of CPU cores in your system +1 (if you use a dual-core and use make -j3 it enables the CPU precache).
You can try to rebuild GCC and reinstall and see if it helps first, but because other components were built against the bootstrap GCC, they may not have the right optimizations or builds against the finalized GCC built in Chapter 6.
Ok, Ill try to do the GCC rebuild on its own first to see what happens, if worse comes to worse, I made a backup after I finished the preparation of the LFS system (thank god).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.