Discussion:
[lfs-support] Difficulties with instruction on 5.8 Libstdc++-7.3.0
miguel caldas
2018-03-03 15:11:34 UTC
Permalink
HI,
I'm having difficulties with what to do in point 5.8.
As asked, I changed directory to gcc-7.3.0 directory, but when I tried to create a "build" directory it wouldn't let me as there was another one with that name used for gcc 7.3.0. Although reticent to deviate from the instructions in the book, I called this new directory "libbuild" and "CD" into it, with the following url: /mnt/LFS/sources/gcc-7.3.0/libbuild
I tried to configure LIbstdc++ but got the following error 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 imagine that this might have to do with where I putted the build directory, but I don't understand how I can do it differently.
Any help would be greatly appreciated.
Hazel Russman
2018-03-03 17:12:03 UTC
Permalink
On Sat, 03 Mar 2018 10:11:34 -0500
Post by miguel caldas
HI,
I'm having difficulties with what to do in point 5.8.
As asked, I changed directory to gcc-7.3.0 directory, but when I tried to create a "build" directory it wouldn't let me as there was another one with that name used for gcc 7.3.0. Although reticent to deviate from the instructions in the book, I called this new directory "libbuild" and "CD" into it, with the following url: /mnt/LFS/sources/gcc-7.3.0/libbuild
"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 imagine that this might have to do with where I putted the build directory, but I don't understand how I can do it differently.
Any help would be greatly appreciated.
You left the toplevel gcc directory lying about after the earlier build. Delete it completely, then unpack the original tarball and start again from scratch.

That applies to all packages btw. In chapter 6, you will build again many packages that you already built in chapter 5. Don't build any of them in stale directories. Always delete completely, then untar.
--
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_s
Hazel Russman
2018-03-03 18:46:39 UTC
Permalink
On Sat, 03 Mar 2018 13:25:40 -0500
I did as suggested but I still get the following warning messages while on configuration.
"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 f I try to go forward ignoring the warnings, I get the following error message: "make: *** No targets specified and no makefile found. Stop."
-
Put it on the list, please. Don't send private emails. If you didn't get this problem from reusing stale directories, then I don't know what is causing it, but someone else might.
--
Hazel Russman
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http
Pierre Labastie
2018-03-03 20:12:17 UTC
Permalink
Post by Hazel Russman
On Sat, 03 Mar 2018 13:25:40 -0500
I did as suggested but I still get the following warning messages while on configuration.
"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 f I try to go forward ignoring the warnings, I get the following error message: "make: *** No targets specified and no makefile found. Stop."
-
Put it on the list, please. Don't send private emails. If you didn't get this problem from reusing stale directories, then I don't know what is causing it, but someone else might.
Please post the result of running the "version-check.sh" script from 2.2 "Host
System Requirements". Looks like some "devel" library is missing.

Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/w
Michael Shell
2018-03-04 10:15:37 UTC
Permalink
On Sat, 03 Mar 2018 10:11:34 -0500
Post by miguel caldas
"configure: WARNING: stdbool.h: present but cannot be compiled
Back in 2015, the LFS list had a post about the same type of problem:

http://lists.linuxfromscratch.org/pipermail/lfs-support/2015-October/049009.html

If your problem is the same as that one, something went wrong with the
glibc installation step. As Bruce (and Hazel) said, "remember to
ensure the glibc-build and glibc-2.xx directories are removed before
re-extracting the tarball."


Cheers,

Mike Shell
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in
Loading...