You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go build
[...]
# example.com
/opt/homebrew/Cellar/go/1.17.2/libexec/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
duplicate symbol '_get_temperature' in:
/var/folders/gq/hqkcdkyd60l1bl2_gtx3mwch0000gn/T/go-link-1488035936/000002.o
/var/folders/gq/hqkcdkyd60l1bl2_gtx3mwch0000gn/T/go-link-1488035936/000005.o
duplicate symbol '_open_smc' in:
/var/folders/gq/hqkcdkyd60l1bl2_gtx3mwch0000gn/T/go-link-1488035936/000002.o
/var/folders/gq/hqkcdkyd60l1bl2_gtx3mwch0000gn/T/go-link-1488035936/000005.o
duplicate symbol '_close_smc' in:
/var/folders/gq/hqkcdkyd60l1bl2_gtx3mwch0000gn/T/go-link-1488035936/000002.o
/var/folders/gq/hqkcdkyd60l1bl2_gtx3mwch0000gn/T/go-link-1488035936/000005.o
ld: 3 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Expected behavior
The program should build correctly.
Environment (please complete the following information):
Mac OS: [paste the result of sw_vers and uname -a
% sw_vers
ProductName: macOS
ProductVersion: 12.0.1
BuildVersion: 21A559
% uname -a
Darwin hostname.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000 arm64
% go version
go version go1.17.2 darwin/arm64
Additional context
Note that this conflict is not necessary limited to version 2 and version 3 of gopsutil. If any other package define the same C function (e.g. version 2 of gopsutil and github.com/lufia/iostat, which both define readdrivestat) a conflict also occur :(
For this reason, we might need to prefix the function no only with "v3" but some unique enough prefix. "gopsutil_v3_" ?
The text was updated successfully, but these errors were encountered:
Describe the bug
Same issue as #1136 but for other symbol.
I've the issue with open_smc, close_smc and get_temperature
To Reproduce
with go.mod:
Then build (go mod tidy may be required before):
Expected behavior
The program should build correctly.
Environment (please complete the following information):
sw_vers
anduname -a
Additional context
Note that this conflict is not necessary limited to version 2 and version 3 of gopsutil. If any other package define the same C function (e.g. version 2 of gopsutil and github.com/lufia/iostat, which both define readdrivestat) a conflict also occur :(
For this reason, we might need to prefix the function no only with "v3" but some unique enough prefix. "gopsutil_v3_" ?
The text was updated successfully, but these errors were encountered: