LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   No crti.o or crt1(l?).o after first pass of glibc. (http://www.linuxquestions.org/questions/linux-from-scratch-13/no-crti-o-or-crt1-l-o-after-first-pass-of-glibc-4175437632/)

tfnc99 11-17-2012 09:46 PM

No crti.o or crt1(l?).o after first pass of glibc.
 
Well, when trying to compile the dummy.c this comes up:

$ $LFS_TGT-gcc dummy.c
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.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.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status

Again, not sure if l or 1.

version_check.sh says everythings good-to-go.
No errors came up during binutils, gcc, or glibc in their first go.
There are no deviations from the book, V7.2

All help is welcome :D

EDIT: After running version-check.sh the second time, I started getting a ton of 'cannot determine tty' errors, I am going to have to start over. I still want help for this problem if I run into it again

druuna 11-18-2012 03:13 AM

Quote:

Originally Posted by tfnc99 (Post 4831742)
Well, when trying to compile the dummy.c this comes up:

$ $LFS_TGT-gcc dummy.c
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.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.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status

This points to a host that is not fully compliant. You don't mention the host you are using, if you are using Debian you need to install the gcc or libc6-dev package.

Maybe other packages are also missing. Please post the output of the version_check.sh script.

tfnc99 11-18-2012 11:01 AM

Just got back around to it and you where right, I assumed those would be under build-essential -.-

Thank You :D

EDIT: The computer is a different one with only CLI and is hard to communicate with this one, but I have to assure you that other than the libc6-dev everything falls into those boundries.


All times are GMT -5. The time now is 11:37 AM.