Reputation: 45
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
There is no stddef.h on binutils directory, is this the issue ? Been struggling with this one.
Upvotes: 0
Views: 193
Reputation: 1
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.
Upvotes: 0