gcc 4.2.1 for arm & mips?

David Daney ddaney@avtrex.com
Tue Sep 18 14:52:00 GMT 2007


Chris MacGregor wrote:
> David Daney wrote:
>> Chris MacGregor wrote:
>>> Hi.  Specifically, I'm attempting:
>>>
>>> gcc-4.2.1 (have been using 3.4.6 with all the other bits below the same)
>>> crosstool-0.43
>>> binutils-2.17
>>> glibc-2.3.6 (using linuxthreads)
>>>
>>> for mips:
>>>   * gcc configured with --with-float=soft --with-arch=mips32 
>>> --with-tune=mips32 --with-endian=little and a bunch of other stuff 
>>> (see below)
>>>   * glibc configured with --without-fp and other stuff
>>>
>>> for arm:
>>>   * gcc configured with --with-float=soft --with-cpu=xscale 
>>> --with-endian=little
>>>   * glibc configured with --without-fp and other stuff
>>>
>>> On mips, the glibc stage of the build fails with:
>>>
>>> In file included from 
>>> ../linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h:22,
>>>                 from ../sysdeps/unix/sysv/linux/mips/pread.c:29:
>>> ../linuxthreads/internals.h:532: warning: C99 inline functions are 
>>> not supported; using GNU89
>>> ../sysdeps/unix/sysv/linux/mips/pread.c: In function '__libc_pread':
>>> ../sysdeps/unix/sysv/linux/mips/pread.c:69: error: memory input 7 is 
>>> not directly addressable
>>> ../sysdeps/unix/sysv/linux/mips/pread.c:86: error: memory input 7 is 
>>> not directly addressable
>>
>> You could try looking at what the glibc 2.6 does.  I recently built 
>> that with GCC 4.2.
>>
>> I wouldn't be surprised if that were the only thing in 2.3.6 that does 
>> not work with GCC 4.2
>>
>>
>> David Daney
> for which target?

mips64-linux, I assume that mipsel-linux would be similar.

David Daney

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



More information about the crossgcc mailing list