OBJTOOL Build error

John Aron john at aronetics.com
Thu Nov 24 13:48:08 EST 2022


Hello -

 

I have an idea of where to begin: our kernel code compiles and works on Red
Hat, CentOS, and Fedora. In Ubuntu 20.04, I have an error.

 

root at form:/home/john/thor-linux/Kernel/ubuntu20.04# make

rmmod: ERROR: Module thor is not currently loaded

make: [Makefile:7: all] Error 1 (ignored)

make[1]: Entering directory '/usr/src/linux-headers-5.4.0-131-generic'

  CC [M]  /home/john/thor-linux/Kernel/ubuntu22.04/thor.o

/home/john/thor-linux/Kernel/ubuntu22.04/thor.o: warning: objtool:
_Controller_process_response_map()+0x1b3:    unreachable instruction

  Building modules, stage 2.

  MODPOST 1 modules

  CC [M]  /home/john/thor-linux/Kernel/ubuntu22.04/thor.mod.o

  LD [M]  /home/john/thor-linux/Kernel/ubuntu22.04/thor.ko

make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-131-generic'

make[1]: Entering directory '/usr/src/linux-headers-5.4.0-131-generic'

  CLEAN   /home/john/thor-linux/Kernel/ubuntu22.04/Module.symvers

make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-131-generic'

#@sudo dmesg -C

#@sudo insmod /usr/local/etc/thor.ko

filename:       /usr/local/etc/thor.ko

version:        0.1

description:    THOR KMOD

author:         Aronetics

license:        GPL

srcversion:     BC856FA85DB2FEFD38A1B2A

depends:

retpoline:      Y

name:           thor

vermagic:       5.4.0-131-generic SMP mod_unload modversions

#@sudo dmesg

root at form:/home/john/thor-linux/Kernel/ubuntu20.04#
<mailto:root at form:/home/john/thor-linux/Kernel/ubuntu20.04#> 

 

Every 2.0s: tail -n30 /var/lib/dkms/thor/1.0.1/build/make.log

 

DKMS make.log for thor-1.0.1 for kernel 5.4.0-131-generic (x86_64)

Thu 24 Nov 2022 01:10:33 PM EST

make: Entering directory '/usr/src/linux-headers-5.4.0-131-generic'

  CC [M]  /var/lib/dkms/thor/1.0.1/build/thor.o

/var/lib/dkms/thor/1.0.1/build/thor.o: warning: objtool:
_Controller_process_response_map()+0x1b3: unreachable instruction

  Building modules, stage 2.

  MODPOST 1 modules

  CC [M]  /var/lib/dkms/thor/1.0.1/build/thor.mod.o

  LD [M]  /var/lib/dkms/thor/1.0.1/build/thor.ko

make: Leaving directory '/usr/src/linux-headers-5.4.0-131-generic'

 

Is this an error in objtool on Ubuntu within
/usr/src/linux-headers-5.4.0-${26-130}/tools/objtool ?

 

>From RHEL 8

 

[root at profile rhel8]# make

make[1]: Entering directory '/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64'

  CC [M]  /home/john/thor-linux/Kernel/rhel8/thor.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /home/john/thor-linux/Kernel/rhel8/thor.mod.o

  LD [M]  /home/john/thor-linux/Kernel/rhel8/thor.ko

make[1]: Leaving directory '/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64'

make[1]: Entering directory '/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64'

  CLEAN   /home/john/thor-linux/Kernel/rhel8/.tmp_versions

  CLEAN   /home/john/thor-linux/Kernel/rhel8/Module.symvers

make[1]: Leaving directory '/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64'

#@sudo dmesg -C

#@sudo insmod /usr/local/etc/thor.ko

filename:       /usr/local/etc/thor.ko

version:        0.1

description:    THOR KMOD

author:         Aronetics

license:        GPL

rhelversion:    8.6

srcversion:     FC77130B3C3461BF8DE20B6

depends:

name:           thor

vermagic:       4.18.0-372.26.1.el8_6.x86_64 SMP mod_unload modversions

#@sudo dmesg

[root at profile rhel8]#

 

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20221124/8461a120/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7097 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20221124/8461a120/attachment.p7s>


More information about the Kernelnewbies mailing list