From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: =?UTF-8?Q?Jo=C3=A3o_Costa?= Date: Tue, 25 May 2021 19:03:51 +0100 Message-ID: Subject: error: implicit declarations while compiling (xenomai3.1+ubuntu20.04) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Hello, 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 running) -ipipe-core-5.4.77-x86-2.patch *I am following this instructions:* - https://www.programmersought.com/article/14375437246/ - 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: $makeolddefconfig it should be $make oldconfig *I am getting the following errors:* *after running* " CONCURRENCY_LEVEL=3D8 make-kpkg --rootcmd fakeroot --initrd --revision=3D1.0.0 kernel_image kernel_headers " *#1* > kernel/ipipe/core.c: In function =E2=80=98__ipipe_spin_lock_irqsave=E2=80= =99: > kernel/ipipe/core.c:547:9: error: implicit declaration of function > =E2=80=98arch_mangle_irq_bits=E2=80=99 [-Werror=3Dimplicit-function-decla= ration] > 547 | return arch_mangle_irq_bits(s, flags); > | ^~~~~~~~~~~~~~~~~~~~ > CC kernel/sched/cputime.o > *#2* > kernel/ipipe/core.c: In function =E2=80=98__ipipe_spin_unlock_irqrestore= =E2=80=99: > kernel/ipipe/core.c:574:7: error: implicit declaration of function > =E2=80=98arch_demangle_irq_bits=E2=80=99; did you mean =E2=80=98arch_earl= y_irq_init=E2=80=99? > [-Werror=3Dimplicit-function-declaration] > 574 | if (!arch_demangle_irq_bits(&x)) > | ^~~~~~~~~~~~~~~~~~~~~~ > | arch_early_irq_init > *#3* > arch/x86/kernel/process.c: In function =E2=80=98mwait_idle=E2=80=99: > arch/x86/kernel/process.c:699:4: error: implicit declaration of function > =E2=80=98__ipipe_halt_root=E2=80=99; did you mean =E2=80=98ipipe_test_roo= t=E2=80=99? > [-Werror=3Dimplicit-function-declaration] > 699 | __ipipe_halt_root(1); > | ^~~~~~~~~~~~~~~~~ > | ipipe_test_root cc1: some warnings being treated as errors > > make[3]: *** [scripts/Makefile.build:266: arch/x86/kernel/process.o] Erro= r > 1 > make[2]: *** [scripts/Makefile.build:500: arch/x86/kernel] Error 2 > make[1]: *** [Makefile:1729: arch/x86] Error 2 make[1]: *** [Makefile:1729: kernel] Error 2 *Notes:* - 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 Thanks