Hi Oleh, Thanks, during my second try, I did attempt to recompile gcc and glibc, encountered the same problem of missing headers - stdlib.h and iostream.h.
I'm out of ideas, about to give up and go back to funtoo. Alex On Wed, 3 Oct 2018, 4:00 pm Oleh Malyi via blfs-support, < [email protected]> wrote: > Hello Alex, > your BLFS doesn't have the file stdlib.h from gcc-8.2.0. > You can try rebuild this compiler according its instruction on page > http://www.linuxfromscratch.org/blfs/view/8.3/general/gcc.html > > ср, 3 жовт. 2018 о 19:43 Alex via blfs-support < > [email protected]> пише: > >> Hi, >> >> I have been trying in vain to get a BLFS (stable v8.3) system up and >> running for the last 3 weeks, I have tried 5 times so far and it always >> ends up with an error message about missing header files. >> >> LFS (stable v8.3) compiles without any problems at all, but when I start >> off with BLFS, packages fail to compile with error messages that >> complain about C style header files. I tried hard coding the path to the >> C style header file and the compilation continues only to end up with >> another missing header file. This behaviour is quite random, a package >> that successfully compiled on my first try failed to compile on the >> second try and so on. >> >> This is a snippet from the most recent try, from package smartmontools: >> >> >> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- >> >> make[1]: Entering directory >> '/var/tmp/blfs/smartmontools/smartmontools-6.6' >> make all-am >> make[2]: Entering directory >> '/var/tmp/blfs/smartmontools/smartmontools-6.6' >> g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' >> -DSMARTMONTOOLS_SYSCONFDIR='"/etc"' >> -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc"' >> -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -pipe >> -march=native -Wall -W -MT smartctl.o -MD -MP -MF .deps/smartctl.Tpo >> -c -o smartctl.o smartctl.cpp >> g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' >> -DSMARTMONTOOLS_SYSCONFDIR='"/etc"' >> -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc"' >> -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -pipe >> -march=native -Wall -W -MT atacmdnames.o -MD -MP -MF .deps/atacmdname >> s.Tpo -c -o atacmdnames.o atacmdnames.cpp >> g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' >> -DSMARTMONTOOLS_SYSCONFDIR='"/etc"' >> -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc"' >> -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -pipe >> -march=native -Wall -W -MT atacmds.o -MD -MP -MF .deps/atacmds.Tpo -c >> -o atacmds.o atacmds.cpp >> g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' >> -DSMARTMONTOOLS_SYSCONFDIR='"/etc"' >> -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc"' >> -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -pipe >> -march=native -Wall -W -MT ataidentify.o -MD -MP -MF .deps/ataidentif >> y.Tpo -c -o ataidentify.o ataidentify.cpp >> g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' >> -DSMARTMONTOOLS_SYSCONFDIR='"/etc"' >> -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc"' >> -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -pipe >> -march=native -Wall -W -MT ataprint.o -MD -MP -MF .deps/ataprint.Tpo >> -c -o ataprint.o ataprint.cpp >> mv -f .deps/atacmdnames.Tpo .deps/atacmdnames.Po >> g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' >> -DSMARTMONTOOLS_SYSCONFDIR='"/etc"' >> -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc"' >> -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -pipe >> -march=native -Wall -W -MT dev_ata_cmd_set.o -MD -MP -MF >> .deps/dev_ata_cmd_set.Tpo -c -o dev_ata_cmd_set.o dev_ata_cmd_set.cpp >> In file included from /usr/include/c++/8.2.0/ext/string_conversions.h:41, >> from /usr/include/c++/8.2.0/bits/basic_string.h:6391, >> from /usr/include/c++/8.2.0/string:52, >> from utility.h:36, >> from dev_interface.h:23, >> from atacmds.h:30, >> from dev_ata_cmd_set.cpp:20: >> /usr/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such >> file or directory >> #include_next <stdlib.h> >> ^~~~~~~~~~ >> In file included from /usr/include/c++/8.2.0/ext/string_conversions.h:41, >> from /usr/include/c++/8.2.0/bits/basic_string.h:6391, >> from /usr/include/c++/8.2.0/string:52, >> from utility.h:36, >> from ataidentify.cpp:25: >> /usr/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such >> file or directory >> #include_next <stdlib.h> >> ^~~~~~~~~~ >> In file included from /usr/include/c++/8.2.0/ext/string_conversions.h:41, >> from /usr/include/c++/8.2.0/bits/basic_string.h:6391, >> from /usr/include/c++/8.2.0/string:52, >> from utility.h:36, >> from dev_interface.h:23, >> from atacmds.h:30, >> from atacmds.cpp:34: >> /usr/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such >> file or directory >> #include_next <stdlib.h> >> ^~~~~~~~~~ >> In file included from /usr/include/c++/8.2.0/ext/string_conversions.h:41, >> from /usr/include/c++/8.2.0/bits/basic_string.h:6391, >> from /usr/include/c++/8.2.0/string:52, >> from utility.h:36, >> from dev_interface.h:23, >> from atacmds.h:30, >> from ataprint.cpp:35: >> /usr/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such >> file or directory >> #include_next <stdlib.h> >> ^~~~~~~~~~ >> compilation terminated. >> compilation terminated. >> compilation terminated. >> compilation terminated. >> In file included from /usr/include/c++/8.2.0/ext/string_conversions.h:41, >> from /usr/include/c++/8.2.0/bits/basic_string.h:6391, >> from /usr/include/c++/8.2.0/string:52, >> from /usr/include/c++/8.2.0/stdexcept:39, >> from smartctl.cpp:31: >> /usr/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such >> file or directory >> #include_next <stdlib.h> >> ^~~~~~~~~~ >> compilation terminated. >> make[2]: *** [Makefile:1231: ataidentify.o] Error 1 >> make[2]: *** Waiting for unfinished jobs.... >> make[2]: *** [Makefile:1231: ataprint.o] Error 1 >> make[2]: *** [Makefile:1231: smartctl.o] Error 1 >> make[2]: *** [Makefile:1231: dev_ata_cmd_set.o] Error 1 >> make[2]: *** [Makefile:1231: atacmds.o] Error 1 >> make[2]: Leaving directory '/var/tmp/blfs/smartmontools/smartmontools-6.6' >> make[1]: *** [Makefile:879: all] Error 2 >> make[1]: Leaving directory '/var/tmp/blfs/smartmontools/smartmontools-6.6' >> >> >> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- >> >> >> Has anyone encountered this or something similar ? The header file >> stdlib.h does exist but, the iostream.h doesn't exist as required by >> other packages that failed in previous runs, which is where I get lost >> as, I cannot hard code the path and get compilation to proceed. I do not >> think it is a good idea to hard code the path to the header files, there >> must be something wrong with the system configuration. It has been long >> time since I compiled LFS/BLFS or did some C/C++ programming, I need >> some directions as to what I should be looking at to troubleshoot this >> problem. >> >> Thanks, >> >> Al >> >> -- >> http://lists.linuxfromscratch.org/listinfo/blfs-support >> FAQ: http://www.linuxfromscratch.org/blfs/faq.html >> Unsubscribe: See the above information page > > >> > > -- > With best regards, > Oleh Malyi > Albufeira > PORTUGAL > -- > http://lists.linuxfromscratch.org/listinfo/blfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page >
-- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
