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]

RE: newlib build error + can I use c-only build to compile a simple c code?


-----Original Message-----
>From: Cristian Amitroaie [mailto:Cristian.Amitroaie@NOBUGCONSULTING.RO]
>Sent: 20 April 2001 08:09

>What's this?

  Sorry, can't help there.

>And why if I use the c-only build of gcc on
     [snipped example]
>I get
>
>$ v850-gcc f.c
>/usr/local/v850/lib/gcc-lib/v850/2.95.2-6/../../../../v850/bin/ld: cannot
open
>crt0.o: No such file or directory
>collect2: ld returned 1 exit status

  Because you haven't built and installed the library yet; crt0.o is the
startup code for the C RunTime library (newlib in your case).  It sets up
the initial stack frame, calls initialisers, allocates the heap, that sort
of
thing.  Even a simple C program needs it to get running.  If you want to get
raw code out of your C-only compiler, you can try the -nostdlib flag.

>although I get no error on c-only installation.

  Because nothing went wrong with the compiler install, it was the library
that had the errors!

    DaveK
--
 All your base are belong to the Israeli army!  Oh, now they aren't again!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]