Compiling kernel modules fails, lacking packages?

Issues related to applications and software problems
Post Reply
odysseus
Posts: 47
Joined: 2014/09/14 16:55:22

Compiling kernel modules fails, lacking packages?

Post by odysseus » 2018/08/03 08:19:31

I get this error:

[root@macbook-air 4.17.11-1.el7.elrepo.x86_64]# make modules
make[1]: *** No rule to make target `arch/x86/entry/syscalls/syscall_32.tbl', needed by `arch/x86/include/generated/asm/syscalls_32.h'. Stop.
make: *** [archheaders] Error 2


I have these kernel packages installed:

kernel-ml-4.17.11-1.el7.elrepo.x86_64
abrt-addon-kerneloops-2.1.11-50.el7.centos.x86_64
kernel-ml-devel-4.17.11-1.el7.elrepo.x86_64
kernel-ml-tools-4.17.11-1.el7.elrepo.x86_64
kernel-debuginfo-4.9.75-204.el7.centos.x86_64
kernel-ml-headers-4.17.11-1.el7.elrepo.x86_64
kernel-ml-4.15.9-1.el7.elrepo.x86_64
kernel-debuginfo-common-x86_64-4.9.75-204.el7.centos.x86_64
kernel-ml-tools-libs-4.17.11-1.el7.elrepo.x86_64
kernel-ml-doc-4.17.11-1.el7.elrepo.noarch
kernel-ml-devel-4.15.9-1.el7.elrepo.x86_64
kernel-ml-tools-libs-devel-4.17.11-1.el7.elrepo.x86_64

Please help, because I need to build a module.

odysseus
Posts: 47
Joined: 2014/09/14 16:55:22

Re: Compiling kernel modules fails, lacking packages?

Post by odysseus » 2018/08/19 14:02:07

Anyone out there? Thanks again...

owl102
Posts: 323
Joined: 2014/06/10 19:13:41

Re: Compiling kernel modules fails, lacking packages?

Post by owl102 » 2018/08/19 14:43:29

I would expect that this file is part of the package kernel-ml-devel-4.17.11-1.el7.elrepo.x86_64, but I'm not familiar with the kernels from elrepo.

Could you please post the output of

Code: Select all

yum provides "*/arch/x86/entry/syscalls/syscall_32.tbl"
?

odysseus
Posts: 47
Joined: 2014/09/14 16:55:22

Re: Compiling kernel modules fails, lacking packages?

Post by odysseus » 2018/08/19 15:12:00

owl102 wrote:
2018/08/19 14:43:29

Could you please post the output of

Code: Select all

yum provides "*/arch/x86/entry/syscalls/syscall_32.tbl"
?
I get "No matches found." Bummer!

odysseus
Posts: 47
Joined: 2014/09/14 16:55:22

Re: Compiling kernel modules fails, lacking packages?

Post by odysseus » 2018/08/19 15:22:47

I have a suggestion to unpack the kernel.org source tarball and overwrite the elrepo-kernel package. Might work.

odysseus
Posts: 47
Joined: 2014/09/14 16:55:22

Re: Compiling kernel modules fails, lacking packages?

Post by odysseus » 2018/10/10 00:47:32

odysseus wrote:
2018/08/19 15:22:47
I have a suggestion to unpack the kernel.org source tarball and overwrite the elrepo-kernel package. Might work.
It didn't work. Now I get:

[root@macbook-air 4.15.9-1.el7.elrepo.x86_64]# make modules
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
DESCEND objtool
CC /usr/src/kernels/4.15.9-1.el7.elrepo.x86_64/tools/objtool/pager.o
pager.c: In function ‘pager_preexec’:
pager.c:36:12: error: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
select(1, &in, NULL, &in, NULL);
^~~ ~~~
cc1: all warnings being treated as errors
mv: cannot stat ‘/usr/src/kernels/4.15.9-1.el7.elrepo.x86_64/tools/objtool/.pager.o.tmp’: No such file or directory
make[4]: *** [/usr/src/kernels/4.15.9-1.el7.elrepo.x86_64/tools/objtool/pager.o] Error 1
make[3]: *** [/usr/src/kernels/4.15.9-1.el7.elrepo.x86_64/tools/objtool/libsubcmd-in.o] Error 2
make[2]: *** [/usr/src/kernels/4.15.9-1.el7.elrepo.x86_64/tools/objtool/libsubcmd.a] Error 2
make[1]: *** [objtool] Error 2
make: *** [tools/objtool] Error 2

Post Reply