Created attachment 433474 [details] Log of error produced while attempting kernel compile Gentoo Linux Genkernel; Version 3.4.52.3 Linux Kernel 4.4.6-gentoo for x86 Compiled using "# genkernel all" while having used: "# chroot /mnt/gentoo /bin/bash; source /etc/profile" earlier. error: CPU you selected does not support x86-64 instruction set ERROR: Failed to compile the "prepare" target... Compiled on 64bit Intel CPU Q6700 *(2007 release) Used a stage3-i686-20160503.tar.bz2 tarball. I chose x86 code base because I want to make LiveCD that will work on both x86 and AMD64 machines. I tried compiling with recommended 'CFLAGS="-O2 -march=native -pipe"' and also tried 'CFLAGS="-O2 -march=i386 -pipe"' Received the same error messages with both. /var/log/genkernel.log is attached.
Can you you please inject these into the genkernel x86/generated-config file and tell me if they solve the problem: CONFIG_64BIT=n CONFIG_X86_64=n CONFIG_X86=y Auto-detection is working against you here.
CONFIG_64BIT=n CONFIG_X86_64=n CONFIG_X86=y Yes, this solved the problem. Does the full, detailed kernel build solve this problem too? Thanks, for your help.
[master 8a78287] arch/x86/arch-config: bug #582318, explicitly set non-64bit so cross-compile works 1 file changed, 3 insertions(+)
*** Bug 595432 has been marked as a duplicate of this bug. ***