Cross compiling for MUSL on Ubuntu 24.10 encountered undefined symbol: __ubsan_handle_type_mismatch_v1 #3779
-
|
The errors were: I compiled with zig I ran and I found I compiled successfully on |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
This should probably be an issue, not a discussion. I've also run into this issue specifically on GitHub runners ( |
Beta Was this translation helpful? Give feedback.
-
|
Same issue here, keep re-running it every day to see if bug is fixed. I am building on GitHub actions. Tried other ubuntu versions but same error. |
Beta Was this translation helpful? Give feedback.
-
Ah, yes this seems to be a common factor. I happened to be using Zig via As for why Zig fails, I have no leads. I did not pin my Zig version, so I'm guessing the latest version of the Zig toolchain caused the problem. If you can't compile without Zig, I'd bet pinning the version to one a few months ago will serve as a temporary solution. |
Beta Was this translation helpful? Give feedback.
-
|
I am building with zig version 0.13.0 and it is working. I am using cargo-lambda through |
Beta Was this translation helpful? Give feedback.
Ah, yes this seems to be a common factor. I happened to be using Zig via
cargo-lambdato compile for an AWS lambda function. Luckily, I'm not deploying to arm runners, so I can just use the Rust toolchain, which indeed solved my problem.As for why Zig fails, I have no leads.
ubsanis, as far as I understand, an undefined behavior sanitizer tool in the LLVM suite. I'm not sure why one ofsqlx's dependencies wants to link to theubsanruntime in the first place. I read that this was discouraged, probably in part for the trouble it's caused us here. Maybe it's a C/C++ dependency.I did not pin my Zig version, so I'm guessing the latest version of the Zig toolchain caus…