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

-- 
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/1871887

Title:
  oss4-dkms fails to install on armhf

Status in linux package in Ubuntu:
  Incomplete
Status in oss4 package in Ubuntu:
  New

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
  ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1871887/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to