Skip to contentSkip to conversation

XENO_ARCH_FPU

DISCUSSION François Legal 2 participants 6 messages Jul 26, 2023 – Aug 11, 2023

lore
Share & tools
lore
#0 lore raw

Hello,

upgrading to xenomai 3.2.x for ARM arch (zynq7000 target), I have a build failure on kernel/cobalt/ipipe/sched.c :
kernel/xenomai/pipeline/sched.c:97:9: error: implicit declaration of function 'switch_fpu'; did you mean 'switch_to'? [-Werror=implicit-function-declaration]

The problem seem to be caused by CONFIG_XENO_ARCH_FPU not being defined, and in this case, the switch_fpu() function is not defined, but called unconditionnally in pipeline_switch_to() and pipeline_leave_inband()

The fix seem straightforward, however, I could not find any place where this CONFIG_XENO_ARCH_FPU gets defined for any arch, nor any Kconfig menu to enable/disable it.

It is however the same for my previous xenomai 3.1 setup

Can anybody help on this ?

Thanks in advance

François

#1 lore raw
Quoted 5 lines · François Legal

Hello,

upgrading to xenomai 3.2.x for ARM arch (zynq7000 target), I have a build failure on kernel/cobalt/ipipe/sched.c :
kernel/xenomai/pipeline/sched.c:97:9: error: implicit declaration of function 'switch_fpu'; did you mean 'switch_to'? [-Werror=implicit-function-declaration]

What is the kernel version you are building against? It's kind of a FAQ by now, but 3.2.x is only supported up to 5.15. Newer kernels need current master / future 3.3.

Jan

Quoted 13 lines

The problem seem to be caused by CONFIG_XENO_ARCH_FPU not being defined, and in this case, the switch_fpu() function is not defined, but called unconditionnally in pipeline_switch_to() and pipeline_leave_inband()

The fix seem straightforward, however, I could not find any place where this CONFIG_XENO_ARCH_FPU gets defined for any arch, nor any Kconfig menu to enable/disable it.

It is however the same for my previous xenomai 3.1 setup

Can anybody help on this ?

Thanks in advance

François

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#2 lore raw
Quoted 11 lines · Jan Kiszka
Quoted 5 lines · François Legal

Hello,

upgrading to xenomai 3.2.x for ARM arch (zynq7000 target), I have a build failure on kernel/cobalt/ipipe/sched.c :
kernel/xenomai/pipeline/sched.c:97:9: error: implicit declaration of function 'switch_fpu'; did you mean 'switch_to'? [-Werror=implicit-function-declaration]

What is the kernel version you are building against? It's kind of a FAQ by now, but 3.2.x is only supported up to 5.15. Newer kernels need current master / future 3.3.

I'm usign 5.4

Quoted 20 lines

Jan

Quoted 4 lines

The problem seem to be caused by CONFIG_XENO_ARCH_FPU not being defined, and in this case, the switch_fpu() function is not defined, but called unconditionnally in pipeline_switch_to() and pipeline_leave_inband()

The fix seem straightforward, however, I could not find any place where this CONFIG_XENO_ARCH_FPU gets defined for any arch, nor any Kconfig menu to enable/disable it.

Quoted 9 lines

It is however the same for my previous xenomai 3.1 setup

Can anybody help on this ?

Thanks in advance

François

--
Siemens AG, Technology
Linux Expert Center

#3 lore raw
Quoted 9 lines · François Legal
Quoted 7 lines · Jan Kiszka
Quoted 5 lines · François Legal

Hello,

upgrading to xenomai 3.2.x for ARM arch (zynq7000 target), I have a build failure on kernel/cobalt/ipipe/sched.c :
kernel/xenomai/pipeline/sched.c:97:9: error: implicit declaration of function 'switch_fpu'; did you mean 'switch_to'? [-Werror=implicit-function-declaration]

Quoted 6 lines
Quoted 4 lines

What is the kernel version you are building against? It's kind of a FAQ by now, but 3.2.x is only supported up to 5.15. Newer kernels need current master / future 3.3.

I'm usign 5.4

ipipe-core-5.4.231-arm-6?

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#4 lore raw
Quoted 10 lines · Jan Kiszka
Quoted 9 lines · François Legal
Quoted 7 lines · Jan Kiszka
Quoted 5 lines · François Legal

Hello,

upgrading to xenomai 3.2.x for ARM arch (zynq7000 target), I have a build failure on kernel/cobalt/ipipe/sched.c :
kernel/xenomai/pipeline/sched.c:97:9: error: implicit declaration of function 'switch_fpu'; did you mean 'switch_to'? [-Werror=implicit-function-declaration]

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

What is the kernel version you are building against? It's kind of a FAQ by now, but 3.2.x is only supported up to 5.15. Newer kernels need current master / future 3.3.

I'm usign 5.4

ipipe-core-5.4.231-arm-6?

Correct

Quoted 6 lines

Jan

--
Siemens AG, Technology
Linux Expert Center

#5 lore raw
Quoted 17 lines · François Legal
Quoted 15 lines · Jan Kiszka
Quoted 14 lines · François Legal
Quoted 11 lines · Jan Kiszka
Quoted 5 lines · François Legal

Hello,

upgrading to xenomai 3.2.x for ARM arch (zynq7000 target), I have a build failure on kernel/cobalt/ipipe/sched.c :
kernel/xenomai/pipeline/sched.c:97:9: error: implicit declaration of function 'switch_fpu'; did you mean 'switch_to'? [-Werror=implicit-function-declaration]

What is the kernel version you are building against? It's kind of a FAQ by now, but 3.2.x is only supported up to 5.15. Newer kernels need current master / future 3.3.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

I'm usign 5.4

ipipe-core-5.4.231-arm-6?

Correct

Can you tell the difference to the configuration we were building here?

https://source.denx.de/Xenomai/xenomai/-/jobs/620838

That succeeded. I used multi_v7_defconfig.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center