-
Notifications
You must be signed in to change notification settings - Fork 952
"LLVM ERROR: Cannot select: t3: i16 = JumpTable" in CI on AVR target #2492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
AVR may have some dirty laundry: llvm/llvm-project#31494 (comment) |
Happened again in https://github.com/tinygo-org/tinygo/runs/4729218984, again at 2 minutes 16 seconds, line 413.
|
FWIW, I snuck a "cat /proc/cpuinfo" into the top of the apt-get install step in #2487, the pull request that fails half the time with this problem. On the first run, it said the cpu was a 2 core Xeon 8370C (so a small slice of a 32 core chip), and it did not hit this bug. |
Not anymore :) see https://reviews.llvm.org/D107853#3224989 My guess would be a concurrency issue, so happening only sometimes. If someone can reproduce this locally that would be a very big help towards fixing this issue (especially if I manage to reproduce this on my own laptop). |
I seem to be able to reproduce something similar locally on my mac with the command
on #2500, on a hex core macbook pro, using go version go1.17.6 and LLVM version 12.0.1 Log:
|
I'm preserved the failing commit as the tip of https://github.com/dkegel-fastly/tinygo/tree/dkegel-llvm12-error-2492 That commit seems to fail reliably locally, but only intermittently in CI. |
Here is example of CI fail https://github.com/tinygo-org/tinygo/runs/4774165553?check_suite_focus=true#step:17:415 |
I wonder if we could perhaps try to build LLVM with AddressSanitizer or ThreadSanitizer enabled? Not sure whether that works together with Go though. But those sanitizers might be able to find something. |
Or if this becomes reproducible on Linux, that would be awesome because then I can investigate this myself :) |
@aykevl @dkegel-fastly is this issue still valid? |
I haven't seen this issue in quite some time, so it's probably fixed. |
OK, in that case closing. Thank you! |
Got an ugly llvm crash in CI just now: https://github.com/tinygo-org/tinygo/runs/4722070252
Happened again in https://github.com/tinygo-org/tinygo/runs/4722481707
Seems to happen at about 2m10s into Test TinyGo; successful runs seem to take longer to get to the same point.
Here’s a good run (a retry of the previous one): https://github.com/tinygo-org/tinygo/runs/4722602927
No idea why it doesn't happen every time. Different software or hardware on different github ci nodes?
The text was updated successfully, but these errors were encountered: