-
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
make test fails with duplicate symbol #5425
Comments
Reported on open-telemetry/opentelemetry-collector/discussions/4018 (also happens on amd64). I think it makes more sense to keep this issue and close the other discussion since it seems to be a contrib-only problem. |
After some |
Can confirm this appears to be MacOS specific. I just ran the tests inside a Docker container on my mac and it appears to be fine:
|
It seems to be related to the https://github.com/shirou/gopsutil library used by the host metrics receiver. It can be avoided by setting |
I believe I found the root cause and opened a PR upstream to fix this (shirou/gopsutil#1137). It would be nice to get a second pair of eyes to test and review the patch (cc @codeboten) |
@mx-psi nice! I will give it a try later today. |
I seem to still get this issue, or something similar. Does anyone know if this is expected to already be fixed?
|
Unfortunately, I think #5570 reintroduced this issue (in a different way) because of these symbols. I was hoping the bump to gopsutil/v3 would fix this but it seems somewhere in our dependency tree we still use gopsutil v2. The fix upstream should be pretty similar to the one for the previous duplicate symbol but I wonder if we want to set |
Unfortunately disabling cgo for make test also is awkward ><
|
@anuraaga shirou/gopsutil#1176 may solve the issues on the symbols mentioned on your last message. Would you mind checking if the issue still happens to you on main, and, if so, if the issue is fixed by bumping gopsutil to v3.21.11? |
@mx-psi Thanks for the note, |
Describe the bug
Running
make test
fails on MacOS arm64 with a duplicate symbol error.Steps to reproduce
make test
What did you expect to see?
The tests passing.
What did you see instead?
The error pasted above.
What version did you use?
This has been happening for some time, but I tested it last w/
main
at version 1f91c27Environment
OS: MacOS arm64
Compiler(if manually compiled): go 1.17.1
The text was updated successfully, but these errors were encountered: