How to resolve duplicate symbol _gostream in: issue in osx

Hi i am getting following error while bulding a golang project

Any idea how to resolve this.

/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
duplicate symbol _gostream in:
/var/folders/l6/xygpqgrx4vb7fw29h5cl_dmh0000gq/T/go-link-593658806/000018.o
/var/folders/l6/xygpqgrx4vb7fw29h5cl_dmh0000gq/T/go-link-593658806/000028.o
duplicate symbol _gosource in:
/var/folders/l6/xygpqgrx4vb7fw29h5cl_dmh0000gq/T/go-link-593658806/000018.o
/var/folders/l6/xygpqgrx4vb7fw29h5cl_dmh0000gq/T/go-link-593658806/000028.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hello @gyaan I’m coming across a similar issue, did you find any hints on where it came from?
Thx
Charles

Ok i nailed it - FYI it was an issue with the notify library.

thanks for the update. so how did you fix that.

Hi, I had to update the github.com/rjeczalick/notify (go get -u github.com/rjeczalick/notify) and update it inside the vendor/ folder (in my case the project uses govendor, so it was govendor update github.com/rjeczalick/notify).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.