[PR #4367] [MERGED] bump templexxx/cpu version and add support for linux/loong64 #4971

Closed
opened 2026-05-05 14:52:14 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/4367
Author: @KatyushaScarlet
Created: 8/3/2024
Status: Merged
Merged: 8/6/2024
Merged by: @fatedier

Base: devHead: linux/loong64


📝 Commits (3)

📊 Changes

4 files changed (+5 additions, -4 deletions)

View changed files

📝 Makefile.cross-compiles (+1 -1)
📝 go.mod (+1 -1)
📝 go.sum (+2 -1)
📝 package.sh (+1 -1)

📄 Description

WHY

Loong64 has been officially supported since Go 1.19. The frp is a well-known and commonly used reverse proxy project, adding loong64 port for frp will enable frp to be widely used on the new architecture.

Result

  1. Bump templexxx/cpu from V0.1.0 to latest version fix below error on linux/loong64.
go version go1.22.5 linux/loong64
go fmt ./...
env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -tags frps -o bin/frps ./cmd/frps
# github.com/templexxx/cpu
../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:93:14: undefined array length CacheLineSize or missing type constraint
../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:105:14: undefined array length CacheLineSize or missing type constraint
../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:113:15: undefined array length CacheLineSize or missing type constraint
../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:138:15: undefined array length CacheLineSize or missing type constraint
../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:144:19: undefined array length CacheLineSize or missing type constraint
../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:161:19: undefined array length CacheLineSize or missing type constraint
make: *** [Makefile:32: frps] Error 1
  1. Add support for packing loong64 port by default.
go version go1.22.5 linux/loong64
go fmt ./...
env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -tags frps -o bin/frps ./cmd/frps
env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -tags frpc -o bin/frpc ./cmd/frpc
build version: 0.60.0
Build darwin-amd64...
Build darwin-amd64 done
Build darwin-arm64...
Build darwin-arm64 done
Build freebsd-amd64...
Build freebsd-amd64 done
Build linux-amd64...
Build linux-amd64 done
Build linux-arm (7)...
Build linux-arm (7) done
Build linux-arm (5)...
Build linux-arm (5) done
Build linux-arm64...
Build linux-arm64 done
Build windows-amd64...
Build windows-amd64 done
Build windows-arm64...
Build windows-arm64 done
Build linux-mips64...
Build linux-mips64 done
Build linux-mips64le...
Build linux-mips64le done
Build linux-mips (softfloat)...
Build linux-mips (softfloat) done
Build linux-mipsle (softfloat)...
Build linux-mipsle (softfloat) done
Build linux-riscv64...
Build linux-riscv64 done
Build linux-loong64...
Build linux-loong64 done
Build android-arm64...
Build android-arm64 done
  1. Tested on Loongson 3A6000, everything is fine.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/4367 **Author:** [@KatyushaScarlet](https://github.com/KatyushaScarlet) **Created:** 8/3/2024 **Status:** ✅ Merged **Merged:** 8/6/2024 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `linux/loong64` --- ### 📝 Commits (3) - [`5e826db`](https://github.com/fatedier/frp/commit/5e826db2b2edee923a9fc56c945259db0ac7f7b9) support linux/loong64 - [`7068b2e`](https://github.com/fatedier/frp/commit/7068b2e74c262d40e71f6f8b8fd316abca428ddc) bump cpu version - [`0829895`](https://github.com/fatedier/frp/commit/0829895ad1114579df8abfc8b60333a47552e144) Merge pull request #1 from KatyushaScarlet/dev ### 📊 Changes **4 files changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Makefile.cross-compiles` (+1 -1) 📝 `go.mod` (+1 -1) 📝 `go.sum` (+2 -1) 📝 `package.sh` (+1 -1) </details> ### 📄 Description ### WHY Loong64 has been officially supported since Go 1.19. The frp is a well-known and commonly used reverse proxy project, adding loong64 port for frp will enable frp to be widely used on the new architecture. ### Result 1. Bump templexxx/cpu from V0.1.0 to latest version fix below error on linux/loong64. ``` go version go1.22.5 linux/loong64 go fmt ./... env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -tags frps -o bin/frps ./cmd/frps # github.com/templexxx/cpu ../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:93:14: undefined array length CacheLineSize or missing type constraint ../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:105:14: undefined array length CacheLineSize or missing type constraint ../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:113:15: undefined array length CacheLineSize or missing type constraint ../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:138:15: undefined array length CacheLineSize or missing type constraint ../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:144:19: undefined array length CacheLineSize or missing type constraint ../../go/pkg/mod/github.com/templexxx/cpu@v0.1.0/cpu.go:161:19: undefined array length CacheLineSize or missing type constraint make: *** [Makefile:32: frps] Error 1 ``` 2. Add support for packing loong64 port by default. ``` go version go1.22.5 linux/loong64 go fmt ./... env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -tags frps -o bin/frps ./cmd/frps env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -tags frpc -o bin/frpc ./cmd/frpc build version: 0.60.0 Build darwin-amd64... Build darwin-amd64 done Build darwin-arm64... Build darwin-arm64 done Build freebsd-amd64... Build freebsd-amd64 done Build linux-amd64... Build linux-amd64 done Build linux-arm (7)... Build linux-arm (7) done Build linux-arm (5)... Build linux-arm (5) done Build linux-arm64... Build linux-arm64 done Build windows-amd64... Build windows-amd64 done Build windows-arm64... Build windows-arm64 done Build linux-mips64... Build linux-mips64 done Build linux-mips64le... Build linux-mips64le done Build linux-mips (softfloat)... Build linux-mips (softfloat) done Build linux-mipsle (softfloat)... Build linux-mipsle (softfloat) done Build linux-riscv64... Build linux-riscv64 done Build linux-loong64... Build linux-loong64 done Build android-arm64... Build android-arm64 done ``` 3. Tested on Loongson 3A6000, everything is fine. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:52:14 -06:00
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#4971
No description provided.