oss4-dkms fails to install on armhf

Bug #1871887 reported by Balint Reczey
6
This bug affects 1 person
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://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-focal/focal/armhf/o/oss4/20200409_153053_073f6@/log.gz :
...
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/dkms/oss4/4.2-build2010/build/make.log for more information.
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/oss4/4.2-build2010/build/make.log
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/linux-headers-5.4.0-21-generic'
  CC [M] /var/lib/dkms/oss4/4.2-build2010/build/core/oss_core.o
gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together
make[1]: *** [scripts/Makefile.build:275: /var/lib/dkms/oss4/4.2-build2010/build/core/oss_core.o] Error 1
make: *** [Makefile:1719: /var/lib/dkms/oss4/4.2-build2010/build/core] Error 2
make: Leaving directory '/usr/src/linux-headers-5.4.0-21-generic'

The source of the wrong flag seems to be:
$ grep soft /usr/src/linux-headers-5.4.0-21/arch/arm/Makefile
KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm
...

Tags: focal
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: focal
Balint Reczey (rbalint)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.