Skip to content
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

Closed
luhaoling opened this issue Sep 26, 2023 · 8 comments
Closed

Compile Error: Failed to obtain the number of cups #1135

luhaoling opened this issue Sep 26, 2023 · 8 comments
Assignees
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@luhaoling
Copy link
Contributor

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

```console

$ {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

</details>


### Cloud provider

<details>
</details>


### OS version

<details>
```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

@luhaoling luhaoling added the bug Categorizes issue or PR as related to a bug. label Sep 26, 2023
@kubbot
Copy link
Contributor

kubbot commented Sep 26, 2023

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.

@cubxxw
Copy link
Contributor

cubxxw commented Sep 26, 2023

@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?

@luhaoling
Copy link
Contributor Author

@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.

@cubxxw
Copy link
Contributor

cubxxw commented Sep 27, 2023

@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

@kubbot
Copy link
Contributor

kubbot commented Dec 7, 2023

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.

@cubxxw
Copy link
Contributor

cubxxw commented Dec 7, 2023

restart

@kubbot
Copy link
Contributor

kubbot commented Feb 28, 2024

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.

@cubxxw
Copy link
Contributor

cubxxw commented Mar 3, 2024

please mark the issue as resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants