[GH-ISSUE #4221] 编译提示目录不存在,清大佬们看看 #3327

Closed
opened 2026-05-05 14:08:39 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @nomoneynolife on GitHub (May 16, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4221

Bug Description

os-archs=linux:amd64 windows:amd64 只生成这2个版本;

报错日志:
make -f Makefile.cross-compiles
Build linux-amd64...
client/admin_api.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2)
/home/work/go/pkg/mod/github.com/fatedier/golib@v0.5.0/log/output_rotatefile.go:9:2: package slices is not in GOROOT (/usr/local/go/src/slices)
pkg/util/xlog/xlog.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2)
pkg/config/legacy/client.go:21:2: package slices is not in GOROOT (/usr/local/go/src/slices)
Build linux-amd64 done
Build windows-amd64...
client/admin_api.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2)
/home/work/go/pkg/mod/github.com/fatedier/golib@v0.5.0/log/output_rotatefile.go:9:2: package slices is not in GOROOT (/usr/local/go/src/slices)
pkg/util/xlog/xlog.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2)
pkg/config/legacy/client.go:21:2: package slices is not in GOROOT (/usr/local/go/src/slices)
Build windows-amd64 done
mv: cannot stat ‘./release/frpc_windows_amd64’: No such file or directory
make: *** [app] Error 1

这是为啥呀。。。

frpc Version

0.58.0

frps Version

0.58.0

System Architecture

centos 7

Configurations

默认配置

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @nomoneynolife on GitHub (May 16, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4221 ### Bug Description os-archs=linux:amd64 windows:amd64 只生成这2个版本; 报错日志: make -f Makefile.cross-compiles Build linux-amd64... client/admin_api.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp) pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2) /home/work/go/pkg/mod/github.com/fatedier/golib@v0.5.0/log/output_rotatefile.go:9:2: package slices is not in GOROOT (/usr/local/go/src/slices) pkg/util/xlog/xlog.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp) pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2) pkg/config/legacy/client.go:21:2: package slices is not in GOROOT (/usr/local/go/src/slices) Build linux-amd64 done Build windows-amd64... client/admin_api.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp) pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2) /home/work/go/pkg/mod/github.com/fatedier/golib@v0.5.0/log/output_rotatefile.go:9:2: package slices is not in GOROOT (/usr/local/go/src/slices) pkg/util/xlog/xlog.go:18:2: package cmp is not in GOROOT (/usr/local/go/src/cmp) pkg/util/util/util.go:23:2: package math/rand/v2 is not in GOROOT (/usr/local/go/src/math/rand/v2) pkg/config/legacy/client.go:21:2: package slices is not in GOROOT (/usr/local/go/src/slices) Build windows-amd64 done **mv: cannot stat ‘./release/frpc_windows_amd64’: No such file or directory make: *** [app] Error 1** 这是为啥呀。。。 ### frpc Version 0.58.0 ### frps Version 0.58.0 ### System Architecture centos 7 ### Configurations 默认配置 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@nomoneynolife commented on GitHub (May 16, 2024):

不管了,一顿瞎操作,安装包,升级GO,不知道哪个的问题,反正可以了。。。。

<!-- gh-comment-id:2114378472 --> @nomoneynolife commented on GitHub (May 16, 2024): 不管了,一顿瞎操作,安装包,升级GO,不知道哪个的问题,反正可以了。。。。
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#3327
No description provided.