ziglang / zig-bootstrap

take off every zig
368 stars 86 forks source link

target x86_64-linux-gnu (native-linux-gnu) not compiling #146

Open mohan43u opened 1 year ago

mohan43u commented 1 year ago

I run the following command, but compilation failed with zig2 segfault

Host: up-to-date Arch (Linux container0 6.2.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 13 Mar 2023 17:02:08 +0000 x86_64 GNU/Linux) gcc: 12.2.1 20230201

CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) ./build native-linux-gnu native

I tried to get the stacktrace from coredumpctl

multi_array_list_MultiArrayList_28Air_Inst_29_slice + 182 in section .text
multi_array_list_MultiArrayList_28Air_Inst_29_set + 147 in section .text
multi_array_list_MultiArrayList_28Air_Inst_29_appendAssumeCapacity + 277 in section .text
Sema_Block_addInstAsIndex + 458 in section .text
Sema_Block_addInst + 80 in section .text
Sema_Block_addBitCast + 352 in section .text
Sema_bitCast + 2386 in section .text
Sema_analyzeRef + 3103 in section .text
Sema_zirRef + 496 in section .text
Sema_analyzeBodyInner + 27969 in section .text
Sema_resolveBlockBody + 277 in section .text
Sema_zirBlock + 2988 in section .text
Sema_analyzeBodyInner + 99087 in section .text
Sema_analyzeBodyRuntimeBreak + 111 in section .text
Sema_zirCondbr + 3177 in section .text
Sema_analyzeBodyInner + 108689 in section .text
Sema_resolveBlockBody + 277 in section .text
Sema_zirBlock + 2988 in section .text
Sema_analyzeBodyInner + 99087 in section .text
Sema_resolveBlockBody + 277 in section .text
Sema_zirBlock + 2988 in section .text
Sema_analyzeBodyInner + 99087 in section .text
Sema_resolveBlockBody + 277 in section .text
Sema_zirBlock + 2988 in section .text
Sema_analyzeBodyInner + 99087 in section .text
Sema_analyzeBodyRuntimeBreak + 111 in section .text
Sema_zirCondbr + 3177 in section .text
Sema_analyzeBodyInner + 108689 in section .text
Sema_resolveBlockBody + 277 in section .text
Sema_zirBlock + 2988 in section .text
Sema_analyzeBodyInner + 99087 in section .text
Sema_analyzeBody + 87 in section .text
Sema_zirLoop + 3157 in section .text
Sema_analyzeBodyInner + 97012 in section .text
Sema_resolveBlockBody + 277 in section .text
Sema_zirBlock + 2988 in section .text
Sema_analyzeBodyInner + 99087 in section .text
Sema_analyzeBody + 87 in section .text
Module_analyzeFnBody + 11957 in section .text
Module_ensureFuncBodyAnalyzed + 502 in section .text
Compilation_processOneJob + 804 in section .text
Compilation_performAllTheWork + 5634 in section .text
Compilation_update + 14526 in section .text
main_updateModule + 98 in section .text
main_buildOutputType + 497693 in section .text
main_mainArgs + 1934 in section .text
main_main + 442 in section .text
main + 601 in section .text
No symbol matches 0x23790.
No symbol matches 0x2384a.
_start + 37 in section .text

Hope it will help to fix the issue