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

WASM compile problem #2

Closed
kwunyeung opened this issue Jul 14, 2019 · 0 comments
Closed

WASM compile problem #2

kwunyeung opened this issue Jul 14, 2019 · 0 comments

Comments

@kwunyeung
Copy link
Contributor

I have created a wasm branch to try to build some query functions in wasm but failed. Here are the compile errors.

$ GOOS=js GOARCH=wasm go build -tags="nofuse purego" -o desmos.wasm ./wasm/desmosw
# github.com/bgentry/speakeasy
../../go/pkg/mod/github.com/bgentry/speakeasy@v0.1.0/speakeasy.go:23:18: undefined: getPassword
# github.com/go-kit/kit/log/term
../../go/pkg/mod/github.com/go-kit/kit@v0.8.0/log/term/term.go:14:6: undefined: IsTerminal
# github.com/spf13/viper
../../go/pkg/mod/github.com/spf13/viper@v1.3.2/viper.go:286:19: undefined: fsnotify.NewWatcher
../../go/pkg/mod/github.com/spf13/viper@v1.3.2/viper.go:307:20: select case must be receive, send or assign recv
../../go/pkg/mod/github.com/spf13/viper@v1.3.2/viper.go:334:18: select case must be receive, send or assign recv
# github.com/syndtr/goleveldb/leveldb/storage
../../go/pkg/mod/github.com/syndtr/goleveldb@v1.0.0/leveldb/storage/file_storage.go:107:16: undefined: newFileLock
../../go/pkg/mod/github.com/syndtr/goleveldb@v1.0.0/leveldb/storage/file_storage.go:192:3: undefined: rename
../../go/pkg/mod/github.com/syndtr/goleveldb@v1.0.0/leveldb/storage/file_storage.go:267:12: undefined: rename
../../go/pkg/mod/github.com/syndtr/goleveldb@v1.0.0/leveldb/storage/file_storage.go:272:12: undefined: syncDir
../../go/pkg/mod/github.com/syndtr/goleveldb@v1.0.0/leveldb/storage/file_storage.go:555:9: undefined: rename
../../go/pkg/mod/github.com/syndtr/goleveldb@v1.0.0/leveldb/storage/file_storage.go:591:13: undefined: syncDir

I believe there are some OS specific dependency which it cannot find those function when the GOARCH is targeted to wasm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant