Bugzilla – Bug 1205870
s390x: Kernel module fails to build due to missing object file
Last modified: 2022-12-29 06:46:55 UTC
The build of a kernel module fails on s390x using OBS. Building on other architectures succeeds. The error is: [ 1213s] ld: cannot find arch/s390/lib/expoline/expoline.o: No such file or directory [ 1213s] make[3]: *** [/usr/src/linux-6.0.8-1/scripts/Makefile.modfinal:59: /home/abuild/rpmbuild/BUILD/leancrypto-0.5.0/obj/default/linux_kernel/leancrypto.ko] Error 1 [ 1213s] make[2]: *** [/usr/src/linux-6.0.8-1/scripts/Makefile.modpost:140: __modpost] Error 2 [ 1213s] make[1]: *** [../../../linux-6.0.8-1/Makefile:1780: modules] Error 2 [ 1213s] make[1]: Leaving directory '/usr/src/linux-6.0.8-1-obj/s390x/default' See [1] for the complete build and error log. [1] https://build.opensuse.org/project/show/home:smuellerDD
I think the solution is found in the following patch: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1756/diffs?commit_id=d6074e34ae5027baedb474b9269173650171c0da