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

build fails with duplicate symbol errors in Mac #6234

Closed
ananthmeka opened this issue Nov 11, 2021 · 1 comment
Closed

build fails with duplicate symbol errors in Mac #6234

ananthmeka opened this issue Nov 11, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ananthmeka
Copy link

ananthmeka commented Nov 11, 2021

Code cloned from opentelemetry-collector-contrib repository is failing while building in Mac
The build errors generated with make are :
duplicate symbol '_get_temperature' , duplicate symbol '_open_smc', duplicate symbol '_close_smc

Trace log of the build is provided below:

go test -race -timeout 300s --tags="" ./...
? github.com/open-telemetry/opentelemetry-collector-contrib/cmd/otelcontribcol [no test files]

#github.com/open-telemetry/opentelemetry-collector-contrib/internal/components.test
/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
duplicate symbol '_get_temperature' in:
/var/folders/bq/107tby_j7259rm4tgx7jgs2w0000gp/T/go-link-3596767389/000024.o
/var/folders/bq/107tby_j7259rm4tgx7jgs2w0000gp/T/go-link-3596767389/000031.o
duplicate symbol '_open_smc' in:
/var/folders/bq/107tby_j7259rm4tgx7jgs2w0000gp/T/go-link-3596767389/000024.o
/var/folders/bq/107tby_j7259rm4tgx7jgs2w0000gp/T/go-link-3596767389/000031.o
duplicate symbol '_close_smc' in:
/var/folders/bq/107tby_j7259rm4tgx7jgs2w0000gp/T/go-link-3596767389/000024.o
/var/folders/bq/107tby_j7259rm4tgx7jgs2w0000gp/T/go-link-3596767389/000031.o
ld: 3 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

FAIL github.com/open-telemetry/opentelemetry-collector-contrib/internal/components [build failed]

@ananthmeka ananthmeka added the bug Something isn't working label Nov 11, 2021
@cuichenli
Copy link
Contributor

duplicated to #5425 (comment)

this is an upstream issue.
shirou/gopsutil#1175

povilasv referenced this issue in coralogix/opentelemetry-collector-contrib Dec 19, 2022
Signed-off-by: Bogdan <bogdandrutu@gmail.com>

Signed-off-by: Bogdan <bogdandrutu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants