Compiling always seg faults

I don’t know if this is as Odin issue or not but I get a segmentation fault building any code. The thing that makes in stranger is that I’ll end up with a usable executable.

Any thoughts on troubleshooting this?

System Information

Odin Version: odin version dev-2025-03:acb578f18 (Built from source)
Operating System: Linux
Linux Distribution: OpenMandriva
Kernel: Linux 6.13.8-desktop-1omv2590
CPU: AMD 5955WX

Source to compile

package main

import "core:fmt"

main :: proc() {
	fmt.println("Hellope!")
}

Compilation and Result

[studebakerguy hellope]odin build .
While deleting: { i64, i64, i32, i32, i64, <{ %"runtime::Type_Info_Named", [24 x i8], i64 }> } %
Use still stuck around after Def is destroyed:@"__$ti-141" = private constant { i64, i64, i32, i32, i64, <{ %"runtime::Type_Info_Named", [24 x i8], i64 }> } { Segmentation fault (core dumped)

Running Resulting Executable

[studebakerguy hellope]./hellope 
Hellope!
[studebakerguy hellope]

I take it you are using a nightly build? I’d give it a try with a stable build, just to see if it makes a difference.

1 Like

Thanks for the reply.

I tried compiling several different releases and they all have the same issue. So, I went back and downloaded the latest binary release and it works perfectly fine. So, this appears to be related to either OpenMandiva or the one of the build tools.

This appears to be related to GitHub issue 3854.

Yep, currently Odin does not work with LLVM distributions that enable assertions.