Build rtems4.11 for ARM XILINX_ZYNQ
Nicanord Mukendi Kabobo
nickanord_kbobo at hotmail.com
Thu Feb 5 09:48:22 UTC 2015
Hello,
I am a student in France and I want to compile rtems4.11 map xilinx_zynq. I installed all of the arm’s RPM patch on my OS Fedora 21 x86_64 following the procedure below:
$ rpm -ivh --nodeps ftp://ftp.rtems.org/pub/rtems/linux/4.11/fedora/21/x86_64/rtems-4.11-yum-conf-0.20140713.0-1.fc21.noarch.rpm$ rpm --import ftp://ftp.rtems.org/pub/rtems/linux/gpg-pubkey-69ce4a83-44cc2b30$ yum install rtems-4.11-auto*$ yum install rtems-4.11-arm*$ export PATH=/opt/rtems-4.11/bin:$PATHAnd after that, I tried to compile a small code.c with this command :$ arm-rtems4.11-gcc -v -S f.cwhich produced code.s as I wanted.
Next I attempt to build RTEMS for the arm target, and things start to fail.$ cd codertems && ./bootstrap && cd ../$ mkdir buildrtems && cd buildrtems$ ../codertems/configure --target=arm-rtems4.11 --disable-cxx --enable-rtemsbsp=xilinx_zynq_zedboard --prefix=/home/kabobo/target_xilinx_zynq_zedboard$ make
After a few minutes of compilation, I gets this error:
Message../../../../../../codertems/c/src/../../cpukit/posix/src/prwlockinit.c: In function '_POSIX_RWLock_Check_id_and_auto_init':../../../../../../codertems/c/src/../../cpukit/posix/src/prwlockinit.c:40:19: error: 'PTHREAD_RWLOCK_INITIALIZER' undeclared (first use in this function) if ( *rwlock == PTHREAD_RWLOCK_INITIALIZER ) { ^../../../../../../codertems/c/src/../../cpukit/posix/src/prwlockinit.c:40:19: note: each undeclared identifier is reported only once for each function it appears inMakefile:4183: recipe for target 'src/libposix_a-prwlockinit.o' failedgmake[5]: *** [src/libposix_a-prwlockinit.o] Error 1gmake[5]: *** Attente des tâches non terminées....mv -f src/.deps/libposix_a-prwlocktimedrdlock.Tpo src/.deps/libposix_a-prwlocktimedrdlock.Pomv -f src/.deps/libposix_a-prwlocktimedwrlock.Tpo src/.deps/libposix_a-prwlocktimedwrlock.Pomv -f src/.deps/libposix_a-prwlocktryrdlock.Tpo src/.deps/libposix_a-prwlocktryrdlock.Pomv -f src/.deps/libposix_a-prwlocktrywrlock.Tpo src/.deps/libposix_a-prwlocktrywrlock.Pomv -f src/.deps/libposix_a-prwlockwrlock.Tpo src/.deps/libposix_a-prwlockwrlock.Pomv -f src/.deps/libposix_a-prwlockunlock.Tpo src/.deps/libposix_a-prwlockunlock.Pomv -f src/.deps/libposix_a-prwlockrdlock.Tpo src/.deps/libposix_a-prwlockrdlock.Pogmake[5]: Leaving directory '/home/kabobo/buildrtems/arm-rtems4.11/c/xilinx_zynq_zedboard/cpukit/posix'Makefile:962: recipe for target 'all-recursive' failedgmake[4]: *** [all-recursive] Error 1gmake[4]: Leaving directory '/home/kabobo/buildrtems/arm-rtems4.11/c/xilinx_zynq_zedboard/cpukit'Makefile:689: recipe for target 'all' failedgmake[3]: *** [all] Error 2gmake[3]: Leaving directory '/home/kabobo/buildrtems/arm-rtems4.11/c/xilinx_zynq_zedboard/cpukit'Makefile:487: recipe for target 'all-recursive' failedgmake[2]: *** [all-recursive] Error 1gmake[2]: Leaving directory '/home/kabobo/buildrtems/arm-rtems4.11/c/xilinx_zynq_zedboard'Makefile:348: recipe for target 'all-recursive' failedgmake[1]: *** [all-recursive] Error 1gmake[1]: Leaving directory '/home/kabobo/buildrtems/arm-rtems4.11/c'Makefile:472: recipe for target 'all-recursive' failedmake: *** [all-recursive] Error 1[kabobo at localhost buildrtems]$
If anyone has successfully gotten this BSP's toactually work, it would be very helpful.
Sincerely,Nicanord Kabobo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20150205/0261d043/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture du 2015-02-05 092844.png
Type: image/png
Size: 92068 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20150205/0261d043/attachment-0001.png>
More information about the users
mailing list