Problem when compiling Xenomai 3.0.8 user libraries with enable-debug

Jan Kiszka jan.kiszka at siemens.com
Mon Jul 13 19:40:33 CEST 2020


On 11.07.20 19:42, Matheus Leitzke via Xenomai wrote:
> Hello,
> 
> I am setting my Xenomai user libraries with:
> 
> ./configure --host=arm-linux-gnueabihf --enable-smp --enable-debug=full
> --enable-pshared --with-core=cobalt
> 
> But when I use make to compile the user libraries, the following error is
> throw:
> 
> make[5]: Entering directory
> '/home/matheus/Downloads/xenomai-3.0.8/lib/cobalt/arch/arm'
>    CC       libarch_la-features.lo
> features.c: In function ‘cobalt_check_features’:
> features.c:78:1: error: r7 cannot be used in asm here
>   }
> 
> This error is thrown because the r7 register is being used in macro
> XENOMAI_SYSCALL2 inside cobalt_check_features from features,c cobalt file.
> 
> I try to follow this suggestion:
> https://tls.mbed.org/kb/development/arm-thumb-error-r7-cannot-be-used-in-asm-here.
> However, when inserting "-fomit-frame-pointer" on Makefile c flags
> variables, this has no effect.
> 
> This error occurs only when I set --enable-debug flag.
> 
> Do you have any suggestions?
> 
> Matheus
> 

Cannot reproduce - what toolchain are you using? I'm on Linaro gcc 
8.3-2019.03.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux



More information about the Xenomai mailing list