Problems building raspberry bsp
Markus Krupinsky
totersuizit at yahoo.de
Thu Nov 10 10:42:02 UTC 2016
Hi guys,
I've tried compiling rtems like described here:
http://alanstechnotes.blogspot.de/2013/03/rtems-on-raspberry-pi.html
Sadly I'm not able to build rtems using this tutorial - it fails with a
missing pid_t symbol.
System:
Archlinux (newest update) and therefore gcc6
Source-Builder:
master, origin git://git.rtems.org/rtems-source-builder.git
build cmd (after virtualenv2 setup like described in doc):
../source-builder/sb-set-builder --log=build.log
--prefix=~/workspace/rtems/compiler/4.12 4.12/rtems-arm
I wanted to be at latest dev-branch of rtems as recommended from the
mailing list.
4.11, origin git://git.rtems.org/rtems.git
./bootstrap && mkdir ../build-rpi &&cd ../build-rpi
export PATH="$(pwd)/../../compiler/4.12/bin:$PATH"
../rtems-git/configure --target=arm-rtems4.12
--enable-rtemsbsp=raspberrypi --enable-tests=samples --enable-networking
--enable-posix --prefix=$(pwd)/../bsps/4.12
Until here I got everything setup. But trying make install results in
the following error (I pasted it for better formatting on
http://paste.debian.net/894232/ ):
make[6]: Entering directory
'/home/andi/workspace/rtems/build-working/arm-rtems4.12/c/raspberrypi/cpukit/score/cpu/arm'arm-rtems4.12-gcc
--pipe -DHAVE_CONFIG_H -I../../..
-I../../../../cpukit/../../../raspberrypi/lib/include -mcpu=arm1176jzf-s
-O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
-Wstrict-prototypes -Wnested-externs -MT libscorecpu_a-__aeabi_read_tp.o
-MD -MP -MF .deps/libscorecpu_a-__aeabi_read_tp.Tpo -c -o
libscorecpu_a-__aeabi_read_tp.o `test -f '__aeabi_read_tp.c' || echo
'../../../../../../../../rtems-git/c/src/../../cpukit/score/cpu/arm/'`__aeabi_read_tp.c
In file included from
/home/andi/workspace/rtems/compiler/4.12/arm-rtems4.12/include/sys/types.h:68:0,
from
/home/andi/workspace/rtems/compiler/4.12/arm-rtems4.12/include/sys/time.h:43,
from
../../../../cpukit/../../../raspberrypi/lib/include/rtems/score/timestamp.h:43,
from
../../../../cpukit/../../../raspberrypi/lib/include/rtems/score/thread.h:87,
from
../../../../../../../../rtems-git/c/src/../../cpukit/score/cpu/arm/__aeabi_read_tp.c:19:../../../../cpukit/../../../raspberrypi/lib/include/sys/select.h:50:2:
error: unknown type name 'pid_t' pid_t si_pid; /* process to be notified
*/ ^~~~~
../../../../cpukit/../../../raspberrypi/lib/include/sys/select.h:60:32:
error: unknown type name 'fd_set' extern int select (int __nfds, fd_set
*__restrict __readfds, ^~~~~~
../../../../cpukit/../../../raspberrypi/lib/include/sys/select.h:61:20:
error: unknown type name 'fd_set' fd_set *__restrict __writefds, ^~~~~~
../../../../cpukit/../../../raspberrypi/lib/include/sys/select.h:62:20:
error: unknown type name 'fd_set' fd_set *__restrict __exceptfds, ^~~~~~
make[6]: *** [Makefile:552: libscorecpu_a-__aeabi_read_tp.o] Error 1
make[6]: Leaving directory
'/home/andi/workspace/rtems/build-working/arm-rtems4.12/c/raspberrypi/cpukit/score/cpu/arm'
I tried several things. The only thing which worked was the master
branch of rtems which is quite old.
Trying to get the rtems4.11-gcc didn't work either. It resulted in an
gcc6 error which is known to appear when trying to build gcc5 which is
described here: https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01409.html
Any recommendations?
MfG
Markus
More information about the users
mailing list