Skip to content

when building compiler-rt: "undefined symbol: main" #9

Open
@KernelDeimos

Description

I'm working on a project where this musl fork would be very helpful, since it includes what's necessary to target WASM without adding anything additional.

When I try to build compiler-rt I get this error:

wasm-ld: error: /opt/puter/musl/lib/crt1.o: undefined symbol: main

I've also tried adding main to wasm.syms which actually worked and I compiled compiler-rt, and then an example program but my output .wasm file didn't work. (going in an infinite loop? Probably _start calling _start or something because my hacky fix didn't make any sense)

I think I'm missing an important step

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