kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-6 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
when trying to compile the kernel appears this error
/usr/src/linux-git# fakeroot make-kpkg --jobs=4 --initrd --revision=4.6.0 --append-
exec make kpkg_version=13.018 -f /usr/share/
====== making target debian/
This is kernel package version 13.018.
test -d debian || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/
for file in ChangeLog Control Control.bin86 config templates.in rules; do \
cp -f /usr/share/
done
cp: cannot stat '/usr/share/
for dir in Config docs examples ruleset scripts pkg po; do \
cp -af /usr/share/
done
test -f debian/control || sed -e 's/=V/4.
-e 's/=D/4.6.0/g' -e 's/=A/amd64/g' \
-e 's/=SA//g' \
-e 's/=I//g' \
-e 's/=CV/4.6/g' \
-e 's/=M/Unknown Kernel Package Maintainer <email address hidden>/g' \
-e 's/=ST/linux/g' -e 's/=B/x86_64/g' \
-e 's/=R/initramfs
test -f debian/changelog || sed -e 's/=V/4.
-e 's/=D/4.6.0/g' -e 's/=A/amd64/g' \
-e 's/=ST/linux/g' -e 's/=B/x86_64/g' \
-e 's/=M/Unknown Kernel Package Maintainer <email address hidden>/g' \
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/
make[1]: Entering directory '/usr/src/
====== making target debian/
make EXTRAVERSION=
make[2]: Entering directory '/usr/src/
HOSTCC scripts/basic/bin2c
scripts/
#
# configuration written to .config
#
make[2]: Leaving directory '/usr/src/
make EXTRAVERSION=
make[2]: Entering directory '/usr/src/
arch/x86/
Makefile:667: Cannot use CONFIG_
scripts/
arch/x86/
Makefile:667: Cannot use CONFIG_
SYSTBL arch/x86/
SYSHDR arch/x86/
SYSHDR arch/x86/
SYSTBL arch/x86/
SYSHDR arch/x86/
SYSHDR arch/x86/
SYSHDR arch/x86/
HOSTCC arch/x86/
HOSTCC arch/x86/
HOSTCC arch/x86/
HOSTLD arch/x86/
CHK include/
UPD include/
WRAP arch/x86/
WRAP arch/x86/
WRAP arch/x86/
WRAP arch/x86/
WRAP arch/x86/
WRAP arch/x86/
CHK include/
UPD include/
CHK include/
UPD include/
CC kernel/bounds.s
kernel/
/*
Kbuild:44: recipe for target 'kernel/bounds.s' failed
make[3]: *** [kernel/bounds.s] Error 1
Makefile:1005: recipe for target 'prepare0' failed
make[2]: *** [prepare0] Error 2
make[2]: Leaving directory '/usr/src/
debian/
make[1]: *** [debian/
make[1]: Leaving directory '/usr/src/
/usr/share/
make: *** [debian/
Failed to create a ./debian directory: No such file or directory at /usr/bin/make-kpkg line 970.
******************
https:/
gcc-6 is still working from here
pie is enabled by default now, see yakkety yak archive opening email.
build with -no-pie.