Hello, I just pulled from upstream main a couple minutes ago (commit a72ca1daac) and rebuilt the compiler with zig build and now on the following:
app [main!] { pf: platform "https://github.com/lukewilliamboswell/roc-platform-template-zig/releases/download/0.4/6XA8JLWhmG1FSgb8GxPjBs9cGrtRqopohR3KAHYo722z.tar.zst" }
import pf.Stdout
main! = |_arg| {
Stdout.line!("Hello world")
}
I'm getting the following panic:
thread 2047938 panic: incorrect alignment
???:?:?: 0x1065096c7 in _SortedArrayBuilder.SortedArrayBuilder(ModuleEnv.MethodKey,Ident.Idx).Serialized.deserialize (???)
???:?:?: 0x10631ed13 in _ModuleEnv.Serialized.deserialize (???)
???:?:?: 0x10631e94b in _builtin_loading.loadCompiledModule (???)
???:?:?: 0x10631efa3 in _BuiltinModules.BuiltinModules.init (???)
???:?:?: 0x106344433 in _main.setupSharedMemoryWithModuleEnv (???)
???:?:?: 0x1063511bb in _main.rocRun (???)
???:?:?: 0x1064b7b8b in _main.mainArgs (???)
???:?:?: 0x1064b90b3 in _main.main (???)
???:?:?: 0x1064b95eb in _main (???)
???:?:?: 0x181a1c273 in ??? (???)
???:?:?: 0x0 in ??? (???)
The compiler was working prior to me pulling and rebuilding. I actually tried roc check on the file above too and got the same thread panic/stack trace. Let me know if I should also open a GH Issue.
try zig build rebuild-builtins
also you might want to pull again too, as I just landed a (probably unrelated) bugfix :smile:
but I suspect that error just means that the builtins need to be rebuilt
Oh got that, will do and run the check again and if everything's good I'll just mark this as resolved.
Edwin Santos has marked this topic as resolved.
Last updated: Dec 21 2025 at 12:15 UTC