Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cross compiling gcc error (missing crt1.o)

259 views
Skip to first unread message

skibud2

unread,
Jan 5, 2008, 11:04:44 AM1/5/08
to
I am trying to cross compile gcc for mips, and I am getting the error
below. It seems to want to reference crt1.o. Now, if I am not
mistaken, crt1.o is from libc, and I have not compiled libc yet. I was
hoping to compile libc with this cross compiler I am creating :(. Any
suggestions?


///////////////////////////////////////////
configure:2295: /home/mike/Desktop/gcc-4.1.2/build-gcc-bootstrap/./gcc/
xgcc -B/home/mike/Desktop/gcc-4.1.2/build-gcc-bootstrap/./gcc/ -B/home/
mike/Desktop/custom/opt/mips-unknown-linux-gnu/bin/ -B/home/mike/
Desktop/custom/opt/mips-unknown-linux-gnu/lib/ -isystem /home/mike/
Desktop/custom/opt/mips-unknown-linux-gnu/include -isystem /home/mike/
Desktop/custom/opt/mips-unknown-linux-gnu/sys-include -O2 -g -O2
conftest.c >&5
/home/mike/Desktop/custom/opt/bin/mips-unknown-linux-gnu-ld: crt1.o:
No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2298: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libmudflap"
| #define PACKAGE_TARNAME "libmudflap"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "libmudflap 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libmudflap"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }

skibud2

unread,
Jan 5, 2008, 11:31:57 AM1/5/08
to
Found the answer: You must call "make all-gcc" rather than "make". The
cross-build document I was using was out of date.

make is used for non-bootstrapped gcc

0 new messages