[SOLVED] LFS11.3 Error in ch 6 when building coreutils, unable to run make after ./configure
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 downloaded coreutils 9.3 from the sources list provided in the book. The error I get at the end of the configure script is:
Code:
checking whether MB_CUR_MAX is correct... configure: error: in '/mnt/lfs/sources/coreutils-9.3':
configure: error: cannot run test program while cross compiling
See 'config.log' for more details
I have tried deleting the extraction folder for coreutils and starting over again, but I get the same error.
Could someone help point me in the right direction on where I've gone wrong? I note that the book refers to coreutils 9.1, but the sources list uses 9.3. Perhaps I should try to find an older version? Is there a way to bypass this test (assuming it won't break something later)?
I think I've solved my own problem. The new version of the book (11.3-101) has an extra flag for the ./configure options for coreutils, which eliminates this issue with MB_CUR_MAX:
I think I've solved my own problem. The new version of the book (11.3-101) has an extra flag for the ./configure options for coreutils, which eliminates this issue with MB_CUR_MAX: (...)
Good Job! Isn't that the whole reason for LFS? learning hands on how to fix it yourself? Like building anything from scratch. I don't know. I'm not doing that one, but nonetheless, congrats. soon you'll be able to help spaceX get to Mars.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.