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

tinygo build -gc none fails #4275

Open
pierrec opened this issue May 26, 2024 · 2 comments
Open

tinygo build -gc none fails #4275

pierrec opened this issue May 26, 2024 · 2 comments
Labels
docs Documentation needed

Comments

@pierrec
Copy link

pierrec commented May 26, 2024

tinygo version 0.31.2 darwin/amd64 (using go version go1.22.3 and LLVM version 17.0.1)

tinygo build -gc none
ld.lld: error: undefined symbol: _runtime.alloc
>>> referenced by task_stack.go:75 (/usr/local/Cellar/tinygo/0.31.2/src/internal/task/task_stack.go:75)
>>>               /tmp/lto.tmp:(symbol _internal/task.start+0x19)
>>> referenced by task_stack.go:113 (/usr/local/Cellar/tinygo/0.31.2/src/internal/task/task_stack.go:113)
>>>               /tmp/lto.tmp:(symbol _internal/task.start+0xa)
failed to run tool: ld.lld
error: failed to link /var/folders/lb/nhsppbxs5_v27pn_x3kf66wc0000gn/T/tinygo1324987751/main: exit status 1

Note it works fine if used in combination of -scheduler none

@dgryski
Copy link
Member

dgryski commented May 31, 2024

If you need a minimal garbage collector try -gc=leaking.

@aykevl
Copy link
Member

aykevl commented Jun 10, 2024

This is the intended behavior. And one more reason why we should probably just remove this option.

@deadprogram deadprogram added the docs Documentation needed label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation needed
Projects
None yet
Development

No branches or pull requests

4 participants