Hello, I tried to compile a Linux kernel in 64 bits mode. I try to migrate from an existing running Debian 32 bits distribution (stable sarge half converted to testing) to amd64 debian port. I installed gcc-4.0.2 from the Debian testing version. So I configured the linux kernel 2.6.13.2 and when I try to compile it with: $ make V=1 ARCH=x86_64 I got the error message: arch/x86_64/kernel/asm-offsets.c:1: error: code model 'kernel' not supported in the 32 bit mode Why does he make this error? Here the exact output: melanie:/usr/src/linux-2.6.13.2# make V=1 ARCH=x86_64 if test ! /usr/src/linux-2.6.13.2 -ef /usr/src/linux-2.6.13.2; then \ /bin/bash /usr/src/linux-2.6.13.2/scripts/mkmakefile \ /usr/src/linux-2.6.13.2 /usr/src/linux-2.6.13.2 2 6 \ > /usr/src/linux-2.6.13.2/Makefile; \ echo ' GEN /usr/src/linux-2.6.13.2/Makefile'; \ fi set -e; echo ' CHK include/linux/version.h'; mkdir -p include/linux/; if [ `echo -n "2.6.13.2" | wc -c ` -gt 64 ]; then echo '"2.6.13.2" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.13.2\"; echo \#define LINUX_VERSION_CODE `expr 2 \\* 65536 + 6 \\* 256 + 13`; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'; ) < /usr/src/linux-2.6.13.2/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else echo ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi CHK include/linux/version.h make -f scripts/Makefile.build obj=scripts/basic rm -rf .tmp_versions mkdir -p .tmp_versions make -f scripts/Makefile.build obj=. mkdir -p arch/x86_64/kernel/ gcc -Wp,-MD,arch/x86_64/kernel/.asm-offsets.s.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.0.1/include -D__KERNEL__ -Iinclude -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -DKBUILD_BASENAME=asm_offsets -DKBUILD_MODNAME=asm_offsets -S -o arch/x86_64/kernel/asm-offsets.s arch/x86_64/kernel/asm-offsets.c arch/x86_64/kernel/asm-offsets.c:1: error: code model 'kernel' not supported in the 32 bit mode make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Fehler 1 make: *** [prepare0] Fehler 2 melanie:/usr/src/linux-2.6.13.2# Please help me! -- Best regards, saf Archivum.info
Attachment:
signature.asc
Description: Digital signature