Problems building ARM rtems-4.9.3 paranoia example with centos/5/i386 prebuild RPMs on debian
Joachim Rahn
Joachim.Rahn at bessy.de
Thu Feb 25 06:36:22 UTC 2010
On 24.02.2010 08:26, Ralf Corsepius wrote:
> On 02/23/2010 12:14 PM, Joachim Rahn wrote:
>> Hi,
>>
>> I've just installed the prebuild centos/5/i386 cross toolchain on a
>> debian Linux system
>>
>> rtems-4.9-arm-rtems4.9-binutils-2.19-3.el5.i386.rpm
>> rtems-4.9-arm-rtems4.9-gcc-4.3.2-24.el5.i386.rpm
>> rtems-4.9-arm-rtems4.9-gcc-c++-4.3.2-24.el5.i386.rpm
>> rtems-4.9-arm-rtems4.9-gdb-6.8-11.el5.i386.rpm
>> rtems-4.9-arm-rtems4.9-newlib-1.16.0-24.el5.i386.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.i386.rpm
>> rtems-4.9-gcc-common-4.3.2-24.el5.i386.rpm
>> rtems-4.9-gdb-common-6.8-11.el5.i386.rpm
>> rtems-4.9-newlib-common-1.16.0-24.el5.i386.rpm
>>
>> In the next step I took rtems-4.9.3 fronm cvs with
>>
>> cvs -d :pserver:anoncvs at www.rtems.com:/usr1/CVS -z 9 co
>> -rrtems-4-9-3 rtems
>>
>> Because we would like to use RTEMS for ARM based hardware I tried to
>> build rtems-4.9.3 for the BSP csb337 as a test.
>> This will result in the following error:
>
>
>> arm-rtems4.9-gcc -B../../../../../csb337/lib/ -specs bsp_specs -qrtems
>> -DPACKAGE_NAME=\"rtems-c-src-tests-samples\"
>> -DPACKAGE_TARNAME=\"rtems-c-src-tests-samples\"
>> -DPACKAGE_VERSION=\"4.9.3\"
>> -DPACKAGE_STRING=\"rtems-c-src-tests-samples\ 4.9.3\"
>> -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.3/c/src/../../testsuites/samples/paranoia
>> -DNOSIGNAL -DCYGNUS -DNOMAIN -mcpu=arm920
>> -mstructure-size-boundary=8 -O2 -g -MT
>> init.o -MD -MP -MF .deps/init.Tpo -c -o init.o
>> ../../../../../../../rtems-4.9.3/c/src/../../testsuites/samples/paranoia/init.c
>>
>> mv -f .deps/init.Tpo .deps/init.Po
>> arm-rtems4.9-gcc -B../../../../../csb337/lib/ -specs bsp_specs -qrtems
>> -DPACKAGE_NAME=\"rtems-c-src-tests-samples\"
>> -DPACKAGE_TARNAME=\"rtems-c-src-tests-samples\"
>> -DPACKAGE_VERSION=\"4.9.3\"
>> -DPACKAGE_STRING=\"rtems-c-src-tests-samples\ 4.9.3\"
>> -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.3/c/src/../../testsuites/samples/paranoia
>> -DNOSIGNAL -DCYGNUS -DNOMAIN -mcpu=arm920
>> -mstructure-size-boundary=8 -O2 -g -MT
>> paranoia.o -MD -MP -MF .deps/paranoia.Tpo -c -o paranoia.o
>> ../../../../../../../rtems-4.9.3/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
>
>
>> Any suggestions ... ????
> Seems as if your system lacks libgmp rsp. a sufficiently compatible libgmp.
>
> Check the output of
> ldd /opt/rtems-4.9/libexec/gcc/arm-rtems4.9/4.3.2/cc1
>
> My guess is, on your system you will see a dangling reference to
> libgmp.so.3
>
> In this case, the work-around would be to install the Debian package
> which provides /usr/lib/libgmp.so.3
>
> Ralf
at first, thanks for the fast response....
Hmmm, looking at my debian I see the following:
> ldd /opt/rtems-4.9/libexec/gcc/arm-rtems4.9/4.3.2/cc1
linux-gate.so.1 => (0xb7769000)
libgmp.so.3 => /usr/lib/libgmp.so.3 (0xb76e8000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb75a1000)
/lib/ld-linux.so.2 (0xb776a000)
> locate libgmp.so.3
/usr/lib/libgmp.so.3
which seems in principle o.k. ... ???
However, meanwhile I've build the toolchain from the sources in http://www.rtems.org/ftp/pub/rtems/SOURCES/4.9/ and it works so far.
Thanks again,
--
Joachim
More information about the users
mailing list