LFS binutils ../../gold/gold.h:29:10: fatal error: cstddef: No such file or directory

174 Views Asked by At

I'm working on LFS(11.0) for the first time

When installing the package binutils (https://www.linuxfromscratch.org/lfs/view/stable/chapter08/binutils.html)

(lfs chroot) root:/sources/binutils-2.37# make tooldir=/usr install -j1 # I encounter the fatal err and install fails : ../../gold/gold.h:29:10: fatal error: cstddef: No such file or directory

gcc --version gcc (GCC) 11.2.0 (lfs chroot) root:/sources/bzip2-1.0.8# g++ --version g++ (GCC) 11.2.0

  • tried removing nostdinc and nostdinc++ on Makefile.in and configure.ac

There is no stddef.h on binutils directory, is this the issue ? Been struggling with this one.

1

There are 1 best solutions below

0
Keliath On

I have the same problem but with binutils 2.38. I tried binutils 2.39, still the same problem. I have gcc and g++ in the chroot. I'm also building under build/.

Obviously this error goes away if you don't enable gold in .configure, but I would assume that's required for later packages.