-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile Error: Failed to obtain the number of cups #1135
Comments
Hello! Thank you for filing an issue. If this is a bug report, please include relevant logs to help us debug the problem. Join slack 🤖 to connect and communicate with our developers. |
@luhaoling Thank you very much for your detailed questions. I would also like to ask if you were successfully deployed using go1.19.3 Linux/amd64 in the end? |
@cubxxw I'm sorry to tell you that I still haven't solved this bug. I will try to use my computer to redeploy it during the National Day. |
@luhaoling Please come to slack and we can talk about this https://join.slack.com/t/openimsdk/shared_invite/zt-22720d66b-o_FvKxMTGXtcnnnHiMqe9Q Channel: #openim-dev |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
restart |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
please mark the issue as resolved |
What happened?
When I compiled the open-im-server,I met a error.I don't know where is the error and hope to get a solution method.
balabala@balabala-virtual-machine:~/open-im-server$ ./scripts/build-all-service.sh
sort
/usr/local/lib/go/src/sort/zsortfunc.go:10:6: insertionSort_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:10:6: other declaration of insertionSort_func
/usr/local/lib/go/src/sort/zsortfunc.go:20:6: siftDown_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:19:6: other declaration of siftDown_func
/usr/local/lib/go/src/sort/zsortfunc.go:38:6: heapSort_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:38:6: other declaration of heapSort_func
/usr/local/lib/go/src/sort/zsortfunc.go:329:6: swapRange_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:65:6: other declaration of swapRange_func
/usr/local/lib/go/src/sort/zsortfunc.go:335:6: stable_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:163:6: other declaration of stable_func
/usr/local/lib/go/src/sort/zsortfunc.go:378:6: symMerge_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:187:6: other declaration of symMerge_func
/usr/local/lib/go/src/sort/zsortfunc.go:464:6: rotate_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:252:6: other declaration of rotate_func
!!! Error in ./scripts/build-all-service.sh:34
Error in ./scripts/build-all-service.sh:34. 'cpu_count=$(go run .)' exited with status 2
Call stack:
1: ./scripts/build-all-service.sh:34 main(...)
Exiting with status 1
balabala@balabala-virtual-machine:~/open-im-server$ make tools
===========> Verifying golangci-lint is installed
===========> Installing The default installation path is /home/balabala/open-im-server/_output/tools/golangci-lint
sort
/usr/local/lib/go/src/sort/zsortfunc.go:10:6: insertionSort_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:10:6: other declaration of insertionSort_func
/usr/local/lib/go/src/sort/zsortfunc.go:20:6: siftDown_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:19:6: other declaration of siftDown_func
/usr/local/lib/go/src/sort/zsortfunc.go:38:6: heapSort_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:38:6: other declaration of heapSort_func
/usr/local/lib/go/src/sort/zsortfunc.go:329:6: swapRange_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:65:6: other declaration of swapRange_func
/usr/local/lib/go/src/sort/zsortfunc.go:335:6: stable_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:163:6: other declaration of stable_func
/usr/local/lib/go/src/sort/zsortfunc.go:378:6: symMerge_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:187:6: other declaration of symMerge_func
/usr/local/lib/go/src/sort/zsortfunc.go:464:6: rotate_func redeclared in this block
/usr/local/lib/go/src/sort/zfuncversion.go:252:6: other declaration of rotate_func
make[3]: *** [scripts/make-rules/tools.mk:67: install.golangci-lint] Error 2
make[2]: *** [scripts/make-rules/tools.mk:49: tools.install.golangci-lint] Error 2
make[1]: *** [scripts/make-rules/tools.mk:61: tools.verify.golangci-lint] Error 2
make: *** [Makefile:201: tools] Error 2
What did you expect to happen?
I hope get a method that will help me to deploy the open-im-server.
How can we reproduce it (as minimally and precisely as possible)?
Using the same version of ubuntu, golang, or docker may reproduce this error.
Anything else we need to know?
The deploy method is from: https://doc.rentsoft.cn/guides/gettingStarted/imSourceCodeDeployment
When I was using golang go1.18.3 linux/amd64, an error occurred indicating that golang 1.19 was required. Then I downloaded go1.19.3 linux/amd64.
version
$ {os} version
windows11
$ {vmware} version
17.0.0 build-20800274
$ {ubuntu} version
ubuntu-20.04.6-desktop-amd64
$ {minio} version
latest
${kafka} version
3.5.1
${zookeeper} version
3.8
${mysql} version
latest
${redis} version
7.3
${minio} version
latest
Install tools
The text was updated successfully, but these errors were encountered: