LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 513|回复: 1

如何在686机器上构建GCC_TAGET=i586的gcc

[复制链接]
发表于 2011-2-27 16:59:51 | 显示全部楼层 |阅读模式
在VM6.5上安装Debian lenny,
#apt-get binutils
#apt-get gcc
#gcc -v

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
#cat /proc/cpuinfo
processor        : 0
vendor_id        : GenuineIntel
cpu family        : 6
model                : 23
model name        : Intel(R) Core(TM)2 Duo CPU     E7500  @ 2.93GHz
stepping        : 10
cpu MHz                : 2933.360
cache size        : 3072 KB
fdiv_bug        : no
hlt_bug                : no
f00f_bug        : no
coma_bug        : no
fpu                : yes
fpu_exception        : yes
cpuid level        : 13
wp                : yes
flags                : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc arch_perfmon pebs bts pni ssse3 cx16 sse4_1 lahf_lm
bogomips        : 6483.12
clflush size        : 64
power management:

processor        : 1
vendor_id        : GenuineIntel
cpu family        : 6
model                : 23
model name        : Intel(R) Core(TM)2 Duo CPU     E7500  @ 2.93GHz
stepping        : 10
cpu MHz                : 2933.360
cache size        : 3072 KB
fdiv_bug        : no
hlt_bug                : no
f00f_bug        : no
coma_bug        : no
fpu                : yes
fpu_exception        : yes
cpuid level        : 13
wp                : yes
flags                : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc arch_perfmon pebs bts pni ssse3 cx16 sse4_1 lahf_lm
bogomips        : 6034.40
clflush size        : 64
power management:

用此编译器编译的程序在586架构程序运行会出现这个错误:Illegal instruction,google,架构问题,
请教如何在VM上构建TARGET=i586-linux-gnu的gcc,
在这里找到http://hi.baidu.com/%B2%A4%B2%CB ... 372c5d09230222.html
for powerpc的,
http://wiki.osdev.org/GCC_Cross- ... 测试不可用。
请教各位高手帮忙下。
发表于 2011-2-27 20:18:49 | 显示全部楼层
找错方向了吧,我感觉你的586坏了的可能比较大
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表