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.
So something is wrong with your configure script near line 4246, or rather just before where the gcc version check is performed. Search your configure for the capital V and change it. I suspect that you ought to be fairly wary of that because of this. Can you instead install it by a package? Where exactly did you get this source?
for ac_option in --version -v -V -qversion; do
{ { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
what's wrong with it?
In config.log I also get:
Code:
conftest.c:10:27: fatal error: cloog/version.h: No such file or directory
To knudfl:
I tried your suggestion and some of the packages were upgraded, etc. but I still have the same issue.
And : "To see whether your host system has all the appropriate versions,
and the ability to compile programs, run the following "
→ "version-check.sh" → → ? What is your result ?
I checked again and fixed some issues. version-check seems OK. Now I get this error:
Code:
...
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI (including static vs shared).
make[1]: *** [configure-mpc] Error 1
[Solved]
I am working on LFS 7.6. Following the instructions more carefully it seems to work now. My make install finished without errors.
I was not sure about what "complete gcc" means, but you helped me with the command
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #9 .
Short :
A complete gcc means (for LFS) a gcc that can compile any C, C++ code.
( Other contexts could also include gcc-fortran.)
→ → →
{ gcc, g++ } and the headers required for compiling, provided by:
{ libc6-dev linux-libc-dev }.
Without those "headers.h packages", gcc »cannot create executables«.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.