public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Liu Haibin <liu.haibin@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: nios2-gcc ld cannot open crt0.o after recompiling
Date: Thu, 04 Aug 2005 11:50:00 -0000	[thread overview]
Message-ID: <e538aa3e0508040450162c9a75@mail.gmail.com> (raw)

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

                 reply	other threads:[~2005-08-04 11:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e538aa3e0508040450162c9a75@mail.gmail.com \
    --to=liu.haibin@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).