* nios2-gcc ld cannot open crt0.o after recompiling
@ 2005-08-04 11:50 Liu Haibin
0 siblings, 0 replies; only message in thread
From: Liu Haibin @ 2005-08-04 11:50 UTC (permalink / raw)
To: gcc-help
Hi,
I recompiled the nios2-gcc on cygwin and got an error when I executed
#cd /usr/local/bin
#./nios2-elf-gcc.exe -v t.c
*************************************************************************
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc-lib/nios2-elf/3.3.3/include
/usr/local/nios2-elf/sys-include
End of search list.
/usr/local/lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/bin/as.exe
-o /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc2XZfYD.o
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cccnDqie.s
/usr/local/lib/gcc-lib/nios2-elf/3.3.3/collect2.exe crt0.o
/usr/local/lib/gcc-lib/nios2-elf/3.3.3/crtdotors.o
-L/usr/local/lib/gcc-lib/nios2-elf/3.3.3
-L/usr/local/lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/lib
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc2XZfYD.o -lgcc
--start-group -lc -lgcc -lnosys -lstack --end-group -lgcc
/usr/local/lib/gcc-lib/nios2-elf/3.3.3/crtendtors.o
/usr/local/lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/bin/ld:
cannot open crt0.o: No such file or directory
collect2: ld returned 1 exit status
************************************************************************************
But when I used the original nios2-gcc, everything was ok.
#cd /cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin
#./nios2-elf-gcc.exe -v t.c
************************************************************************************
#include "..." search starts here:
#include <...> search starts here:
/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/include
/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/include
End of search list.
GNU C version 3.4.1 (Altera Nios II 1.1 b137) (nios2-elf)
compiled by GNU C version 3.2 20020927 (prerelease).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129800
/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/as.exe
-o /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgecYZo.o
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccpqRtpe.s
/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../libexec/gcc/nios2-elf/3.4.1/collect2.exe
/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib/crt0.o
-L/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1
-L/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc
-L/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgecYZo.o -lgcc
--start-group -lc -lgcc -lnosys -lstack --end-group -lgcc
**************************************************************************************
I'm very confused here. Why does the recompiled nios2-gcc try to use
ld while the original one doesn't (at least doesn't explicitly use it
with -v option) ? How can I solve the problem here? Thanks.
Regards,
Haibin
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-04 11:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-04 11:50 nios2-gcc ld cannot open crt0.o after recompiling Liu Haibin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).