Errors installing kernel 4.7

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
wmh
Level 1
Level 1
Posts: 26
Joined: Tue Dec 29, 2015 1:43 am
Location: Brazil

Errors installing kernel 4.7

Post by wmh »

Hello,

I get these errors when I try to install kernel 4.7.040700 on linux mint 17.3 64bits cinnamon following the guide from (http://sourcedigit.com/20184-install-li ... ntu-16-04/):


Terminal

Code: Select all

sudo dpkg -i *.deb
Selecting previously unselected package linux-headers-4.7.0-040700.
(Reading database ... 229518 files and directories currently installed.)
Preparing to unpack linux-headers-4.7.0-040700_4.7.0-040700.201608021801_all.deb ...
Unpacking linux-headers-4.7.0-040700 (4.7.0-040700.201608021801) ...
Selecting previously unselected package linux-headers-4.7.0-040700-generic.
Preparing to unpack linux-headers-4.7.0-040700-generic_4.7.0-040700.201608021801_amd64.deb ...
Unpacking linux-headers-4.7.0-040700-generic (4.7.0-040700.201608021801) ...
Selecting previously unselected package linux-image-4.7.0-040700-generic.
Preparing to unpack linux-image-4.7.0-040700-generic_4.7.0-040700.201608021801_amd64.deb ...
Done.
Unpacking linux-image-4.7.0-040700-generic (4.7.0-040700.201608021801) ...
Setting up linux-headers-4.7.0-040700 (4.7.0-040700.201608021801) ...
Setting up linux-headers-4.7.0-040700-generic (4.7.0-040700.201608021801) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.7.0-040700-generic /boot/vmlinuz-4.7.0-040700-generic
Error! Bad return status for module build on kernel: 4.7.0-040700-generic (x86_64)
Consult /var/lib/dkms/fglrx/15.302/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.7.0-040700-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
Setting up linux-image-4.7.0-040700-generic (4.7.0-040700.201608021801) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.7.0-040700-generic /boot/vmlinuz-4.7.0-040700-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.7.0-040700-generic /boot/vmlinuz-4.7.0-040700-generic
Error! Bad return status for module build on kernel: 4.7.0-040700-generic (x86_64)
Consult /var/lib/dkms/fglrx/15.302/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.7.0-040700-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.7.0-040700-generic /boot/vmlinuz-4.7.0-040700-generic
update-initramfs: Generating /boot/initrd.img-4.7.0-040700-generic
Warning: No support for locale: en_US.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.7.0-040700-generic /boot/vmlinuz-4.7.0-040700-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.7.0-040700-generic /boot/vmlinuz-4.7.0-040700-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.7.0-040700-generic /boot/vmlinuz-4.7.0-040700-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.7.0-040700-generic
Found initrd image: /boot/initrd.img-4.7.0-040700-generic
Found linux image: /boot/vmlinuz-4.2.0-18-generic
Found initrd image: /boot/initrd.img-4.2.0-18-generic
Found linux image: /boot/vmlinuz-3.19.0-32-generic
Found initrd image: /boot/initrd.img-3.19.0-32-generic
Found linux image: /boot/vmlinuz-3.16.0-38-generic
Found initrd image: /boot/initrd.img-3.16.0-38-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
  No volume groups found
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
done
/var/lib/dkms/ndiswrapper/1.59/build/make.log

Code: Select all

DKMS make.log for ndiswrapper-1.59 for kernel 4.7.0-040700-generic (x86_64)
Wed Nov 23 17:46:52 BRST 2016
make: Entering directory `/usr/src/linux-headers-4.7.0-040700-generic'
Makefile:683: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
  LD      /var/lib/dkms/ndiswrapper/1.59/build/built-in.o
  MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/crt_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/hal_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ndis_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ntoskernel_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ntoskernel_io_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/rtl_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/usb_exports.h
  MKSTUBS /var/lib/dkms/ndiswrapper/1.59/build/win2lin_stubs.h
  CC [M]  /var/lib/dkms/ndiswrapper/1.59/build/crt.o
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
make[1]: *** [/var/lib/dkms/ndiswrapper/1.59/build/crt.o] Error 1
make: *** [_module_/var/lib/dkms/ndiswrapper/1.59/build] Error 2
make: Leaving directory `/usr/src/linux-headers-4.7.0-040700-generic'

/var/lib/dkms/fglrx/15.302/build/make.log

Code: Select all

DKMS make.log for fglrx-15.302 for kernel 4.7.0-040700-generic (x86_64)
Wed Nov 23 17:46:46 BRST 2016
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/4.7.0-040700-generic/build SUBDIRS=/var/lib/dkms/fglrx/15.302/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-4.7.0-040700-generic'
Makefile:683: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
  CC [M]  /var/lib/dkms/fglrx/15.302/build/2.6.x/firegl_public.o
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
make[2]: *** [/var/lib/dkms/fglrx/15.302/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/15.302/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-4.7.0-040700-generic'
make: *** [kmod_build] Error 2
build failed with return value 2

How can I fix them to be able to use the new kernel?

Thanks.
Mint 17.3 64bits - Cinnamon 2.8.8 - AMD R9 270

User avatar
richyrich
Level 19
Level 19
Posts: 9059
Joined: Mon May 04, 2009 8:31 pm

Re: Errors installing kernel 4.7

Post by richyrich »

If you really need that kernel, you will need to completely remove both your AMD fglrx drivers and ndiswrapper.
They are no longer compatible with the new kernel.

Laurent85
Level 16
Level 16
Posts: 6749
Joined: Tue May 26, 2015 10:11 am

Re: Errors installing kernel 4.7

Post by Laurent85 »

This kernel is not supported and it seems not compatible with fglrx graphics driver.

See officially supported kernels for installation :

Update Manager > View > Linux kernels

Notice you should only install a new kernel if you are confortable with system administration.
Image

wmh
Level 1
Level 1
Posts: 26
Joined: Tue Dec 29, 2015 1:43 am
Location: Brazil

Re: Errors installing kernel 4.7

Post by wmh »

Ok! Thank you both. I have read that 4.7 has improvements and make games run better in Linux. Is that true?

I know how to uninstall AMD fglrx drivers but not ndiswrapper. How do I uninstall it?

Everytime I try to install a new kernel it gives these errors and get into "fallback mode" when I log in, even those listed on update manager.

So the probable cause os these errors is the amd proprietary driver?
Laurent85 wrote:This kernel is not supported and it seems not compatible with fglrx graphics driver.

See officially supported kernels for installation :

Update Manager > View > Linux kernels

Notice you should only install a new kernel if you are confortable with system administration.
richyrich wrote:If you really need that kernel, you will need to completely remove both your AMD fglrx drivers and ndiswrapper.
They are no longer compatible with the new kernel.
Mint 17.3 64bits - Cinnamon 2.8.8 - AMD R9 270

User avatar
richyrich
Level 19
Level 19
Posts: 9059
Joined: Mon May 04, 2009 8:31 pm

Re: Errors installing kernel 4.7

Post by richyrich »

You DO realize that removing fglrx will make your games run much much worse don't you ? It is your graphics driver.
And ndiswrapper is used for your network drivers, removing this would cause you to lose your Internet !

No kernel upgrade is worth that . . :shock:

If you really want to upgrade your kernel, use Mint's Update Manager and install the latest 4.4 series (menu > view > linux kernels)
PS: please make sure you have performed a backup of all your important stuff prior to this.

Post Reply

Return to “Newbie Questions”