Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译mips32服务端试出错 #245

Closed
gavin219 opened this issue Feb 4, 2017 · 15 comments
Closed

编译mips32服务端试出错 #245

gavin219 opened this issue Feb 4, 2017 · 15 comments

Comments

@gavin219
Copy link

gavin219 commented Feb 4, 2017

src/utils/vhost/router.go:113: undefined: strings.Compare
请问如何解决
frpc客户端正常编译了
我在恩山发了帖子,也没有答复的。还请作者帮忙
http://www.right.com.cn/forum/thread-207072-1-1.html

@fatedier
Copy link
Owner

fatedier commented Feb 5, 2017

Go 编译环境不正确,也可能是版本问题。

@gavin219
Copy link
Author

gavin219 commented Feb 5, 2017

[root@6231924fb2f1 ~]# go version
go version go1.7.5 linux/amd64
[root@6231924fb2f1 frp]# export GOARCH=mips32
[root@6231924fb2f1 frp]# export GOOS=linux
[root@6231924fb2f1 frp]# go get -v github.com/docopt/docopt-go
github.com/docopt/docopt-go (download)
cmd/go: unsupported GOOS/GOARCH pair linux/mips32
如果是用1.4版本就不出这个错误,但是无法编译frps,只能编译frpc

@lotc
Copy link

lotc commented Feb 7, 2017

请参考 #198

@gavin219
Copy link
Author

gavin219 commented Feb 8, 2017

@lotc 使用gomini编译frps是出错的。但是frpc就没问题。貌似是go版本问题。 go1.8,go1.75编译出来运行就会“Illegal instruction”

@fatedier
Copy link
Owner

fatedier commented Feb 8, 2017

@gavin219 go1.8 才开始支持 mips32,目前 1.8 还不是正式发布的版本。

mips 32位的 GOARCH 就是 mips,64位是 mips64。

@gavin219
Copy link
Author

gavin219 commented Feb 8, 2017

@fatedier 等1.8正式版本……?1.4.2版本的编译的客户端就可以正常运行。看来是go版本问题?

@fatedier
Copy link
Owner

fatedier commented Feb 8, 2017

@gavin219 这个可以给 golang 提 issue....

@fatedier
Copy link
Owner

golang/go#18880

@fatedier
Copy link
Owner

不清楚如何在其他平台交叉编译的时候怎么配置这个 FPU。

@gavin219
Copy link
Author

原来如此……

@fatedier
Copy link
Owner

https://groups.google.com/d/msg/golang-nuts/DT_P9UPKHgI/SWG61VaODwAJ

看了下,go 官方团队后续还是会解决这个问题的。

@gavin219
Copy link
Author

只有期待了……

@yijing1998
Copy link

可重新编译 mt7620 ramips 架构的lede固件,make kernel_menuconfig,在kernel type中选择mips fpu emulator。该固件可直接运行frp release v0.13.0。

@IxsCN
Copy link

IxsCN commented Nov 19, 2017

我编译了未开启 FPU emulator 也能使用的版本,现在只有 mipsle (MTK 762x)。
需要的可以试试
https://github.com/IxsCN/frpc_mipsle_noFPU

@nwct
Copy link

nwct commented Dec 7, 2017

我已经编译了0.13.0版本的mips32le的客户端和服务端,有需要的可以下载使用。
下载地址是:https://github.com/nwct/frpu/releases

编译过程中遇到过坑,基本上就是新版本go的依赖和老版本的依赖不兼容的问题

另外,go1.8版本编译出来的mipsle并不是mips32le这个架构的cpu能使用的
所以,现在mt7620a这种路由器应该使用mips32le版本的程序

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants