This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


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

Re: how to use gcc with newlib?



>/arm/lib/gcc-lib/arm-linux/2.95.3-2/../../../../arm-linux/bin/ld: cannot 
>open cr
>t1.o: No such file or directory
>collect2: ld returned 1 exit status
>I have compiled the arm toolchain with prefix=/arm and the newlib is also 
>installed with

How did you compile and install newlib? Is there a crt0.o existing in 
/arm/arm-linux/lib ? There is a several-step process to building a 
cross-compiler with newlib, did you follow it? The process is:

* configure, build and install binutils
* configure gcc and build + install C compiler ONLY
* configure, build and install newlib
* build + install remaining components of gcc
* optionally build + install gdb

It is tempting to short-circuit this process by building binutils, then 
building gcc in entirety, then building newlib. This won't work properly 
(at least, it never has done for me).


-- Lewin A.R.W. Edwards
Embedded Engineer, Digi-Frame Inc.
Work: http://www.digi-frame.com/
Tel (914) 937-4090 9am-6:30pm M-F ET
Personal: http://www.larwe.com/ http://www.zws.com/

"Far better it is to dare mighty things, to win glorious triumphs, even 
though checkered by failure, than to rank with those poor spirits who 
neither enjoy much nor suffer much, because they live in the gray twilight 
that knows not victory nor defeat."
(Theodore Roosevelt)


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