oss4-dkms fails to install on armhf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
oss4 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
oss4 autopkgtest fails when building the dkms module:
https:/
...
Building initial module for 5.4.0-21-generic
Error! Bad return status for module build on kernel: 5.4.0-21-generic (armv7l)
Consult /var/lib/
dpkg: error processing package oss4-dkms (--configure):
installed oss4-dkms package post-installation script subprocess returned error exit status 10
...
Apparently it is caused by kernel Makefiles setting hard and soft float on the same gcc line (soft is wrong for armhf):
# cat /var/lib/
DKMS make.log for oss4-4.2-build2010 for kernel 5.4.0-21-generic (armv8l)
Thu Apr 9 17:01:04 UTC 2020
make: Entering directory '/usr/src/
CC [M] /var/lib/
gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together
make[1]: *** [scripts/
make: *** [Makefile:1719: /var/lib/
make: Leaving directory '/usr/src/
The source of the wrong flag seems to be:
$ grep soft /usr/src/
KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,
...
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1871887
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.