[SOLVED] LFS- problems in configuring in point 5.8 libstdc++
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
LFS- problems in configuring in point 5.8 libstdc++
'm following the steps in LFS stable version, and got to point 5.8, passing the sanity test for the tool chain. When trying to configure the lbstdc++, contained in the gcc-7.3.0 package, with the following commands:
configure: WARNING: stdbool.h: present but cannot be compiled
configure: WARNING: stdbool.h: check for missing prerequisite headers?
configure: WARNING: stdbool.h: see the Autoconf documentation
configure: WARNING: stdbool.h: section "Present But Cannot Be Compiled"
configure: WARNING: stdbool.h: proceeding with the compiler's result
checking for stdbool.h... no
checking stdalign.h usability... no
checking stdalign.h presence... yes
configure: WARNING: stdalign.h: present but cannot be compiled
configure: WARNING: stdalign.h: check for missing prerequisite headers?
configure: WARNING: stdalign.h: see the Autoconf documentation
configure: WARNING: stdalign.h: section "Present But Cannot Be Compiled"
configure: WARNING: stdalign.h: proceeding with the compiler's result
checking for stdalign.h... no
checking for the value of EOF... configure: error: computing EOF failed
I checked if $LFS is correct, and it is. When I opened the config.log, I saw this highlighted error message:
conftest.c:10:10: fatal error: stdio.h: No such file or directory
#include <stdio.h>
I imagine that these two are connected, but I don't know how to solve it. Any help would be greatly appreciated.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Autoconf can't find the include header: stdio.h. You not only need stdio.h, but it must be the correct version. stdio and stdbool are both part of libc. You might have version problems.
Last edited by AwesomeMachine; 03-03-2018 at 07:52 PM.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
OK, libc is part of the operating system. It's a number of objects called headers that are used in c programming. In the Linux the package is called glibc, for GNU libc. Check here for headers
Code:
/tools/$LFS_TGT/include/c++/7.3.0
They end with '.h'.
Your configure error messages have many causes, but mostly missing headers and incorrect versions of header packages. An overall survey of the problem is not possible in a forum thread. There is no specific solution to this problem.
Last edited by AwesomeMachine; 03-03-2018 at 10:02 PM.
Thank ypu both for your answers.
I just saw that the bin/bash link wasn't correctly set.
I think I will just start again. I imagine that the other instalations must be also defective.
I have the same error when compiling gcc and well I am curious because in the previous message says that is a problem with the location of /bin/bash and if you could tell me where the error is I would be grateful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.