[opensuse-support] dkms-acpi_call %posttrans script failed
Dear all, My openSUSE Tumbleweed installation keeps getting warning message like following when upgrade the system, ``` dkms-acpi_call-1.1.0-6.210.noarch.rpm %posttrans script failed (returned 10) ``` Does anyone know what is the status? Best regards, ZHX -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 06/07/18 11:18, H Zeng wrote:
Dear all,
My openSUSE Tumbleweed installation keeps getting warning message like following when upgrade the system, ``` dkms-acpi_call-1.1.0-6.210.noarch.rpm %posttrans script failed (returned 10) ``` Does anyone know what is the status?
Best regards, ZHX
Its hard to know, because atleast software.opensuse.org doesn't show this as an official package, but if I was to guess just by looking at the first unofficial package i picked on obs, which is using the %posttrans section to build a new kernel module with dkms i'd say that something in some part of the build is failing, this might give you more details, rpm -qi the package name should give you the release and version numbers. /usr/sbin/dkms build -m acpi_call -v %{version}-%{release} -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
On Friday, 6 July 2018 10:01:52 HKT Simon Lees wrote:
On 06/07/18 11:18, H Zeng wrote:
Dear all,
My openSUSE Tumbleweed installation keeps getting warning message like following when upgrade the system, ``` dkms-acpi_call-1.1.0-6.210.noarch.rpm %posttrans script failed (returned 10) ``` Does anyone know what is the status?
Best regards, ZHX
Thank you, Simon,
Its hard to know, because atleast software.opensuse.org doesn't show this as an official package, but if I was to guess just by looking at the first unofficial package i picked on obs, which is using the %posttrans section to build a new kernel module with dkms i'd say that something in some part of the build is failing, this might give you more details, rpm -qi the package name should give you the release and version numbers.
The package is `dkms-acpi_call` from a user repository named "revealed" (http://download.opensuse.org/repositories/home:/revealed/ openSUSE_Tumbleweed/) The detailed information is, ``` # rpm -qi dkms-acpi_call Name : dkms-acpi_call Version : 1.1.0 Release : 6.210 Architecture: noarch Install Date: Tue 03 Jul 2018 22:34:41 HKT Group : System/Kernel Size : 31969 License : GPL-3.0+ Signature : RSA/SHA256, Tue 03 Jul 2018 01:08:58 HKT, Key ID 27f8fd18648a2450 Source RPM : dkms-acpi_call-1.1.0-6.210.src.rpm Build Date : Tue 03 Jul 2018 01:08:49 HKT Build Host : cloud120 Relocations : (not relocatable) Vendor : The Bumblebee Project URL : https://github.com/mkottman/acpi_call Summary : Kernel module to call ACPI methods Description : A kernel module that enables you to call ACPI methods by writing the method name followed by arguments to /proc/acpi/call, for example to turn off discrete graphics card in a dual graphics environment (like NVIDIA Optimus). This version is intended for setting battery of ThinkPad notebook. tpacpi-bat supports ThinkPad T420(s)/T520/W520/X220 and newer models only. Distribution: home:revealed / openSUSE_Tumbleweed ```
/usr/sbin/dkms build -m acpi_call -v %{version}-%{release}
I am not sure what the last command you gave should look like. I got the following message, ``` # /usr/sbin/dkms build -m acpi_call -v 1.1.0-6.210 Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j4 KERNELRELEASE=4.17.3-1-default -C /lib/modules/4.17.3-1-default/build SUBDIRS=/var/lib/dkms/acpi_call/1.1.0-6.210/build modules...(bad exit status: 2) Error! Bad return status for module build on kernel: 4.17.3-1-default (x86_64) Consult /var/lib/dkms/acpi_call/1.1.0-6.210/build/make.log for more information. ``` Best regards, ZHX -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 2018-07-06 14:15, H Zeng wrote:
# /usr/sbin/dkms build -m acpi_call -v 1.1.0-6.210
Kernel preparation unnecessary for this kernel. Skipping...
Building module: cleaning build area... make -j4 KERNELRELEASE=4.17.3-1-default -C /lib/modules/4.17.3-1-default/build SUBDIRS=/var/lib/dkms/acpi_call/1.1.0-6.210/build modules...(bad exit status: 2) Error! Bad return status for module build on kernel: 4.17.3-1-default (x86_64) Consult /var/lib/dkms/acpi_call/1.1.0-6.210/build/make.log for more information. ```
Well, you should have a look at that log. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
On Friday, 6 July 2018 20:18:41 HKT Carlos E. R. wrote:
On 2018-07-06 14:15, H Zeng wrote:
# /usr/sbin/dkms build -m acpi_call -v 1.1.0-6.210
Kernel preparation unnecessary for this kernel. Skipping...
Building module: cleaning build area... make -j4 KERNELRELEASE=4.17.3-1-default -C /lib/modules/4.17.3-1-default/build SUBDIRS=/var/lib/dkms/acpi_call/1.1.0-6.210/build modules...(bad exit status: 2) Error! Bad return status for module build on kernel: 4.17.3-1-default (x86_64) Consult /var/lib/dkms/acpi_call/1.1.0-6.210/build/make.log for more information. ```
Well, you should have a look at that log. Here is the log,
# cat /var/lib/dkms/acpi_call/1.1.0-6.210/build/make.log
DKMS make.log for acpi_call-1.1.0-6.210 for kernel 4.17.3-1-default (x86_64)
Fri 6 Jul 20:14:04 HKT 2018
make: Entering directory '/usr/src/linux-4.17.3-1-obj/x86_64/default'
CC [M] /var/lib/dkms/acpi_call/1.1.0-6.210/build/acpi_call.o
In file included from /var/lib/dkms/acpi_call/1.1.0-6.210/build/acpi_call.c:
10:
/usr/src/linux-4.17.3-1/arch/x86/include/asm/uaccess.h: In function ‘set_fs’:
/usr/src/linux-4.17.3-1/arch/x86/include/asm/uaccess.h:32:9: error:
dereferencing pointer to incomplete type ‘struct task_struct’
current->thread.addr_limit = fs;
^~
/var/lib/dkms/acpi_call/1.1.0-6.210/build/acpi_call.c: In function
‘acpi_proc_write’:
/var/lib/dkms/acpi_call/1.1.0-6.210/build/acpi_call.c:279:9: error: implicit
declaration of function ‘copy_from_user’; did you mean ‘raw_copy_from_user’?
[-Werror=implicit-function-declaration]
if (copy_from_user( input, buff, len )) {
^~~~~~~~~~~~~~
raw_copy_from_user
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-4.17.3-1/scripts/Makefile.build:320: /var/lib/
dkms/acpi_call/1.1.0-6.210/build/acpi_call.o] Error 1
make[2]: *** [/usr/src/linux-4.17.3-1/Makefile:1585: _module_/var/lib/dkms/
acpi_call/1.1.0-6.210/build] Error 2
make[1]: *** [Makefile:146: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-4.17.3-1-obj/x86_64/default'
It looks like the function name is not right. Should I report it to the developer, such as opening an issue in the GitHub page? -- Best regards, ZHX -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
It looks like the function name is not right. Should I report it to the developer, such as opening an issue in the GitHub page?
That's what I would do. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Friday, 6 July 2018 22:04:25 HKT Mike Henry wrote:
It looks like the function name is not right. Should I report it to the developer, such as opening an issue in the GitHub page?
That's what I would do. Thanks, Mike :)
-- Best regards, ZHX -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
H Zeng
-
Mike Henry
-
Simon Lees