This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I use redhat as4 (beta) 's gcc and binutils to make an cross compiler for x86_64, when I build gcc, I get the error as follows.
/xwork1/xbuildroot/build-gcc-stage1/gcc/xgcc ... libgcc/./unwind-sjlj.o libgcc/./gthr-gnat.o libgcc/./unwind-c.o -lc ... /xwork1/xcrosstools/x86_64-turbo-linux/bin/ld: crti.o: No such file: No such file or directory collect2: ld returned 1 exit status make[2]: *** [libgcc_s.so] Error 1 make[2]: Leaving directory `/xwork1/xbuildroot/build-gcc-stage1/gcc' ...
I don't know why ld need crti.o, I compile bintuils and gcc all in static.
the following is my shell: ../$BINUTILS_DIR/configure --prefix=$CROSS_TOOLS
--disable-nls --target=$TARGET
make configure-host
make configure-target
make -j4 LDFLAGS="-all-static"
make install
gcc:
../$GCC_DIR/configure --target=$TARGET --build=$BUILD \
--prefix=$CROSS_TOOLS \
--with-local-prefix=$CROSS_TOOLS \ --disable-multilib \
--enable-threads=no \ --enable-languages=c \ --enable-shared
make -j4 CFLAGS='-Dinhibit_libc' BOOT_LDFLAGS="-static"
If that doesn't do it, try building a crosscompiler with http://www.kegel.com/crosstool/crosstool-0.28-rc37.tar.gz ? If that works, then you can either use that, or compare the build log against yours to see what crosstool does differently to avoid the problem. - Dan
-- Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |