LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-03-2018, 04:24 PM   #1
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Rep: Reputation: Disabled
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:

../libstdc++-v3/configure \
--host=$LFS_TGT \
--prefix=/tools \
--disable-multilib \
--disable-nls \
--disable-libstdcxx-threads \
--disable-libstdcxx-pch \
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/7.3.0

I get these warning messages:

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.
 
Old 03-03-2018, 07:51 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 03-03-2018, 07:56 PM   #3
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
Thanks for answering. Do you have any idea How I can determine the appropriate versions?
I am very much at a loss of what to do next.
 
Old 03-03-2018, 09:52 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 03-04-2018, 01:34 AM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
As not very far in to the process I would start again as you must have missed some of the pre-requsite requirements.
 
Old 03-04-2018, 02:22 AM   #6
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-26-2019, 10:01 AM   #7
Sodomon
LQ Newbie
 
Registered: Sep 2019
Posts: 1

Rep: Reputation: Disabled
I have the same mistake.

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't compile libstdc++-v3 in LFS 7.10 bsmith52 Linux From Scratch 9 12-01-2016 08:31 PM
LFS Libstdc++ make error [ Help! ] Erich Linux From Scratch 10 05-05-2015 03:32 PM
[SOLVED] LFS 7.7: Problem while trying to compile Libstdc++ GabLFS Linux From Scratch 9 04-19-2015 08:58 PM
[SOLVED] [LFS 7.4 r.c.1] Chapter 5.8. Libstdc++-4.8.1 DeeGee Linux From Scratch 8 08-28-2013 03:15 AM
problems configuring glibc-2.3.4-20040701 for LFS build dimaash Linux From Scratch 1 07-17-2005 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration