Golang 编译MIPS helloworld程序出现 Illegal instruction 或者helloworld: applet not found 的解决
生活随笔
收集整理的這篇文章主要介紹了
Golang 编译MIPS helloworld程序出现 Illegal instruction 或者helloworld: applet not found 的解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
編譯helloworld程序在MIPS平臺上跑出現上述錯誤。
增加了軟浮點編譯選項就好了
GOMIPS=hardfloat: use floating point instructions (the default) GOMIPS=softfloat: use soft floating point完整的編譯命令:
#!/bin/sh export PATH=$PATH:/usr/local/go/bin:/opt/msdk-4.3.6-mips-EB-2.6.32-0.9.30.3-m32-120424/bin/ export GOPATH=`pwd`/../.. export GOROOT=/usr/local/go CC=mips-linux-gcc GOARCH=mips GOMIPS=softfloat CGO_ENABLED=1 /usr/local/go/bin/go build -ldflags="-w -s"?
總結
以上是生活随笔為你收集整理的Golang 编译MIPS helloworld程序出现 Illegal instruction 或者helloworld: applet not found 的解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 释放skb buffer指针引出的指针传
- 下一篇: 富瀚微和华为海思哪个好 海思仍占市场主要