Skip to content

Build failures from removing the callMain workaround #1599

@deadprogram

Description

@deadprogram

PR #1592 had an unexpected side effect that is causing a few of the builds in the drivers repo to fail. I have confirmed that this is the commit that introduced the failure. Here is an example:

$ tinygo build -size short -o ./build/test.hex -target=itsybitsy-m0 ./examples/hcsr04/main.go
tinygo:ld.lld: error: undefined symbol: main.main
>>> referenced by scheduler_any.go:21 (/home/ron/Development/tinygo/tinygo/src/runtime/scheduler_any.go:21)
>>>               /tmp/tinygo581397949/main.o:(runtime.run$1$gowrapper)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo581397949/main: exit status 1

The hcsr04, ssd1331, and ssd1351 drivers are the three that fail with the same error as above.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions