openmultiplayer / compiler

Other
11 stars 9 forks source link

pawncc: compiler/sc1.c:2237: declglb: Assertion `size>=litidx' failed. #4

Open Zorono opened 1 year ago

Zorono commented 1 year ago

https://github.com/openmultiplayer/compiler/blob/23a8cd14480b6b5d1b215039513ae21d1f7315c9/source/compiler/sc1.c#L2237

pawncc: compiler/sc1.c:2237: declglb: Assertion `size>=litidx' failed.

4958 Aborted                 (core dumped)
Southclaws commented 1 year ago

What are the reproduction steps?

Zorono commented 1 year ago

What are the reproduction steps?

  1. compile master branch with:
    • clone the repo and checkout to master branch
    • mkdir ./build; cd ./build;
    • cmake ../source/compiler -DCMAKE_C_FLAGS="-m32 -O0 -g" -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles";
    • make;
  2. try to compile any gamemode... (i tried that inside github workflow...) please note that i tried compiling empty pwn file too but the error persists somehow
Zorono commented 5 months ago

this problem happens only when i compile it for Debug... (but cmake -DsNAMEMAX=63 -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release . fixes it)