Build rtems4.11 for ARM XILINX_ZYNQ

Hesham Moustafa heshamelmatary at gmail.com
Thu Feb 5 10:03:33 UTC 2015


Hi,

I'd suggest you build the tool-chain from the recent RTEMS Source Builder
[1] and try again. RPM packages may be out-dated.

[1]
http://ftp.rtems.org/pub/rtems/people/chrisj/source-builder/source-builder.html

Best,
Hesham

On Thu, Feb 5, 2015 at 9:48 AM, Nicanord Mukendi Kabobo <
nickanord_kbobo at hotmail.com> wrote:

> 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:$PATH
> And after that, I tried to compile a small code.c with this command :
> $ arm-rtems4.11-gcc -v -S f.c
> which 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 in
> Makefile:4183: recipe for target 'src/libposix_a-prwlockinit.o' failed
> gmake[5]: *** [src/libposix_a-prwlockinit.o] Error 1
> gmake[5]: *** Attente des tâches non terminées....
> mv -f src/.deps/libposix_a-prwlocktimedrdlock.Tpo
> src/.deps/libposix_a-prwlocktimedrdlock.Po
> mv -f src/.deps/libposix_a-prwlocktimedwrlock.Tpo
> src/.deps/libposix_a-prwlocktimedwrlock.Po
> mv -f src/.deps/libposix_a-prwlocktryrdlock.Tpo
> src/.deps/libposix_a-prwlocktryrdlock.Po
> mv -f src/.deps/libposix_a-prwlocktrywrlock.Tpo
> src/.deps/libposix_a-prwlocktrywrlock.Po
> mv -f src/.deps/libposix_a-prwlockwrlock.Tpo
> src/.deps/libposix_a-prwlockwrlock.Po
> mv -f src/.deps/libposix_a-prwlockunlock.Tpo
> src/.deps/libposix_a-prwlockunlock.Po
> mv -f src/.deps/libposix_a-prwlockrdlock.Tpo
> src/.deps/libposix_a-prwlockrdlock.Po
> gmake[5]: Leaving directory
> '/home/kabobo/buildrtems/arm-rtems4.11/c/xilinx_zynq_zedboard/cpukit/posix'
> Makefile:962: recipe for target 'all-recursive' failed
> gmake[4]: *** [all-recursive] Error 1
> gmake[4]: Leaving directory
> '/home/kabobo/buildrtems/arm-rtems4.11/c/xilinx_zynq_zedboard/cpukit'
> Makefile:689: recipe for target 'all' failed
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory
> '/home/kabobo/buildrtems/arm-rtems4.11/c/xilinx_zynq_zedboard/cpukit'
> Makefile:487: recipe for target 'all-recursive' failed
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> '/home/kabobo/buildrtems/arm-rtems4.11/c/xilinx_zynq_zedboard'
> Makefile:348: recipe for target 'all-recursive' failed
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory '/home/kabobo/buildrtems/arm-rtems4.11/c'
> Makefile:472: recipe for target 'all-recursive' failed
> make: *** [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
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20150205/aaebed95/attachment.html>


More information about the users mailing list