error: implicit declarations while compiling (xenomai3.1+ubuntu20.04)

João Costa joaocostalapin at
Tue May 25 20:03:51 CEST 2021


I am having some problems with a fresh install of Xenomai 3.1 and I was
hoping that someone could help me out solving those
 or by sharing some installation instructions for dummies.

*Test bench configuration:*
-Ubuntu server 20.04.2 running kernel 5.4.0-73-generic
-Xenomai version 3.1
-Kernel downloaded for patch/installation: linux-5.4.77.tar.gz (since I
could not find an exact match with ipipe patch and the kernel already

*I am following this instructions:*
- had the need to install/change some packages " gcc libncurses-dev flex
bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev
libiberty-dev build-essential kernel-package"
- assumed that where is written:
it should be
$make oldconfig

*I am getting the following errors:*
*after running* " CONCURRENCY_LEVEL=8 make-kpkg  --rootcmd fakeroot
--initrd  --revision=1.0.0 kernel_image kernel_headers "

> kernel/ipipe/core.c: In function ‘__ipipe_spin_lock_irqsave’:
> kernel/ipipe/core.c:547:9: error: implicit declaration of function
> ‘arch_mangle_irq_bits’ [-Werror=implicit-function-declaration]
>   547 |  return arch_mangle_irq_bits(s, flags);
>       |         ^~~~~~~~~~~~~~~~~~~~
>   CC      kernel/sched/cputime.o

> kernel/ipipe/core.c: In function ‘__ipipe_spin_unlock_irqrestore’:
> kernel/ipipe/core.c:574:7: error: implicit declaration of function
> ‘arch_demangle_irq_bits’; did you mean ‘arch_early_irq_init’?
> [-Werror=implicit-function-declaration]
>   574 |  if (!arch_demangle_irq_bits(&x))
>       |       ^~~~~~~~~~~~~~~~~~~~~~
>       |       arch_early_irq_init

>  arch/x86/kernel/process.c: In function ‘mwait_idle’:
> arch/x86/kernel/process.c:699:4: error: implicit declaration of function
> ‘__ipipe_halt_root’; did you mean ‘ipipe_test_root’?
> [-Werror=implicit-function-declaration]
>   699 |    __ipipe_halt_root(1);
>       |    ^~~~~~~~~~~~~~~~~
>       |    ipipe_test_root

cc1: some warnings being treated as errors

> make[3]: *** [scripts/ arch/x86/kernel/process.o] Error
> 1
> make[2]: *** [scripts/ arch/x86/kernel] Error 2
> make[1]: *** [Makefile:1729: arch/x86] Error 2

 make[1]: *** [Makefile:1729: kernel] Error 2

- I am not sure it my answers when executing the $make oldconfig were the
correct ones and/or can be related to these problems
- Also, the checks/unchecks in the kernel menu ($menuconfig) are not
exactly like the ones on those instructions since there are items that do
not appear or are enabled/embedded by default and cannot be unselected


More information about the Xenomai mailing list