LFS 7.4 step 5.7 error
Hi.
I've a problem with glibc on 5.7 lfs step. The test "echo 'main(){}' > dummy.c $LFS_TGT-gcc dummy.c" gives an error: "/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory. "/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory. collect2: error: ld returned 1 exit status. Binutils, gcc, glibc compiled without any errors(I use Debian Wheezy). I checked symlinks, but the seems to be correct. So, help me please =) |
Please post version check and some more of the error output just the error line doesn't give enough context
|
I've had that same error before.
It's actually from not correctly mounting the partition and setting the environment paths. Did you hand mount the LFS partition or let udev mount it for you? This usually happens if you use udev to mount the LFS partition and try build the first few sections without the paths set properly. Run command: Code:
echo $LFS Code:
/mnt/lfs If it doesn't output, then you should go back and run this command with <> edits made for your partition: Code:
export $LFS=/mnt/lfs && |
Quote:
Quote:
Code:
lfs@Turaco:/mnt/lfs/sources/glibc-build$ echo 'main(){}' > dummy.c; $LFS_TGT-gcc -v dummy.c; readelf -l a.out | grep ': /tools' Code:
lfs@Turaco:/mnt/lfs/sources/glibc-build$ bash ../version-check.sh Code:
lfs@Turaco:/mnt/lfs/sources/glibc-build$ echo $LFS |
Can you post the correct version-check? The one in the above reply isn't from LFS 7.4 but from an earlier version.
The 7.4 version also checks for/needs g++, which might be missing on your box. |
Quote:
Code:
lfs@Turaco:/mnt/lfs/sources/glibc-build$ bash ../version-check.sh |
Assuming that you checked ReaperX7's comments (post #3), can you post the following output (as root, from your host):
Code:
updatedb |
I just noticed something in your version-check output that looks strange (glibc version check):
Quote:
Code:
# squeeze: |
Quote:
Code:
root@Turaco:/mnt/lfs/tools/lib# updatedb && locate /crti.o /crt1.o Quote:
|
Okay, just another question but have you deviated from ANYTHING in the book, such as skipped any commands?
Did you exit and re-enter the environment while making LFS up to this point? This error is only generated from an improperly mounted partition and set environment path such as allowing udev to mount your drive, rather than follow the mounting instructions in the book. |
Quote:
|
I agree with ReaperX7's doubt. You must have done something wrong.....
I'm still wondering about the EGLIBC vs GNU libc issue. You mention that you installed GNU libc, but glibc is one of the core packages of a distro and isn't replaced easily (if at all). Have you tried with a clean Debian install (+needed extras for LFS)? |
Quote:
Also i have anothe questions - can i rename "i686-lfs-linux-gnu" with "i686-gnu" or something like that without "lfs"? |
Quote:
Quote:
- 4.4. Setting Up the Environment - 5.2. Toolchain Technical Notes |
Quote:
Code:
cat > ~/.bashrc << "EOF" |
All times are GMT -5. The time now is 09:57 PM. |