[LITMUS^RT] Litmus on single-board computer

Martinez Garcia Jorge Luis (PS-EC/ESB2) JorgeLuis.MartinezGarcia at de.bosch.com
Sat Jan 13 15:03:36 CET 2018


Hello Björn, 
I tried to cross-compile liblitmus by setting  LITMUS_KERNEL = ../linux-stable, ARCH = arm64 and CROSS_COMPILE = aarch64-linux-gnu- in the .config file and got the following output.  

~/playground/liblitmus$ make
cp ../linux-stable/include/litmus/rt_param.h include/litmus/rt_param.h
cp ../linux-stable/include/litmus/ctrlpage.h include/litmus/ctrlpage.h
cp ../linux-stable/include/litmus/fpmath.h include/litmus/fpmath.h
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o kernel_iface.o src/kernel_iface.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o migration.o src/migration.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o syscalls.o src/syscalls.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o task.o src/task.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o litmus.o src/litmus.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o clocks.o src/clocks.c
ar rcs liblitmus.a kernel_iface.o migration.o syscalls.o task.o litmus.o clocks.o
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o cycles.o bin/cycles.c
gcc -o cycles -m64  cycles.o   -L. -llitmus 
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o base_task.o bin/base_task.c
gcc -o base_task -m64  base_task.o   -L. -llitmus 
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o rt_launch.o bin/rt_launch.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o common.o bin/common.c
gcc -o rt_launch -m64  rt_launch.o common.o   -L. -llitmus 
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o rtspin.o bin/rtspin.c
gcc -o rtspin -m64  rtspin.o common.o   -L. -llitmus -lrt
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o release_ts.o bin/release_ts.c
gcc -o release_ts -m64  release_ts.o common.o   -L. -llitmus 
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o null_call.o bin/null_call.c
gcc -o measure_syscall -m64  null_call.o   -L. -llitmus -lm
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o base_mt_task.o bin/base_mt_task.c
gcc -o base_mt_task -m64 -pthread base_mt_task.o   -L. -llitmus 
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o uncache.o bin/uncache.c
gcc -o uncache -m64  uncache.o   -L. -llitmus -lrt
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o core_api.o tests/core_api.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o nesting.o tests/nesting.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o runner.o tests/runner.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o fdso.o tests/fdso.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o sched.o tests/sched.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o pcp.o tests/pcp.c
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o locks.o tests/locks.c
gcc -o runtests -m64  core_api.o nesting.o runner.o fdso.o sched.o pcp.o locks.o   -L. -llitmus -lrt
gcc -O2 -Wall -Werror -g -Wdeclaration-after-statement -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -m64 -DARCH=x86_64 -I./include -I./arch/x86/include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi  -c -o resctl.o bin/resctl.c
gcc -o resctl -m64  resctl.o   -L. -llitmus

Can you help me to figure out what the problem is?
Jorge

-----Original Message-----
From: litmus-dev [mailto:litmus-dev-bounces at lists.litmus-rt.org] On Behalf Of Björn Brandenburg
Sent: Donnerstag, 11. Januar 2018 09:54
To: litmus-dev at lists.litmus-rt.org
Subject: Re: [LITMUS^RT] Litmus on single-board computer


> On 10. Jan 2018, at 23:32, Martinez Garcia Jorge Luis (PS-EC/ESB2) <JorgeLuis.MartinezGarcia at de.bosch.com> wrote:
> 
> do I need to consider something else apart from what is written in the documentation (https://www.litmus-rt.org/installation.html), in order to build liblitmus and the Feather-Trace Tools for the RPi 3?

No, it should work just fine. You can either compile locally or cross-compile both like the Linux kernel (i.e., by setting the ARCH and CROSS_COMPILE environment variables). 

- Björn


_______________________________________________
litmus-dev mailing list
litmus-dev at lists.litmus-rt.org
https://lists.litmus-rt.org/listinfo/litmus-dev


More information about the litmus-dev mailing list