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
"rhubarbpieguy" ([email protected] via blfs-support Mailing List) <[email protected]> Sat, 4 Apr 2026 17:07:04 -0500
| Newsgroups | gmane.linux.lfs.beyond.support |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1775340437-17012-21423 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/3/26 2:06 PM, Zeckma ([email protected] via blfs-support Mailing List) wrote: > 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 All the programs listed in the gcc documentation were present but I found a solution with a different host system. I was using Manjaro as a host as I'm compiling on a new box. As I'd reviewed my steps and scripts several times I switched to a different host in desperation. Gperf compiled successfully and 13.0 completed. Fortunately, I always backup after chapter 7 so I restored and used the same scripts. That way I used an identical starting point and compiling method. My guess is the problem might well not be Manjaro, but something I did. However, switching hosts worked and it was an apples-and-apples test otherwise. I'm posting this as perhaps it'll make sense to someone or help another down the line. ------------=_1775340437-17012-21423 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 ------------=_1775340437-17012-21423--