gcc fails to compile kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Compilation error messages after 'make': http://
output of 'make V=1': http://
Output of 'gcc -m64 -mcmodel=kernel -c -v -o /tmp/empty.o scripts/
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: gcc 4:5.3.1-1ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-30-generic x86_64
ApportVersion: 2.20.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Jul 20 19:21:33 2016
InstallationDate: Installed on 2016-07-11 (9 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: gcc-defaults
UpgradeStatus: Upgraded to yakkety on 2016-07-12 (8 days ago)
Thanks to the help of nicst on the kernelnewbies irc channel:
The error seems to come from the --enable- default- pie option gcc was compiled with.
This can be overcome by appending KCFLAGS=-fno-PIE to the make command