Public bug reported:

[ Impact ]

 * Currently Ubuntu Linux kernel header packages use stock Makefile as
shipped by upstream kernel. During linux kernel package build however
HOSTCC and CC are typically overridden to use explicit complier version
$(DEB_HOST_GNU_TYPE)-gcc-12. This can lead to dkms module build failures
as despite all efforts to reuse matching gcc version out of .config,
various shell scripts / build systems / makefiles do not pass the CC
variable as a make variable to the end make call that is used to build
dkms modules. To avoid this, hardcode the correct compiler in the linux
headers package shipped Makefile. This is similar to the Makefile
includes that debian ships, albeit with less indirections.

[ Test Plan ]

 * adt-matrix for dkms modules should start to pass correctly

[ Where problems could occur ]

 * headers package for hwe kernels may demand a newer compiler, for
which runtime dependency does not exist. dkms package in jammy-updates
already has explicit dependency on gcc-12 for that reason. Installing
build-deps of the kernel package will install correct/required
compilers.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  Set explicit CC in the headers package

Status in linux package in Ubuntu:
  New

Bug description:
  [ Impact ]

   * Currently Ubuntu Linux kernel header packages use stock Makefile as
  shipped by upstream kernel. During linux kernel package build however
  HOSTCC and CC are typically overridden to use explicit complier
  version $(DEB_HOST_GNU_TYPE)-gcc-12. This can lead to dkms module
  build failures as despite all efforts to reuse matching gcc version
  out of .config, various shell scripts / build systems / makefiles do
  not pass the CC variable as a make variable to the end make call that
  is used to build dkms modules. To avoid this, hardcode the correct
  compiler in the linux headers package shipped Makefile. This is
  similar to the Makefile includes that debian ships, albeit with less
  indirections.

  [ Test Plan ]

   * adt-matrix for dkms modules should start to pass correctly

  [ Where problems could occur ]

   * headers package for hwe kernels may demand a newer compiler, for
  which runtime dependency does not exist. dkms package in jammy-updates
  already has explicit dependency on gcc-12 for that reason. Installing
  build-deps of the kernel package will install correct/required
  compilers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1999750/+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

Reply via email to