crownengine / crown

The flexible game engine.
https://www.crownengine.org
Other
2.15k stars 154 forks source link

[MSYS2 MINGW64] Error when building - it doesn't support make jobs? #147

Closed ghost closed 1 year ago

ghost commented 1 year ago

make tools-mingw-release64 -j4 has these errors:

3rdparty/bx/tools/bin/windows/genie --file=3rdparty/bgfx/scripts/genie.lua --with-tools --gcc=mingw-gcc gmake
"make" -j1 -R -C 3rdparty/luajit/src CC="/mingw64/bin/x86_64-w64-mingw32-gcc -m64" CCOPT="-O2 -fomit-frame-pointer -msse2" TARGET_SYS=Windows BUILDMODE=static
"make" -j1 -R -C 3rdparty/bimg/.build/projects/gmake-mingw-gcc config=release64 texturec
"make" -j1 -R -C 3rdparty/bgfx/.build/projects/gmake-mingw-gcc config=release64 shaderc
make[1]: Entering directory '/home/Administrator/crown/3rdparty/luajit/src'
make[1]: Entering directory '/home/Administrator/crown'
make[1]: warning: -j1 forced in submake: resetting jobserver mode.
make[1]: *** 3rdparty/bimg/.build/projects/gmake-mingw-gcc: No such file or directory.  Stop.
make[1]: Leaving directory '/home/Administrator/crown'
make[1]: Entering directory '/home/Administrator/crown'
make[1]: *** 3rdparty/bgfx/.build/projects/gmake-mingw-gcc: No such file or directory.  Stop.
make[1]: Leaving directory '/home/Administrator/crown'
make: *** [makefile:120: build/mingw64/bin/shaderc.exe] Error 2
make: *** Waiting for unfinished jobs....
make: *** [makefile:117: build/mingw64/bin/texturec.exe] Error 2
Building configurations...
Running action 'gmake'...

Even though it said it's waiting for unfinished jobs [in order to abort], it's still proceed with building.

make tools-mingw-release64 doesn't have these errors.

ghost commented 1 year ago

Without make jobs the build process is too slow. I aborted the build so I can't confirm if it's building fine on MSYS2 MINGW64 or not.

dbartolini commented 1 year ago

Does make tools-mingw-release64 MAKE_JOBS=4 compile fine?