** Changed in: linux (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1509193
Title: Surelock:GA2:Capiredfsp:HID_module file not compiling Status in linux package in Ubuntu: Invalid Bug description: Problem Description =============================================================== HID_module file not compiling The HID_module is a suite of files that will allow us to access the HID registers of a CPU. htx@capiredp01] [1m/usr/lpp/htx/bin# [0m ver cat: /proc/device-tree/openprom/model: No such file or directory ver 1.5.4.3 - OS, HTX, Firmware and Machine details OS: GNU/Linux OS Version: Ubuntu Wily Werewolf (development branch) \n \l Kernel Version: 4.2.0-432-5783a51+ HTX Version: htxubuntu-358 Host Name: capiredp01 Machine Serial No: 211AEFA Machine Type/Model: 8247-22L root@capiredp01:/mnt/test/tools# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu Wily Werewolf (development branch) Release: 15.10 Codename: wily GSA Location: /gsa/ausgsa/projects/s/sift/hst/trial_data/Apollo_TULET22L/Ubuntu/OP810/TER94756_capiredfsp/FAIL201510091752 Additional Information: =============================================================== Steps Taken 1) Installed HID_module.tgz file to get access to HID registers 2) Unpacked file 3) Changed directory to get access to compile.sh file 4) Ran compile.sh and compilation failed # wget http://ausgsa.ibm.com/gsa/ausgsa/home/f/d/fdelco/web/public/MPV_RAS/HID_module.tgz --2015-10-09 16:36:12-- http://ausgsa.ibm.com/gsa/ausgsa/home/f/d/fdelco/web/public/MPV_RAS/HID_module.tgz Resolving ausgsa.ibm.com (ausgsa.ibm.com)... 9.41.254.82, 9.41.254.37, 9.41.254.24, ... Connecting to ausgsa.ibm.com (ausgsa.ibm.com)|9.41.254.82|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1314 (1.3K) [application/x-tar] Saving to: ?HID_module.tgz? HID_module.tgz 100%[=====================>] 1.28K --.-KB/s in 0s 2015-10-09 16:36:12 (36.9 MB/s) - ?HID_module.tgz? saved [1314/1314] #tar -xvzf HID_module.tgz HID_module/ HID_module/Makefile HID_module/mod_hid.c HID_module/compile.sh # cd HID_module # ls compile.sh Makefile mod_hid.c # ./compile.sh Please make sure you have installed kernel-devel package. Otherwise kernel module compilation will fail. make: Entering directory '/usr/src/linux-headers-4.2.0-432-5783a51+' CC [M] /root/HID_module/mod_hid.o Building modules, stage 2. MODPOST 1 modules CC /root/HID_module/mod_hid.mod.o LD [M] /root/HID_module/mod_hid.ko ld: cannot find arch/powerpc/lib/crtsavres.o: No such file or directory scripts/Makefile.modpost:124: recipe for target '/root/HID_module/mod_hid.ko' failed make[1]: *** [/root/HID_module/mod_hid.ko] Error 1 Makefile:1389: recipe for target 'modules' failed make: *** [modules] Error 2 make: Leaving directory '/usr/src/linux-headers-4.2.0-432-5783a51+' # ls compile.sh mod_hid.c mod_hid.mod.o modules.order Makefile mod_hid.mod.c mod_hid.o Module.symvers Here is the expected output: ./compile.sh Please make sure you have installed kernel-devel package. Otherwise kernel module compilation will fail. make: Entering directory `/usr/src/kernels/3.18.21-350.el7_1.pkvm3_1_0.3200.1.ppc64le' CC [M] /root/HID_module/mod_hid.o Building modules, stage 2. MODPOST 1 modules CC /root/HID_module/mod_hid.mod.o LD [M] /root/HID_module/mod_hid.ko make: Leaving directory `/usr/src/kernels/3.18.21-350.el7_1.pkvm3_1_0.3200.1.ppc64le' .... .... .... == Comment: #3 - == To me it looks like packaging issue with linux-image/linux-header package. Out of all the installed linux-header, generic did have the crtsavres.o file, while it was missing in other case. root@capiredp01:/usr/src# ll total 32 drwxr-xr-x 8 root root 4096 Oct 4 18:50 ./ drwxr-xr-x 11 313396 928803 4096 Jun 25 03:56 ../ drwxr-xr-x 23 root root 4096 Sep 6 02:33 linux-headers-4.2.0-415-9a5f7d5+/ drwxr-xr-x 23 root root 4096 Sep 20 02:36 linux-headers-4.2.0-418-a436d20+/ drwxr-xr-x 23 root root 4096 Sep 27 12:32 linux-headers-4.2.0-428-ed62cef+/ drwxr-xr-x 23 root root 4096 Oct 4 18:52 linux-headers-4.2.0-432-5783a51+/ drwxr-xr-x 24 root root 4096 Sep 6 00:56 linux-headers-4.2.0-7/ drwxr-xr-x 7 root root 4096 Sep 6 00:56 linux-headers-4.2.0-7-generic/ root@capiredp01:/usr/src# root@capiredp01:~# find /usr/src/ -iname crtsavres.o /usr/src/linux-headers-4.2.0-7-generic/arch/powerpc/lib/crtsavres.o root@capiredp01:~# --------------- Recreating the issue: Again with ' linux-headers-4.2.0-16-generic' HID_module compiled successfully, however failed with ' linux-headers-4.2.0-16' with same error >> 'ld: cannot find arch/powerpc/lib/crtsavres.o: No such file or directory' root@ubuntu:~/Workspace/HID/HID_module# ./compile.sh Please make sure you have installed kernel-devel package. Otherwise kernel module compilation will fail. make: Entering directory '/usr/src/linux-headers-4.2.0-16-generic' CC [M] /root/Workspace/HID/HID_module/mod_hid.o Building modules, stage 2. MODPOST 1 modules CC /root/Workspace/HID/HID_module/mod_hid.mod.o LD [M] /root/Workspace/HID/HID_module/mod_hid.ko make: Leaving directory '/usr/src/linux-headers-4.2.0-16-generic' root@ubuntu:~/Workspace/HID/HID_module# insmod ./mod_hid.ko root@ubuntu:~/Workspace/HID/HID_module# lsmod | grep mod_hid mod_hid 4761 0 root@ubuntu:~/Workspace/HID/HID_module# uname -r 4.2.0-16-generic root@ubuntu:~/Workspace/HID/HID_module# root@ubuntu:~/Workspace/HID/HID_module# cat /etc/os-release NAME="Ubuntu" VERSION="15.10 (Wily Werewolf)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu Wily Werewolf (development branch)" VERSION_ID="15.10" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" root@ubuntu:~/Workspace/HID/HID_module# ls -l /usr/src total 8 drwxr-xr-x 24 root root 4096 Oct 20 04:28 linux-headers-4.2.0-16 drwxr-xr-x 7 root root 4096 Oct 20 04:28 linux-headers-4.2.0-16-generic root@ubuntu:~/Workspace/HID/HID_module# find /usr/src/ -iname crtsavres.o /usr/src/linux-headers-4.2.0-16-generic/arch/powerpc/lib/crtsavres.o To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1509193/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp