Skip to content

wasm-ld: error: lto.tmp: undefined symbol: internal/synctest.inBubble #5495

Description

@Darckfast

when build the code below for WASM using -opt=0 it returns error

TinyGo: 0.41.1 (with roundtrip fix)
Go: 1.24

//go:build js && wasm

package main

import (
        "net/http"
)

func main() {
        mux := http.NewServeMux()
        http.ListenAndServe(":8080", mux)
}

Error:

❯ GOOS=js GOARCH=wasm tinygo build -opt=0 -o app.wasm
wasm-ld: error: lto.tmp: undefined symbol: internal/synctest.inBubble

the others -opt work fine

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