kernel-package should compile a kernel with -fno-stack-protector in edgy

Bug #52625 reported by Michael Bienia
2
Affects Status Importance Assigned to Milestone
kernel-package (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

gcc-4.1 in edgy has now -fstack-protector on by default. Today I tried to compile a kernel and failed. It looked like it couldn't find the stack protector functions / library.
I had to add -fno-stack-protector to the other flags to compile the kernel succesfully.
So either add -fno-stack-protector when building a kernel or gcc shouldn't use -fstack-protector on kernel builds (if it's possible)

Revision history for this message
Ben Collins (ben-collins) wrote :

kernel-package does not choose compile time options. This is the responsibility of the kernel. There is a patch in recent kernels that includes -fno-stack-protector, and the Ubuntu kernel itself supports this aswell.

To avoid it, install gcc-4.0, and set CC=gcc-4.0. Or add the flags manually to the kernel Makefile.

Changed in kernel-package:
status: Unconfirmed → Rejected
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.