Unable to build schedsim
Matthew Clark
linux.matthew at gmail.com
Tue Mar 8 18:18:03 UTC 2016
I'm trying to build the rtems schedule simulator on my raspberrypi2 and am
running into a compilation error. I'm following the instructions provided
in schedsim/UsingTheSchedulerSimulator.txt. The configure step
./rtems-schedsim.master.git/configure --prefix=/tmp/schedsim
--enable-maintainer-mode
--enable-rtemsdir=/home/rtems/rtems-4.11.git
--enable-rtemsbsp="raspberrypi2"
--enable-networking --enable-cxx --enable-tests --target=arm-rtems4.11
goes fine, but it blows up at compile:
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
-I../../../rtems-schedsim.master.git/schedsim/rtems
-D__RTEMS_VIOLATE_KERNEL_VISIBILITY__ -D_GNU_SOURCE
-I../score/include
-I../../../rtems-schedsim.master.git/schedsim/rtems/sched_cpu
-I/home/rtems/rtems-4.11.git/cpukit/include
-I/home/rtems/rtems-4.11.git/cpukit/score/include
-I/home/rtems/rtems-4.11.git/cpukit/rtems/include
-I/home/rtems/rtems-4.11.git/cpukit/sapi/include
-I/home/rtems/rtems-4.11.git/cpukit/libcsupport/include
-I/home/rtems/rtems-4.11.git/cpukit/libmisc/stringto
-I/home/rtems/rtems-4.11.git/cpukit/posix/include
-I/home/rtems/rtems-4.11.git/cpukit/posix/include
-g -O2 -MT librtems_a-rtems_init.o -MD -MP -MF
.deps/librtems_a-rtems_init.Tpo
-c -o librtems_a-rtems_init.o `test -f 'rtems_init.c' ||
echo '../../../rtems-schedsim.master.git/schedsim/rtems/'`rtems_init.c
In file included from
/home/rtems/rtems-4.11.git/cpukit/score/include/rtems/score/thread.h:87:0,
from
/home/rtems/rtems-4.11.git/cpukit/score/include/rtems/score/heap.h:22,
from
/home/rtems/rtems-4.11.git/cpukit/rtems/include/rtems/rtems/types.h:26,
from
/home/rtems/rtems-4.11.git/cpukit/rtems/include/rtems/rtems/config.h:24,
from /home/rtems/rtems-4.11.git/cpukit/sapi/include/rtems/config.h:57,
from ../../../rtems-schedsim.master.git/schedsim/rtems/rtems_init.c:25:
/home/rtems/rtems-4.11.git/cpukit/score/include/rtems/score/timestamp.h: In
function ‘_Timestamp_Set’:
/home/rtems/rtems-4.11.git/cpukit/score/include/rtems/score/timestamp.h:79:3:
warning: implicit declaration of function ‘timespec2bintime’
[-Wimplicit-function-declaration]
timespec2bintime( &_ts, _time );
I chased the problem down to the fact that since gcc is being called, it's
including /usr/include/sys/time.h, which doesn't define timespec2bintime. It's
defined in ${RTEMS}/arm-rtems4.11/include/sys/time.h, but gcc won't see
that.
If I force to use the RTEMS compiler, with something like:
make CC=arm-rtems4.11-gcc
then I'll get an error about another header.
../../../rtems-schedsim.master.git/schedsim/rtems/sched_cpu/sys/features.h:4:28:
fatal error: bits/posix_opt.h: No such file or directory
#include <bits/posix_opt.h>
which doesn't exist under the rtems folder.
So how do I build this? I need to get a better understanding of the RTEMS
scheduler and thought this would be a good way to do it. Thanks.
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160308/d441760a/attachment.html>
More information about the users
mailing list