Problems building RTEMS for ARM on Ubuntu 64bit

Gedare Bloom gedare at gwmail.gwu.edu
Fri Nov 12 11:21:08 UTC 2010


Maybe this is relevant, from the gmp website (http://gmplib.org/):
"Gcc 4.3.2 miscompiles GMP on 64-bit machines; please use a different
gcc version (e.g., gcc 4.3.1 and gcc 4.3.3 both work properly). We
have not been able to find any workaround for this gcc bug.
Unfortunately, Debian 5.0 has decided to stay with this trouble gcc
version, resulting in that many users strike this bug.)"


On Thu, Nov 11, 2010 at 10:35 PM,  <rtems at soulscythe.com> wrote:
> Hi
>
> I'm trying to get RTEMS 4.9 for ARM running on my Ubuntu 10.04 x86_64
> system.
>
> I've downloaded the prebuilt toolchain and installed all of the packages
> successfully.
>
> rtems-4.9-arm-rtems4.9-binutils-2.19-3.el5.x86_64.rpm
> rtems-4.9-arm-rtems4.9-gcc-4.3.2-24.el5.x86_64.rpm
> rtems-4.9-arm-rtems4.9-gcc-c++-4.3.2-24.el5.x86_64.rpm
> rtems-4.9-arm-rtems4.9-gdb-6.8-11.el5.x86_64.rpm
> rtems-4.9-arm-rtems4.9-newlib-1.16.0-24.el5.x86_64.rpm
> rtems-4.9-autoconf-2.62-4.el5.noarch.rpm
> rtems-4.9-automake-1.10.3-1.el5.noarch.rpm
> rtems-4.9-binutils-common-2.19-3.el5.x86_64.rpm
> rtems-4.9-gcc-common-4.3.2-24.el5.x86_64.rpm
> rtems-4.9-gdb-common-6.8-11.el5.x86_64.rpm
> rtems-4.9-newlib-common-1.16.0-24.el5.x86_64.rpm
> rtems-4.9-release-0.21-1.el5.noarch.rpm
>
> #alien -d rtems-4.9*.rpm
> #dpkg -i rtems-4.9*.deb
>
>
> successfully configured it using...
>
> $ ../rtems-4.9.4/configure -target=arm-rtems4.9 -enable-cxx enable-rdbg
> -enable-tests -enable-networking -enable-posix -enable-rtemsbsp=nds
> <snip>
> target architecture: arm.
> available BSPs: nds.
> 'make all' will build the following BSPs: nds.
>
>
> $make all stopped here...
>
> arm-rtems4.9-gcc -B../../../../../nds/lib/ -specs bsp_specs -qrtems
> -DPACKAGE_NAME=\"rtems-c-src-tests-samples\"
> -DPACKAGE_TARNAME=\"rtems-c-src-tests-samples\" -
> DPACKAGE_VERSION=\"4.9.4\" -DPACKAGE_STRING=\"rtems-c-src-tests-samples\
> 4.9.4\" -DPACKAGE_BUGREPORT=\"http://www.rtems.org/bugzilla\"
> -DSTDC_HEADERS=1 -
> DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CSTDIO=1 -
> DHAVE_CSTDLIB=1 -DHAVE_IOSTREAM=1 -I.
> -I../../../../../../../rtems-4.9.4/c/src/../../testsuites/samples/paranoia
>  -DNOSIGNAL -DCYGNUS -DNOMAIN   -mcpu=arm9tdmi -msoft-float -
> mstructure-size-boundary=8 -O2 -MT paranoia.o -MD -MP -MF .deps/paranoia.Tpo
> -c -o paranoia.o
> ../../../../../../../rtems-4.9.4/c/src/../../testsuites/samples/paranoia/paranoia.c
> /opt/rtems-4.9/libexec/gcc/arm-rtems4.9/4.3.2/cc1: symbol lookup error:
> /opt/rtems-4.9/libexec/gcc/arm-rtems4.9/4.3.2/cc1: undefined symbol:
> __gmpn_sqr_n
> make[5]: *** [paranoia.o] Error 1
> make[5]: Leaving directory
> `/home/jayse/downloads/arm-development/rtems/rtems-4.9.4-jay/arm-rtems4.9/c/nds/testsuites/samples/paranoia'
>
> *******************************
>
> $ dpkg -s libgmp3c2 | grep Version
> Version: 2:4.3.2+dfsg-1ubuntu1
>
>
> I've followed these instructions http://devkitpro.org/viewtopic.php?f=2&t=59
> with no joy. And I've also looked at
> http://www.rtems.com/pipermail/rtems-users/2010-
> February/006616.html but is has no solution.
>
> Any ideas what i need to do?
> thanks
> Jaysen
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>




More information about the users mailing list