-
Notifications
You must be signed in to change notification settings - Fork 570
syscall build error on GOOS=darwin #1023
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
Comments
Could you please provide complete commands you execute and outputs you are receiving? Also, which GopherJS versions are you using (run |
same here on |
hi, of course. Full commands is here: My try.go file: `
` My js commands: `
` if I import the "github.com/ava-labs/avalanchego/utils/formatting" package my go file, I'm getting this error... But I extract it, all is fine. Also my gopherjs version: what should I do? thank you |
Thanks for the details. I am assuming you are building on a Mac, and unfortunately none of the current GopherJS maintainers have it, so it isn't very well tested with Macs. I'll try to see if I can fix this on the weekend. As a workaround, could you try building with |
Hey @nevkontakte thank you your support. I fixed with |
I'm glad it worked. I'll reopen the issue, though, since overriding GOOS shouldn't be necessary. |
Hi everyone,
when I import other than the gopherjs library to my go file, and when I ran the
"gopherjs build"
cmd, it throws errors likes those, but when I import only gopherjs it doesn't give me anything error:/usr/local/opt/go/libexec/src/syscall/syscall_darwin.go:118:1: //go:linkname local symbol "libc_getfsstat" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/syscall_darwin.go:151:1: //go:linkname local symbol "libc_setattrlist" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/syscall_darwin.go:279:1: //go:linkname local symbol "libc_fdopendir" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/syscall_darwin_amd64.go:59:1: //go:linkname local symbol "libc_sendfile" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/zsyscall_darwin_amd64.go:23:1: //go:linkname local symbol "libc_getgroups" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/zsyscall_darwin_amd64.go:38:1: //go:linkname local symbol "libc_setgroups" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/zsyscall_darwin_amd64.go:54:1: //go:linkname local symbol "libc_wait4" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/zsyscall_darwin_amd64.go:70:1: //go:linkname local symbol "libc_accept" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/zsyscall_darwin_amd64.go:85:1: //go:linkname local symbol "libc_bind" is not found in the current source file /usr/local/opt/go/libexec/src/syscall/zsyscall_darwin_amd64.go:100:1: //go:linkname local symbol "libc_connect" is not found in the current source file :0:0: too many errors
My go file :
`
`
why is this happening? how do I solve this error?
thank you
The text was updated successfully, but these errors were encountered: