Description
Hey there!
I've been having some issues using goroutines for my raspberry pi pico. I am completely stuck from this bug. It seems there's an llvm problem compiling my code, and after some googling, I was unable to find anything related.
Here's a simplified version of my code that still produces the error: [https://gist.github.com/AcousticTypewriter/4c94db8053aa8f6e8cdc5e6b5b3f4c8c]
(In actuality, instead of a random number determining which goroutine is triggered, its based off of a button press)
Here's my command:
tinygo build -target=pico main.go
Here's the error:
invalid llvm.used member i32 ptrtoint (ptr @"main.elevatorYO$gowrapper" to i32) LLVM ERROR: Broken module found, compilation aborted! error: failed to link /tmp/tinygo2939992984/main: signal: aborted (core dumped)
I'm compiling using debian.
Any ideas? I'm not sure if this is a problem using multiple goroutines or if there's something else.
I'm relatively new to tinygo and golang, so any help would be appreciated.
Cheers!