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

Environ not declared by package syscall #2432

Closed
inkeliz opened this issue Dec 28, 2021 · 3 comments
Closed

Environ not declared by package syscall #2432

inkeliz opened this issue Dec 28, 2021 · 3 comments

Comments

@inkeliz
Copy link

inkeliz commented Dec 28, 2021

I'm trying to test tinygo build -o wasm.wasm -target wasm . on tinygo version 0.21.0 windows/amd64 (using go version go1.17.1 and LLVM version 11.0.0), but gives:

# internal/syscall/execenv
C:\Program Files\Go\src\internal\syscall\execenv\execenv_default.go:19:17: Environ not declared by package syscall
@inkeliz
Copy link
Author

inkeliz commented Dec 28, 2021

That was cause by os.Exec, that was used on Windows and not proper set +build !js. However, I expect that os.Exec act as no-op.

@niaow
Copy link
Member

niaow commented Dec 28, 2021

Right now, TinyGo does not support os/exec at all yet. It is one of the more complex packages to support, since it depends on a lot of functionality which has not been implemented yet (e.g. concurrent I/O). It might be reasonable to add a not supported stub for now.

@niaow
Copy link
Member

niaow commented Dec 28, 2021

Related issue #632

@inkeliz inkeliz closed this as completed Dec 28, 2021
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

2 participants