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 have gotten error 77 and error 2 while compiling gcc following the linux from scratch directions.
checking for C compiler default output file name...
configure: error: in `/mnt/lfs/sources/gcc-8.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:8925: recipe for target 'configure-stage2-intl' failed
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory '/mnt/lfs/sources/gcc-8.2.0/build'
Makefile:21584: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-8.2.0/build'
Makefile:896: recipe for target 'all' failed
make: *** [all] Error 2
With any LFS query give the book version, page reference on the same line as the title, usually. The host system is also helpful
Quote:
configure: error: C compiler cannot create executables
That's a show stopper. it does a compile of basically nothing, just to check the compiler is there. It isn't. Loop back to the early chapter pages & check your work. You got something wrong. Without knowing what chapter you're in, I can't be more precise.
In chapter 5, it's using your host system's compiler. But that process is breaking down somewhere. IIRC, is does a basic check that your system can create an executable, and yours is failing that. Have you gcc? In the path? Set up for compiling and see if cc points to it.
I fixed this issue. I ended up chowning everything and trying to delete and reinstall gcc but to no avail. As for how I fixed it I'm not really sure. I got frustrated and reinstalled the whole OS again but now it won't go on the second pass which I'll probably post after I finish writing this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.