问题描述
在尝试使用gcc编译一个64位的Linux内核,我看到了以下错误:
While trying to compile a 64 bit linux kernel using gcc, I see thefollowing error :
内核/ bounds.c:1:错误:code模式内核不支持32位模式
内核/ bounds.c:1:对不起,没有实现:64位模式不编译
kernel/bounds.c:1: error: code model ‘kernel’ not supported in the 32bit mode
kernel/bounds.c:1: sorry, unimplemented: 64-bit mode not compiled in
这是什么的gcc -v 报告:
使用内置的规格。
目标:i586系统 - 红帽Linux的
配置有:../configure - preFIX = / USR --mandir =的/ usr / share / man中 -INFODIR =的/ usr /共享/信息--with-bugurl = http://bugzilla.redhat.com/ Bugzilla的--enable-引导--enable-共享--enable-线程= POSIX -启用检查=发行--with-系统的zlib --enable -__ cxa_atexit -禁用-libunwind-异常--enable-语言= C,C ++,objc,OBJ-C ++,JAVA,FORTRAN,ADA --enable-java的AWT = GTK - 禁用DSSI --enable-插件--with-java的HOME = / usr / lib中/ JVM / Java的-1.5.0-GCJ-1.5.0.0 / JRE -使-libgcj里,多文件--enable-java的维护者模式--with-ECJ-JAR = /USR /股/的Java / Eclipse的ecj.jar - 禁用libjava-multilib的--with-PPL -与-cloog --with调=通用--with拱= i586系统--build = i586系统,redhat-Linux的
线程模型:POSIX
gcc版本4.4.1 20090725(红帽4.4.1-2)(GCC)
This is what gcc -v reports :
Using built-in specs.
Target: i586-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i586 --build=i586-redhat-linux
Thread model: posix
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
我思念的东西在我的内核make命令行?或者是系统上的GCC present不支持64位编辑?
Am i missing something on my kernel make command line ?Or is it the gcc present on the system does not support 64 bitcompilation ?
推荐答案
您的编译器是32位的。
Your compiler is 32-bit.
这篇关于编译64位Linux内核与海湾合作委员会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!