Re: gperf /usr/include/c++/15.2.0/cstdlib:46:10: fatal error: bits/c++config.h: No such file or directory - BLFS 13.0
"Zeckma" ([email protected] via blfs-support Mailing List) <[email protected]> Fri, 3 Apr 2026 13:06:52 -0600
| Newsgroups | gmane.linux.lfs.beyond.support |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1775242998-1253-21060 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/3/26 11:37, rhubarbpieguy ([email protected] via blfs-support Mailing List) wrote: > Gperf fails for me. > > > In file included from /usr/include/c++/15.2.0/stdlib.h:36, > from ../lib/stdlib.h:51, > from ./options.cc:27: > /usr/include/c++/15.2.0/cstdlib:46:10: fatal error: bits/c++config.h: No such file or directory > 46 | #include <bits/c++config.h> > | ^~~~~~~~~~~~~~~~~~ > compilation terminated. > make[1]: *** [Makefile:135: main.o] Error 1 > make[1]: *** [Makefile:117: options.o] Error 1 > make[1]: Leaving directory '/sources/gperf-3.3/src' > make: *** [Makefile:45: install] Error 2 > > > I see no errors prior to gperf. The glibc and gcc tests look good. > I have /usr/include/c++/15.2.0/x86_64-lfs-linux-gnu/bits/c++config.h. To me, this looks like GCC in chapter 8 wasn't actually installed. Specifically, /usr/include/c++/15.2.0/bits comes from the libstdc++ component of GCC. There is a build of it for $LFS_TGT for the cross-compiling stage, but the main standard C++ library and its headers should get installed by GCC in chapter 8. I'd navigate to the GCC build directory, install GCC, and retry the gperf build. If it succeeds, I'd rebuild and reinstall everything between chapter 8 GCC and gperf, then rebuild and reinstall gperf, then continue to be safe. - Zeckma ------------=_1775242998-1253-21060 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- http://lists.linuxfromscratch.org/sympa/info/blfs-support Unsubscribe: See the above information page ------------=_1775242998-1253-21060--