CPU you selected does not support x86-64 instruction set
轉(zhuǎn)載地址:https://blog.csdn.net/linuxheik/article/details/17525703
CPU you selected does not support x86-64 instruction set
? ? gcc編譯參數(shù)問(wèn)題1. 頭次編譯,makefile完全沒(méi)改,那么得到的錯(cuò)誤是:
CPU you selected does not support x86-64 instruction set
天地良心,這不是把64位支持打開(kāi)了嗎?后來(lái)才知道,需要修改makefile面
-march的值,比如這里我們需要改成-march=x86-64,于是就可以了。有的文檔
說(shuō)要改成m64,這個(gè)應(yīng)該是跟具體的系統(tǒng)有關(guān)吧。反正ubuntu 9.0.4上這么改
就沒(méi)問(wèn)題了。
[willor?
在Xeon 64位機(jī)器RHEL 5.3 上 用-march=i686時(shí)候,得到
error: CPU you selected does not support x86-64 instruction set
用-march=x86-64 結(jié)果可以編譯
是否還有別的更好的參數(shù)目前還不知道,]
總結(jié)
以上是生活随笔為你收集整理的CPU you selected does not support x86-64 instruction set的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 开源HTTP解析器---http-par
- 下一篇: Nginx——debug的使用