[GH-ISSUE #245] 编译mips32服务端试出错 #171

Closed
opened 2026-05-05 11:54:35 -06:00 by gitea-mirror · 15 comments
Owner

Originally created by @gavin219 on GitHub (Feb 4, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/245

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

Originally created by @gavin219 on GitHub (Feb 4, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/245 src/utils/vhost/router.go:113: undefined: strings.Compare 请问如何解决 frpc客户端正常编译了 我在恩山发了帖子,也没有答复的。还请作者帮忙 http://www.right.com.cn/forum/thread-207072-1-1.html
Author
Owner

@fatedier commented on GitHub (Feb 5, 2017):

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

<!-- gh-comment-id:277521309 --> @fatedier commented on GitHub (Feb 5, 2017): Go 编译环境不正确,也可能是版本问题。
Author
Owner

@gavin219 commented on GitHub (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

<!-- gh-comment-id:277538437 --> @gavin219 commented on GitHub (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
Author
Owner

@lotc commented on GitHub (Feb 7, 2017):

请参考 #198

<!-- gh-comment-id:277919782 --> @lotc commented on GitHub (Feb 7, 2017): 请参考 #198
Author
Owner

@gavin219 commented on GitHub (Feb 8, 2017):

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

<!-- gh-comment-id:278281505 --> @gavin219 commented on GitHub (Feb 8, 2017): @lotc 使用gomini编译frps是出错的。但是frpc就没问题。貌似是go版本问题。 go1.8,go1.75编译出来运行就会“Illegal instruction”
Author
Owner

@fatedier commented on GitHub (Feb 8, 2017):

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

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

<!-- gh-comment-id:278323220 --> @fatedier commented on GitHub (Feb 8, 2017): @gavin219 go1.8 才开始支持 mips32,目前 1.8 还不是正式发布的版本。 mips 32位的 GOARCH 就是 mips,64位是 mips64。
Author
Owner

@gavin219 commented on GitHub (Feb 8, 2017):

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

<!-- gh-comment-id:278326533 --> @gavin219 commented on GitHub (Feb 8, 2017): @fatedier 等1.8正式版本……?1.4.2版本的编译的客户端就可以正常运行。看来是go版本问题?
Author
Owner

@fatedier commented on GitHub (Feb 8, 2017):

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

<!-- gh-comment-id:278335589 --> @fatedier commented on GitHub (Feb 8, 2017): @gavin219 这个可以给 golang 提 issue....
Author
Owner

@fatedier commented on GitHub (Feb 10, 2017):

https://github.com/golang/go/issues/18880

<!-- gh-comment-id:278903257 --> @fatedier commented on GitHub (Feb 10, 2017): https://github.com/golang/go/issues/18880
Author
Owner

@fatedier commented on GitHub (Feb 10, 2017):

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

<!-- gh-comment-id:278905713 --> @fatedier commented on GitHub (Feb 10, 2017): 不清楚如何在其他平台交叉编译的时候怎么配置这个 FPU。
Author
Owner

@gavin219 commented on GitHub (Feb 13, 2017):

原来如此……

<!-- gh-comment-id:279279434 --> @gavin219 commented on GitHub (Feb 13, 2017): 原来如此……
Author
Owner

@fatedier commented on GitHub (Feb 17, 2017):

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

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

<!-- gh-comment-id:280558155 --> @fatedier commented on GitHub (Feb 17, 2017): https://groups.google.com/d/msg/golang-nuts/DT_P9UPKHgI/SWG61VaODwAJ 看了下,go 官方团队后续还是会解决这个问题的。
Author
Owner

@gavin219 commented on GitHub (Feb 22, 2017):

只有期待了……

<!-- gh-comment-id:281594701 --> @gavin219 commented on GitHub (Feb 22, 2017): 只有期待了……
Author
Owner

@yijing1998 commented on GitHub (Jul 31, 2017):

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

<!-- gh-comment-id:319066601 --> @yijing1998 commented on GitHub (Jul 31, 2017): 可重新编译 mt7620 ramips 架构的lede固件,make kernel_menuconfig,在kernel type中选择mips fpu emulator。该固件可直接运行frp release v0.13.0。
Author
Owner

@IxsCN commented on GitHub (Nov 19, 2017):

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

<!-- gh-comment-id:345501501 --> @IxsCN commented on GitHub (Nov 19, 2017): 我编译了未开启 FPU emulator 也能使用的版本,现在只有 mipsle (MTK 762x)。 需要的可以试试 https://github.com/IxsCN/frpc_mipsle_noFPU
Author
Owner

@nwct commented on GitHub (Dec 7, 2017):

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

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

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

<!-- gh-comment-id:350021315 --> @nwct commented on GitHub (Dec 7, 2017): 我已经编译了0.13.0版本的mips32le的客户端和服务端,有需要的可以下载使用。 下载地址是:https://github.com/nwct/frpu/releases 编译过程中遇到过坑,基本上就是新版本go的依赖和老版本的依赖不兼容的问题 另外,go1.8版本编译出来的mipsle并不是mips32le这个架构的cpu能使用的 所以,现在mt7620a这种路由器应该使用mips32le版本的程序
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#171
No description provided.