go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

goctl rpc Error: assertion failed [thread_starts_interval.has_value()]

Open dongzl opened this issue 6 months ago • 5 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior, if applicable:

  1. The code is

    goctl rpc new demo
    
  2. The error is

    Error: assertion failed [thread_starts_interval.has_value()]: __thread_starts section missing
    

(RebaseRuntimeMachO.cpp:191 rebase_image)

Usage: goctl rpc new [flags]

Flags: --branch string The branch of the remote repo, it does work with --remote -c, --client Whether to generate rpc client (default true) -h, --help help for new --home string The goctl home path of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority --idea For idea plugin [optional] --remote string The remote git repo of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority The git repo directory must be consistent with the https://github.com/zeromicro/go-zero-template directory structure --style string The file naming format, see [https://github.com/zeromicro/go-zero/blob/master/tools/goctl/config/readme.md] (default "gozero") -v, --verbose Enable log output

assertion failed [thread_starts_interval.has_value()]: __thread_starts section missing (RebaseRuntimeMachO.cpp:191 rebase_image)


**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environments (please complete the following information):**
- OS: [e.g. Linux]   MacOS  M4
- go-zero version [e.g. 1.2.1] 
- goctl version [e.g. 1.2.1, optional]  goctl version 1.8.3 darwin/arm64

**More description**
Add any other context about the problem here.

dongzl avatar May 23 '25 12:05 dongzl

The error is due to a binary compatibility issue, not a bug in your Go code or goctl usage. Reinstall or rebuild goctl for your Mac (arm64) to resolve the problem.

Sama6717 avatar May 23 '25 15:05 Sama6717

The error is due to a binary compatibility issue, not a bug in your Go code or goctl usage. Reinstall or rebuild goctl for your Mac (arm64) to resolve the problem.

Thanks for your reply, but how to Reinstall or rebuild goctl for your Mac (arm64) ?

dongzl avatar May 24 '25 05:05 dongzl

go install github.com/zeromicro/go-zero/tools/goctl@master

or

go install github.com/zeromicro/go-zero/tools/goctl@latest

kevwan avatar May 24 '25 08:05 kevwan

Closing, since it's not related to an issue in go-zero.

Reopen it if necessary.

kevwan avatar May 25 '25 13:05 kevwan

go install github.com/zeromicro/go-zero/tools/goctl@master

or

go install github.com/zeromicro/go-zero/tools/goctl@latest

This operation does not solve the problem. It is not appropriate to close the issue without solving the problem.

dongzl avatar May 26 '25 01:05 dongzl