Skip to content

opengemini不能在go1.25.7下编译 #931

@cntpro

Description

@cntpro

Describe your question

在go1.25.7下编译,提示如下错误

[root@test openGemini]# python3 build.py --clean  --release
[INFO] init_logging: Writing error details to
[DEBUG] run_command: Executing command: git rev-parse --abbrev-ref HEAD
[DEBUG] run_command: Executing command: git log --pretty=format:'%h' -n 1
[DEBUG] run_command: Executing command: git describe --always --tags --abbrev=0
[INFO] print_banner:
                                  ______                        _             _
                                 .' ___  |                      (_)           (_)
  .--.   _ .--.   .---.  _ .--. / .'   \_|  .---.  _ .--..--.   __   _ .--.   __
/ .'`\ \[ '/'`\ \/ /__\[ `.-. || |   ____ / /__\[ `.-. .-. | [  | [ `.-. | [  |
| \__. | | \__/ || \__., | | | |\ `.___]  || \__., | | | | | |  | |  | | | |  | |
 '.__.'  | ;.__/  '.__.'[___||__]`._____.'  '.__.'[___||__||__][___][___||__][___]
        [__|

  Build Script

[DEBUG] run_command: Executing command: git log --pretty=format:'%h' -n 1
[DEBUG] run_command: Executing command: git rev-parse --abbrev-ref HEAD
[INFO] check_environment: Checking build environment...
[DEBUG] run_command: Executing command: go version
[INFO] check_environment: Using Go version: 1.25.7
[DEBUG] check_environment: GOPATH: /root/gowork
[DEBUG] check_environment: GOBIN: Not set
[DEBUG] check_environment: GOROOT: /root/go
[DEBUG] run_command: Executing command: git diff-files --ignore-submodules --
[INFO] build_targets: Building for linux/amd64...
[INFO] build_targets: Output directory: ./build/
[DEBUG] run_command: Executing command: git rev-parse --abbrev-ref HEAD
[DEBUG] run_command: Executing command: git rev-parse HEAD
[INFO] build_targets: Building ts-sql: GOOS=linux GOARCH=amd64 go build -mod=mod -o ./build/ts-sql -ldflags="-X github.com/openGemini/openGemini/app.Version=1.4.1 -X github.com/openGemini/openGemini/app.GitBranch=main -X github.com/openGemini/openGemini/app.GitCommit=6ebe73c187b5d6c7b62dc45c8cb507d055712990" ./app/ts-sql
[DEBUG] run_command: Executing command: GOOS=linux GOARCH=amd64 go build -mod=mod -o ./build/ts-sql -ldflags="-X github.com/openGemini/openGemini/app.Version=1.4.1 -X github.com/openGemini/openGemini/app.GitBranch=main -X github.com/openGemini/openGemini/app.GitCommit=6ebe73c187b5d6c7b62dc45c8cb507d055712990" ./app/ts-sql
[ERROR] run_command: Command failed: GOOS=linux GOARCH=amd64 go build -mod=mod -o ./build/ts-sql -ldflags="-X github.com/openGemini/openGemini/app.Version=1.4.1 -X github.com/openGemini/openGemini/app.GitBranch=main -X github.com/openGemini/openGemini/app.GitCommit=6ebe73c187b5d6c7b62dc45c8cb507d055712990" ./app/ts-sql, Error: # github.com/bytedance/sonic/internal/rt
../gowork/pkg/mod/github.com/bytedance/[email protected]/internal/rt/stubs.go:33:22: undefined: GoMapIterator
../gowork/pkg/mod/github.com/bytedance/[email protected]/internal/rt/stubs.go:36:54: undefined: GoMapIterator

[INFO] write_to_gobuild: Writing error details to gobuild.txt

是否不支持go1.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions