The compiler works fine without the -debug option, where it produces a binary i can run. But when i run it with -debug, eg "oding run . -debug" the compilation fails.
blezzing@think:~/git/odin-debug-sample$ ls
main.odin
blezzing@think:~/git/odin-debug-sample$ cat main.odin
package main
import "core:fmt"
main :: proc() {
fmt.println("Hello world")
}
blezzing@think:~/git/odin-debug-sample$ odin run .
Hello world
blezzing@think:~/git/odin-debug-sample$ odin run . -debug
LLVM Error:
class/union requires a filename
!103 = !DICompositeType(tag: DW_TAG_union_type, name: "union {Type_Info_Named, Type_Info_Integer, Type_Info_Rune, Type_Info_Float, Type_Info_Complex, Type_Info_Quaternion, Type_Info_String, Type_Info_Boolean, Type_Info_Any, Type_Info_Type_Id, Type_Info_Pointer, Type_Info_Multi_Pointer, Type_Info_Procedure, Type_Info_Array, Type_Info_Enumerated_Array, Type_Info_Dynamic_Array, Type_Info_Slice, Type_Info_Parameters, Type_Info_Struct, Type_Info_Union, Type_Info_Enum, Type_Info_Map, Type_Info_Bit_Set, Type_Info_Simd_Vector, Type_Info_Relative_Pointer, Type_Info_Relative_Multi_Pointer, Type_Info_Matrix, Type_Info_Soa_Pointer, Type_Info_Bit_Field}", size: 1024, align: 64, elements: !104)
class/union requires a filename
!3672 = !DICompositeType(tag: DW_TAG_union_type, name: "bit_set[Logger_Option]", size: 16, align: 16, elements: !3673)
class/union requires a filename
!6401 = !DICompositeType(tag: DW_TAG_union_type, name: "bit_set[Int_Flag]", size: 8, align: 8, elements: !6402)
class/union requires a filename
!6624 = !DICompositeType(tag: DW_TAG_union_type, name: "struct #raw_union {i: u32, f: f32}", size: 32, align: 32, elements: !6625)
I am not sure what to do about that issue. Is it something anyone here can recognize?