go-zero
go-zero copied to clipboard
goctl rpc Error: assertion failed [thread_starts_interval.has_value()]
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior, if applicable:
-
The code is
goctl rpc new demo -
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.
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.
The error is due to a binary compatibility issue, not a bug in your Go code or goctl usage. Reinstall or rebuild
goctlfor your Mac (arm64) to resolve the problem.
Thanks for your reply, but how to Reinstall or rebuild goctl for your Mac (arm64) ?
go install github.com/zeromicro/go-zero/tools/goctl@master
or
go install github.com/zeromicro/go-zero/tools/goctl@latest
Closing, since it's not related to an issue in go-zero.
Reopen it if necessary.
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.