Problem building gcc 4.3.1 cross-compiler with ada
Dirk Heinrichs
dirk.heinrichs at online.de
Thu Jul 24 07:37:11 UTC 2008
Joel Sherrill schrieb:
> 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.
Doesn't make a difference. It was used in the online flash tutorial, so I
thought it shouldn't harm.
> 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?
It's compiled with the new xgcc:
/gentoo/build/build-gcc-rtems-ada/./gcc/xgcc -B/gentoo/build/build-gcc-rtems-
ada/./gcc/ -nostdinc -B/gentoo/build/build-gcc-rtems-ada/i386-rtems/newlib/ -
isystem /gentoo/build/build-gcc-rtems-ada/i386-rtems/newlib/targ-include -
isystem /gentoo/build/gcc-4.3.1/newlib/libc/include -B/opt/i386-rtems/bin/ -
B/opt/i386-rtems/lib/ -isystem /opt/i386-rtems/include -isystem /opt/i386-
rtems/sys-include -c -g -O2 -W -Wall-gnatpg a-numaux.ads -o a-numaux.o
a-numaux.ads:48:21: package "Ada.Numerics.Aux" does not allow a body
a-numaux.ads:48:21: remove incorrect body in file "a-numaux.adb"
make[4]: *** [a-numaux.o] Fehler 1
Bye...
Dirk
More information about the users
mailing list