← Back to team overview

kernel-packages team mailing list archive

[Bug 1529917] Re: mainline kernel fails to install in trusty


Upon further inspection, it seems that fstack-protector-strong was only
introduced in gcc 4.9 while 4.8 is still the default for trusty. Thus, I
believe the way to fix this problem would be to depend on gcc 4.9 and
make some changes to the build system/dkms to force it to use gcc 4.9
instead of the default 4.8.  How can this be done, I wonder?

** Changed in: linux (Ubuntu)
       Status: Incomplete => Confirmed

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  mainline kernel fails to install in trusty

Status in linux package in Ubuntu:

Bug description:
  Today's mainline kernel fails to install in Ubuntu Trusty.

  $ sudo dpkg -i linux-headers-4.4.0-999-generic_4.4.0-999.201512282100_i386.deb linux-headers-4.4.0-999_4.4.0-999.201512282100_all.deb linux-image-4.4.0-999-generic_4.4.0-999.201512282100_i386.deb
  update-initramfs: deferring update (hook will be called later)
  Failed to symbolic-link boot/initrd.img-4.4.0-999-generic to initrd.img:File exists at /var/lib/dpkg/info/linux-image-4.4.0-999-generic.postinst line 629.
  dpkg: error processing package linux-image-4.4.0-999-generic (--install):
   subprocess installed post-installation script returned error exit status 17
  Setting up linux-headers-4.4.0-999-generic (4.4.0-999.201512282100) ...
  Examining /etc/kernel/header_postinst.d.
  run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-999-generic /boot/vmlinuz-4.4.0-999-generic
  ERROR (dkms apport): kernel package linux-headers-4.4.0-999-generic is not supported
  Error! Bad return status for module build on kernel: 4.4.0-999-generic (i686)
  Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.
  Errors were encountered while processing:

  $ cat /var/lib/dkms/tp-smapi/0.41/build/make.log
  DKMS make.log for tp-smapi-0.41 for kernel 4.4.0-999-generic (i686)
  Wed Dec 30 01:45:40 PHT 2015
  make: Entering directory `/usr/src/linux-headers-4.4.0-999-generic'
  Makefile:660: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
    LD      /var/lib/dkms/tp-smapi/0.41/build/built-in.o
    CC [M]  /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o
  gcc: error: unrecognized command line option ‘-fstack-protector-strong’
  make[1]: *** [/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o] Error 1
  make: *** [_module_/var/lib/dkms/tp-smapi/0.41/build] Error 2
  make: Leaving directory `/usr/src/linux-headers-4.4.0-999-generic'

To manage notifications about this bug go to: