运行kitex的demon出错(求各位帮忙)
跟着Kitex的官网走,kitex和thriftgo已安装完成
https://www.cloudwego.io/zh/docs/kitex/getting-started/
我的代码是放在GOPATH外的
按照方式一运行代码
终端输入go run .的时候,控制台直接报 overflows uintptr
,百度搜半天搜不出来相关的问题,已经困扰几天了,有没有佬能帮忙
# github.com/bytedance/gopkg/util/xxhash3
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash.go:78:26: prime64_1 (untyped int constant 11400714785074694791) overflows uintptr
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash.go:97:26: prime64_1 (untyped int constant 11400714785074694791) overflows uintptr
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash.go:124:24: prime64_1 (untyped int constant 11400714785074694791) overflows uintptr
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash128.go:115:29: prime64_1 (untyped int constant 11400714785074694791) overflows uintptr
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash128.go:142:76: prime64_2 (untyped int constant 14029467366897019727) overflows uintptr
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash128.go:149:31: prime64_1 (untyped int constant 11400714785074694791) overflows uintptr
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash128.go:190:82: prime64_2 (untyped int constant 14029467366897019727) overflows uintptr
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash128.go:202:27: prime64_1 (untyped int constant 11400714785074694791) overflows uintptr
..\..\..\字节\pkg\mod\github.com\bytedance\gopkg@v0.0.0-20220531084716-665b4f21126f\util\xxhash3\hash128.go:203:29: prime64_2 (untyped int constant 14029467366897019727) overflows uintptr
看错误提示关键词,uintptr是unsigned int类型,而
GO语言中int类型的大小是不确定的,与具体的平台有关系一般来说,int在32位系统中是4字节,在64位系统中是8字节。
所以,你换一个64位系统电脑试试,就可以解决了。
这应该也算是kitex的bug,没有考虑32位系统。可以提给社区。
望采纳哈。
作为字节的码农,我每天都跟kitex打交道,字节大部分服务端都是用kitex。加油继续学习吧!