llvm-mos / llvm-mos-sdk

SDK for developing with the llvm-mos compiler
https://www.llvm-mos.org
Other
271 stars 56 forks source link

LLVM Crash #380

Open ToboterXP opened 1 week ago

ToboterXP commented 1 week ago

Hello, your program has asked me to submit a bug report. The program and report are attached below. game.zip

LLVM ERROR: unable to translate instruction: call (in function: input_update) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump:

  1. Program arguments: C:\llvm-mos\bin\ld.lld --gc-sections --sort-section=alignment C:\Users\tobi1\AppData\Local\Temp\main-963441.o C:\Users\tobi1\AppData\Local\Temp\game-eb35af.o C:\Users\tobi1\AppData\Local\Temp\level-68fc57.o C:\Users\tobi1\AppData\Local\Temp\rendering-54baf1.o C:\Users\tobi1\AppData\Local\Temp\input-367787.o C:\Users\tobi1\AppData\Local\Temp\items-1f2c2f.o C:\Users\tobi1\AppData\Local\Temp\monsters-969de4.o C:\Users\tobi1\AppData\Local\Temp\player-acd1c8.o C:\Users\tobi1\AppData\Local\Temp\hud-84c07b.o C:\Users\tobi1\AppData\Local\Temp\utils-c023e4.o C:\Users\tobi1\AppData\Local\Temp\objects-637474.o C:\Users\tobi1\AppData\Local\Temp\inventory-ed1e7d.o C:\Users\tobi1\AppData\Local\Temp\mapgen-5f4e97.o C:\Users\tobi1\AppData\Local\Temp\sound-a006b7.o C:\Users\tobi1\AppData\Local\Temp\zsmkit-fa82e1.o -plugin-opt=mcpu=mosw65c02 -plugin-opt=O2 -plugin-opt=-function-sections=1 -plugin-opt=-data-sections=1 -mllvm -force-precise-rotation-cost -mllvm -jump-inst-cost=6 -mllvm -force-loop-cold-block -mllvm -phi-node-folding-threshold=0 -mllvm -speculate-blocks=0 -mllvm -align-large-globals=false -mllvm -disable-spill-hoist -mllvm -lsr-complexity-limit=10000000 -mllvm -zp-avail=90 -LC:\llvm-mos\bin/../mos-platform/cx16/lib -LC:\llvm-mos\bin/../mos-platform/commodore/lib -LC:\llvm-mos\bin/../mos-platform/common/lib -T link.ld -l:crt0.o -lcrt0 -lcrt -lc -o ./build/vault.prg
  2. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
  3. Running pass 'IRTranslator' on function '@input_update' Exception Code: 0x80000003

    0 0x00007ff6ca6450e1 (C:\llvm-mos\bin\ld.lld.exe+0x750e1)

    1 0x00007ffcba721881 (C:\WINDOWS\System32\ucrtbase.dll+0x71881)

    2 0x00007ffcba722851 (C:\WINDOWS\System32\ucrtbase.dll+0x72851)

    3 0x00007ff6ca639c24 (C:\llvm-mos\bin\ld.lld.exe+0x69c24)

    4 0x00007ff6ca9f824e (C:\llvm-mos\bin\ld.lld.exe+0x42824e)

    5 0x00007ff6ca9f9438 (C:\llvm-mos\bin\ld.lld.exe+0x429438)

    6 0x00007ff6cac679fe (C:\llvm-mos\bin\ld.lld.exe+0x6979fe)

    7 0x00007ff6cb98101b (C:\llvm-mos\bin\ld.lld.exe+0x13b101b)

    8 0x00007ff6cb98121c (C:\llvm-mos\bin\ld.lld.exe+0x13b121c)

    9 0x00007ff6cb981458 (C:\llvm-mos\bin\ld.lld.exe+0x13b1458)

    10 0x00007ff6cb980d26 (C:\llvm-mos\bin\ld.lld.exe+0x13b0d26)

    11 0x00007ff6cab001d0 (C:\llvm-mos\bin\ld.lld.exe+0x5301d0)

    12 0x00007ff6caaffb85 (C:\llvm-mos\bin\ld.lld.exe+0x52fb85)

    13 0x00007ff6caaf9654 (C:\llvm-mos\bin\ld.lld.exe+0x529654)

    14 0x00007ff6caaf8ce3 (C:\llvm-mos\bin\ld.lld.exe+0x528ce3)

    15 0x00007ff6ca7ca8bb (C:\llvm-mos\bin\ld.lld.exe+0x1fa8bb)

    16 0x00007ff6ca7197d7 (C:\llvm-mos\bin\ld.lld.exe+0x1497d7)

    17 0x00007ff6ca723f5a (C:\llvm-mos\bin\ld.lld.exe+0x153f5a)

    18 0x00007ff6ca73894a (C:\llvm-mos\bin\ld.lld.exe+0x16894a)

    19 0x00007ff6ca73814c (C:\llvm-mos\bin\ld.lld.exe+0x16814c)

    20 0x00007ff6ca691825 (C:\llvm-mos\bin\ld.lld.exe+0xc1825)

    21 0x00007ff6ca620afe (C:\llvm-mos\bin\ld.lld.exe+0x50afe)

    22 0x00007ff6ca620da7 (C:\llvm-mos\bin\ld.lld.exe+0x50da7)

    23 0x00007ff6cba60370 (C:\llvm-mos\bin\ld.lld.exe+0x1490370)

    24 0x00007ffcbb5e7374 (C:\WINDOWS\System32\KERNEL32.DLL+0x17374)

    25 0x00007ffcbcafcc91 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4cc91)

    mos-clang: error: ld.lld command failed due to signal (use -v to see invocation)

ToboterXP commented 1 week ago

I just downloaded llvm today, so it's the current release Windows executable