Skip to content

duplicate symbol: tinygo_task_exit with tasks scheduler #5652

Description

@mplx

Tinygo 0.42.0 using tasks scheduler gives me duplicate symbol: tinygo_task_exit:

$ cat test.go
package main
func main() {
    ch := make(chan int)
    go func() { ch <- 42 }()
    println(<-ch)
}

$ rm -rf ~/.cache/tinygo
$ tinygo build ./test.go

$ rm -rf ~/.cache/tinygo
$ tinygo build -scheduler=tasks ./test.go
ld.lld: error: duplicate symbol: tinygo_task_exit
>>> defined in /tmp/tinygo3096500607/main.o
>>> defined in /home/mplx/.cache/tinygo/obj-8b9a7a3546d6ca5565e8c0fd86559cbc5f571f6a08805a145512767d.bc

I hoped it was fixed by #5553 (comment) however this is still broken in dev too.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions