LFS 7.7 - Error when building GCC first pass
I'm building my LFS system using Linux Mint 17.1, and when running "make" from GCC first pass (page 37 - LFS 7.7 systemd), I got an error.
Output of Code:
../gcc-4.9.2/configure --target=$LFS_TGT --prefix=/tools --with-sysroot=$LFS --with-newlib --without-headers --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libitm --disable-libquadmath --disable-libsanitizer --disable-libssp --disable-libvtv --disable-libcilkrts --disable-libstdc++-v3 --enable-languages=c,c++ Code:
checking build system type... x86_64-unknown-linux-gnu Code:
In file included from ./tm.h:35:0, Thanks. EDIT: Output of "version-check.sh": Code:
bash, version 4.3.11(1)-release |
Did you find this by doing a search?
http://www.linuxquestions.org/questi...27-4175441951/ Did you try it? |
Quote:
The problem might be inside one of these packages (bison/yacc/texinfo), I'm looking to see if I can find it. |
This post might be better in Linx from Scratch forum I have asked for it to be moved
|
Solution
Ok, I found what might be the cause.
In the first time I ran this command: Code:
for file in \ So, an interesting thing is that when I got the error from "make", I tried to fix it by removing "gcc-build" dir, creating it again and starting from there. But then, after HOURS trying to fix this, I simply removed gcc-4.9.2 and started again from unpacking gcc-4.9.2.tar.bz2. Then things just worked. So, my conclusion is: the cause of the problem was probably my first run of the above command in which I typed a space where shoudn't be one. But something I also noticed was the fact that I was using /bin/dash when I ran all of this because I changed /bin/sh but didn't close the terminal session, so I ran the commands with dash, resulting in a possible different behavior of the command (I have no idea if that makes sense). So, all this trouble was probably caused by: a space character, or the great idea of changing /bin/sh but continue to use the same gnome-terminal session. |
LFS is like that. Chalk it up to experience. Glad you found it.
|
Moved: This thread is more suitable in <Distributions - Linux From Scratch> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
All times are GMT -5. The time now is 07:50 AM. |