I am on $ uname -a Linux bldkrnl 4.7.0-1-amd64 #1 SMP Debian 4.7.8-1 (2016-10-19) x86_64 GNU/Linux
I am trying to build kernel 4.8.5 or 4.8.4 from kernel.org. I was able to get it building a few days ago. Seems the recent gcc version changes something. In following previous entries in this ticket, I have tried the following: scripts/config --disable CC_STACKPROTECTOR_STRONG sed -i 's/-std=gnu89$/-std=gnu89 -fno-PIE/g' Makefile sed -i 's/(CROSS_COMPILE)ld$/(CROSS_COMPILE)ld -no-pie/g' Makefile sed -i 's/(CROSS_COMPILE)gcc$/(CROSS_COMPILE)gcc -no-pie/g' Makefile And even trying with gcc-6.2.0-10: ii gcc-6 6.2.0-10 amd64 GNU C compiler I end up with: make[2]: Entering directory '/home/vagrant/linux-4.8.5' HOSTCC scripts/basic/fixdep /usr/bin/ld: /tmp/cc2xzDT0.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output How do I roll back to gcc-6.2.0-6? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.