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

duplicate symbol: slices.Grow[[]byte, byte] #688

Open
xushiwei opened this issue Aug 8, 2024 · 1 comment
Open

duplicate symbol: slices.Grow[[]byte, byte] #688

xushiwei opened this issue Aug 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xushiwei
Copy link
Member

xushiwei commented Aug 8, 2024

run https://github.com/goplus/llgo/tree/main/_cmptest/base64demo demo:

% llgo run .
ld64.lld: error: duplicate symbol: slices.Grow[[]byte, byte]
>>> defined in /var/folders/_z/6q67fkfd07n774pc3pyz012c0000gn/T/0ae69ea13417802e51de7386443fe692d6242f5f29368b663d4ce837d5c5d82e-d-ad154a.o
>>> defined in /var/folders/_z/6q67fkfd07n774pc3pyz012c0000gn/T/db100412221065447174adc79a4c58194f9599a04ca0f70183ce6cb56b66a96d-d-b4da80.o

ld64.lld: error: duplicate symbol: slices.Grow[[]byte, byte]
>>> defined in /var/folders/_z/6q67fkfd07n774pc3pyz012c0000gn/T/db100412221065447174adc79a4c58194f9599a04ca0f70183ce6cb56b66a96d-d-b4da80.o
>>> defined in /var/folders/_z/6q67fkfd07n774pc3pyz012c0000gn/T/95f598aed1aa3b334ce2a84f9d3ff8fc8fe931f26175f960b95a0e98e7d12059-d-b070fb.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@xushiwei xushiwei added the bug Something isn't working label Aug 8, 2024
@luoliwoshang
Copy link
Contributor

i can run it normally

llgo/_cmptest/base64demo on  llcppsigfetch/basic [$?] via 🐹 v1.20.4 
❯ llgo run .   
SGVsbG8sIOS4lueVjA==
Hello, 世界
"Hello, world!"
Hello Gopher!
(base) 
llgo/_cmptest/base64demo on  llcppsigfetch/basic [$?] via 🐹 v1.20.4 took 2s 
❯ go version      
go version go1.20.4 darwin/arm64
(base) 
llgo/_cmptest/base64demo on  llcppsigfetch/basic [$?] via 🐹 v1.20.4 
❯ uname -a              
Darwin zhangzhiyangdeMacBook-Pro.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:55 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8122 arm64
(base) 

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