pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
303 stars 70 forks source link

Some weird error appeared using my custom build of dev branch... unlike official builds from omp(from the released server archive) or the regular community build (this repo's released build) #739

Open Zorono opened 3 weeks ago

Zorono commented 3 weeks ago

Issue description:

Some weird errors appeared using my custom build of dev branch... unlike official builds from omp(from the released server archive) or the regular community build (this repo's released build)

Minimal complete verifiable example (MCVE):

my custom build is: build.zip i compiled it using the commands:

git clone https://github.com/pawn-lang/compiler.git
cd ./compiler
mkdir ./source/compiler/build
cd ./source/compiler/build
cmake .. -DCMAKE_C_FLAGS="-m32" -DsNAMEMAX=63 -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles";
cmake --build . --config Release

please note that i used the CMakeFile from my PR (Zorono/compiler-1 branch patch-1)

git clone "https://github.com/pawn-lang/compiler"
git remote add zorono https://github.com/Zorono/compiler-1
git fetch zorono patch-1
git checkout patch-1

the errors i got are:

/path/to/Server/dependencies/openmultiplayer/omp_core.inc(322) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(322) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(359) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(359) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(486) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(486) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(545) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(545) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(568) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(568) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(580) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(580) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(605) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(605) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(619) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(619) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(961) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(961) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(966) : error 001: expected token: ":", 
but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(966) : error 001: expected token: ";", 
but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(1060) : error 001: expected token: ":", but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(1060) : error 001: expected token: ";", but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(1352) : error 001: expected token: ":", but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(1352) : error 001: expected token: ";", but found "}"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(1434) : error 001: expected token: ":", but found "-identifier-"
/path/to/Server/dependencies/openmultiplayer/omp_core.inc(1434) : error 001: expected token: ";", but found "}"

please note these errors are thrown as of the commit 3f886e54cbf0637302e55dfb8cd96eefda57b359 of openmultiplayer's omp-stdlib

Workspace Information:

Zorono commented 3 weeks ago

As per iAmir on discord, he said that this problem happens only on WSL (even with omp server and samp server)