I've seen this error, but I do not remember where at the moment. I am sure I have compiled QT-5.8.0 without problem on an LFS-8.0-rc1 based system.
Here is an explanation of what you are seeing (not why you are seeing that): if you type "find /usr -name stdlib.h", you'll see that there are several such files. For example, on the system I am running right now: /usr/include/bits/stdlib.h /usr/include/stdlib.h /usr/include/c++/6.3.0/tr1/stdlib.h /usr/include/c++/6.3.0/stdlib.h the gcc preprocessor has therefore to choose which one to include when it encounters "#include <stdlib.h>". That is done in the following way: the preprocessor has a well defined search order for system include directories. It builds a search list from that order, and takes the first found file in the search list. Once that file has been included, the user (or the preprocessor) may want to include the next file in the list. That's what the directive "#include_next" is for. However the -isystem switch may change the search order, respective to what the -I (capital i) switch does. That's why the #include_next directive may succeed with -I and not with -isystem. Now why was the gcc-base.conf file wrong is another story... Pierre That's interesting. I'm using an LFS-8.0 system but I do also install gcc-5.4.0 The stdlib.h files on my system are: /usr/include/stdlib.h /usr/include/lwres/stdlib.h /usr/include/c++/6.3.0/stdlib.h /usr/include/c++/6.3.0/tr1/stdlib.h /usr/include/bits/stdlib.h /usr/include/isc/stdlib.h /usr/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/include/c++/tr1/stdlib.h /usr/src/core/kernel/linux-4.8.15/arch/powerpc/boot/stdlib.h So I wonder if the presence of v5.4.0 is changing the search order. jb. -- http://lists.linuxfromscratch.org/listinfo/blfs-dev blfs-dev -- BLFS Development List - Linux From Scratch<http://lists.linuxfromscratch.org/listinfo/blfs-dev> lists.linuxfromscratch.org The blfs-dev list is for discussion of BLFS Book development. To see the collection of prior postings to the list, visit the blfs-dev Archives. FAQ: http://www.linuxfromscratch.org/blfs/faq.html BLFS FAQ - Welcome to Linux From Scratch!<http://www.linuxfromscratch.org/blfs/faq.html> www.linuxfromscratch.org Needless to say, if you originally put zlib in /usr/local or did something else different, you'll have to adjust those instructions accordingly. Unsubscribe: See the above information page
-- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
