Problem building gcc 4.3.1 cross-compiler with ada

Joel Sherrill joel.sherrill at OARcorp.com
Wed Jul 23 20:48:09 UTC 2008


Some long overdue notes since I hit this problem
and may have some ideas now.

Dirk Heinrichs wrote:
> Am Montag, 14. Juli 2008 schrieb Joel Sherrill:
>   
>> Dirk Heinrichs wrote:
>>     
>>> Am Sonntag, 13. Juli 2008 schrieb Joel Sherrill:
>>>       
>>>> How about the attached Ada specific patch?
>>>>         
>>> Unfortunatley, it didn't change anything.
>>>       
>> Weird.  I have built powerpc, mips, i386, and sparc
>> and run the ACATS on this for 4.3.1.
>>
>> When you look at ada/Makefile.in and search for rtems
>> as a target pair do you see numaux in the list?  It shouldn't
>> be there.
>>     
>
> No, it's not there for rtems (but for other targets).
>   
And that's because RTEMS uses the standard libm.a
and there is no body.
>   
>> What version is your native Ada compiler?  You have to have
>> the same native Ada as the cross you are building.
>>     
>
> Yes, it's also 4.3.1, built from the same source dir. And I've also built a
> C-only cross compiler before, as per wiki instructions.
>
>   
I hit this on the trunk.
>> This is my configure line:
>>
>>   ../${GCCSRCDIR}/configure \
>>    --enable-threads=rtems  --with-gnu-as --disable-multilib \
>>    --with-gnu-ld --with-newlib  --verbose --with-system-zlib --disable-nls
>> \ --enable-version-specific-runtime-libs \
>>     --enable-languages=c,ada --target=$TARGET --prefix=$INSTALL
>>     
>
> Mine looks nearly the same:
>
> ../gcc-4.3.1/configure \
> --enable-threads=rtems  --with-gnu-as --disable-multilib \
> --with-gnu-ld --with-newlib  --verbose --with-system-zlib --disable-nls \
> --enable-version-specific-runtime-libs \
> --enable-languages=c,c++,ada --target=i386-rtems --prefix=/opt \
> --program-prefix=i386-rtems-
>   
Please remove the --program-prefix.

I got this error when I had a --enable-multilib but you don't have that. :(

Check your build log.  Is the a-numaux being compiled with the
native gcc or the cross xgcc being built?


> Bye...
>
>         Dirk
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list