Hello forum members,
today I started getting into LFS but unfortunately, at the end of 'Installation of Cross GCC' (5.3.1) I ended up with an error that I do not know how to resolve.
I followed these instructions in 5.3.1:
Quote:
This build of GCC has installed a couple of internal system headers. Normally one of them, limits.h, would in turn include the corresponding system limits.h header, in this case, $LFS/usr/include/limits.h. However, at the time of this build of GCC $LFS/usr/include/limits.h does not exist, so the internal header that has just been installed is a partial, self-contained file and does not include the extended features of the system header. This is adequate for building glibc, but the full internal header will be needed later. Create a full version of the internal header using a command that is identical to what the GCC build system does in normal circumstances:
Code:
cd ..
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h
|
This happens when I try it:
Code:
lfs:/mnt/lfs/sources/gcc-12.2.0$ cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h
And I get this error:
Code:
bash: x86_64-lfs-linux-gnu-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: /install-tools/include/limits.h: No such file or directory
I already tried just running:
Code:
lfs:/mnt/lfs/sources/gcc-12.2.0$ $(dirname $($LFS_TGT-gcc -print-libgcc-file-name))
and I get the same error:
Code:
bash: x86_64-lfs-linux-gnu-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
I am using a Fedora 36 liveCD as my host system, in virtualbox and everything seems to be fine when I run the version-check.sh from the system requirements chapter
The same issue came up here, but has not really been resolved anywhere (other than going back to chapter 4):
I hope you can help me out, I'm still figuring things out here