This is the mail archive of the newlib@sourceware.org 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]
Other format: [Raw text]

Re: Toolchain


On 4/11/06, Michael Ambrus <ambrmi09@yahoo.com> wrote:
> Niklaus,
> try following the instructions over at GNUARM
> (http://www.gnuarm.org/support.html). I just tried
> them on my SUSE 9.2 and it builds fine for mips-elf.
>
> (Replace all occurrences of arm-elf with mips-elf
> first  though).
>
I tried building newlib  with
~/newlib-1.14.0/configure --target=mips-elf --prefix=/home/pro/new/

But when i compile a c program i get. Actually i can do a mips-elf-gcc
-c hello.c to get hello.o. Then mips-elf-ld --entry=main hello.o .

But do we need to use with-sysroot options or somethnig similar so
that it understands everything and doesn't ask for anything like -I
and -lc


pro@deb:~/builde/gcc$ mips-elf-gcc hello.c
/home/pro/new/bin/../lib/gcc/mips-elf/3.4.6/../../../../mips-elf/bin/ld:
warning: cannot find entry symbol _start; defaulting to
0000000000400040
/tmp/cc4nAc7V.o: In function `main':
hello.c:(.text+0x14): undefined reference to `printf'
collect2: ld returned 1 exit status
pro@deb:~/builde/gcc$



> Good luck
> /Michael Ambrus
>
>
> --- Niklaus <niklaus@gmail.com> wrote:
>
> > Hi,
> >  I have built binutils and mips-elf-gcc (bootstrap
> > without-headers)
> > with target as mips-elf.
> >  When i build newlib with the mips-elf-gcc i am
> > getting errors. I
> > tried building it with normal gcc (i686) it worked.
> > How do i do build
> > the newlib for the target mips-elf and how do i use
> > it along with gcc
> > to product a mips-elf executable like compiling
> > hello world.
> >
> > It would be great if you can help me in this regard.
> >
> > I have found lots of docs on glibc .
> >
> > Regards
> > Nik
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


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