LinuxSir.cn,穿越时空的Linuxsir!

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

关于march设置的郁闷问题……

[复制链接]
发表于 2007-7-23 18:07:07 | 显示全部楼层 |阅读模式
我的cpu是athlon x2 3600+,受不了64位下的软件,改到了x86。
在emerge -uDN world的时候要装gcc-3.3.6-r1,我的march设的是k8,然后出错,我看build.log,上面提示说没有k8这个march,然后我就改了i686,通过了。


真是奇怪的,设置k8 有错吗?如果有错其他包怎么编译得过?还是说gcc的版本太老了,那时候还没k8?:ask

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2007-7-23 19:48:34 | 显示全部楼层
楼主装这个就可以了 sys-libs/libstdc++-v3 . 还有,你的推测是对的,gcc3还没有k8的cflags,所以会出错,但是其实系统里不需要gcc3,只要装上我告诉你那个库就可以了 ps--我最近也遇到这个问题,从forums.gentoo.org找到的答案
回复 支持 反对

使用道具 举报

发表于 2007-7-28 01:34:30 | 显示全部楼层
gcc-3.3是不支持k8的. 以下摘自make.conf.example:
# CPU types supported by gcc version:
# (Higher versions include the targets from older ones,
# those listed on the same line are equivalent.)
# === >=gcc-2.95
# i386                        Original Intel's i386.
# i486                        Intel's i486. (No scheduling implemented.)
# i586, pentium        Intel Pentium with no MMX support.
# pentium-mmx        Intel PentiumMMX based on Pentium core with MMX.
# i686, pentiumpro        Intel PentiumPro.
# === >=gcc-3.2
# k6                        AMD K6 with MMX.
# k6-2, k6-3        AMD K6 with MMX and 3dNOW!.
# pentium2                Intel Pentium2 based on PentiumPro with MMX.
# pentium3                Intel Pentium3 based on PentiumPro with MMX and SSE.
# pentium4                Intel Pentium4 with MMX, SSE and SSE2.
# athlon, athlon-tbird        AMD Athlon with MMX, 3dNOW!, enhanced 3dNOW!
#                                and SSE prefetch.
# athlon-4, athlon-xp, athlon-mp        AMD Athlon with MMX, 3dNOW!, enhanced
#                                3dNOW! and full SSE.
# === >=gcc-3.3
# winchip-c6        IDT Winchip C6, i486 with MMX.
# winchip2                IDT Winchip2, i486 MMX and 3dNOW!.
# c3                        Via C3 with MMX and 3dNOW! (No scheduling implemented.)
# === >=gcc-4.1
# c3-2                        Via C3-2 with MMX and SSE. (No scheduling implemented.)
# pentium-m                Low power version of Intel Pentium3 with MMX, SSE, SSE2.
#                                Used by Centrino notebooks.
# prescott                Intel Pentium4 with MMX, SSE, SSE2 and SSE3.
# nocona                Intel Pentium4 with 64-bit extensions, MMX, SSE, SSE2
#                                and SSE3.
# k8, opteron, athlon64, athlon-fx        AMD K8 core based CPUs with x86-64.
#                                (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and
#                                64-bit extensions.)
#
# Gentoo Linux 1.2 and below used gcc-2.95*
# Gentoo Linux 1.4 and 2004.* had gcc-3.2
# Gentoo Linux 2005.1 through 2006.0 use gcc-3.3
# Gentoo Linux 2006.1 has gcc-4.1
回复 支持 反对

使用道具 举报

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

本版积分规则

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