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

Re: mips-elf with newlib


Michael N. Moran wrote:
Bill Gatliff wrote:
Michael N. Moran wrote:


../gcc-4.0.2/configure \ --target=mips-elf \ --prefix=/tools/gnu/gcc/4.0.2/mips-elf \ --with-newlib \ --disable-newlib-supplied-syscalls \ --enable-languages=c,c++

Try adding a --with-gnu-as --with-gnu-ld, and drop the c++ until you have c built.

Thanks for the advice Bill.


Any particular reason you are using gcc 4.0.2? I don't know that it is the problem but it
is probably best to be using a newer gcc. I know RTEMS is using gcc 4.1.1 and it is
with binutils 2.17 and newlib 1.14 and it is OK. mips-rtems* is a cousin of mips-elf.


--joel

Sadly, there was no change in the result for this config:

../gcc-4.0.2/configure \
    --target=mips-elf \
    --prefix=/tools/gnu/gcc/4.0.2/mips-elf \
    --with-newlib \
    --disable-newlib-supplied-syscalls \
    --enable-languages=c \
    --with-gnu-as \
    --with-gnu-ld

BTW, my host GCC looks like this:

# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)





--
For unsubscribe information see http://sourceware.org/lists.html#faq


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