jdah/minecraft-weekend

make compile error

hweinert opened this issue · 1 comments

henry@henry-E2293:~/Downloads/minecraft-weekend$ make
mkdir -p ./bin
cd lib/cglm && cmake . -DCGLM_STATIC=ON && make
-- Configuring done
-- Generating done
-- Build files have been written to: /home/henry/Downloads/minecraft-weekend/lib/cglm
make[1]: Verzeichnis „/home/henry/Downloads/minecraft-weekend/lib/cglm“ wird betreten
make[2]: Verzeichnis „/home/henry/Downloads/minecraft-weekend/lib/cglm“ wird betreten
make[3]: Verzeichnis „/home/henry/Downloads/minecraft-weekend/lib/cglm“ wird betreten
make[3]: Verzeichnis „/home/henry/Downloads/minecraft-weekend/lib/cglm“ wird verlassen
make[3]: Verzeichnis „/home/henry/Downloads/minecraft-weekend/lib/cglm“ wird betreten
[ 4%] Building C object CMakeFiles/cglm.dir/src/vec4.c.o
/home/henry/Downloads/minecraft-weekend/lib/cglm/src/vec4.c:127:25: error: argument 1 of type ‘float[4]’ with mismatched bound [-Werror=array-parameter=]
127 | glmc_vec4_scale_as(vec4 v, float s, vec4 dest) {
| ~~~~~^
In file included from /home/henry/Downloads/minecraft-weekend/lib/cglm/src/../include/cglm/call.h:17,
from /home/henry/Downloads/minecraft-weekend/lib/cglm/src/vec4.c:9:
/home/henry/Downloads/minecraft-weekend/lib/cglm/src/../include/cglm/call/vec4.h:102:25: note: previously declared as ‘float[3]’
102 | glmc_vec4_scale_as(vec3 v, float s, vec3 dest);
| ~~~~~^
/home/henry/Downloads/minecraft-weekend/lib/cglm/src/vec4.c:127:42: error: argument 3 of type ‘float[4]’ with mismatched bound [-Werror=array-parameter=]
127 | glmc_vec4_scale_as(vec4 v, float s, vec4 dest) {
| ~~~~~^~~~
In file included from /home/henry/Downloads/minecraft-weekend/lib/cglm/src/../include/cglm/call.h:17,
from /home/henry/Downloads/minecraft-weekend/lib/cglm/src/vec4.c:9:
/home/henry/Downloads/minecraft-weekend/lib/cglm/src/../include/cglm/call/vec4.h:102:42: note: previously declared as ‘float[3]’
102 | glmc_vec4_scale_as(vec3 v, float s, vec3 dest);
| ~~~~~^~~~
cc1: all warnings being treated as errors
make[3]: *** [CMakeFiles/cglm.dir/build.make:173: CMakeFiles/cglm.dir/src/vec4.c.o] Fehler 1
make[3]: Verzeichnis „/home/henry/Downloads/minecraft-weekend/lib/cglm“ wird verlassen
make[2]: *** [CMakeFiles/Makefile2:95: CMakeFiles/cglm.dir/all] Fehler 2
make[2]: Verzeichnis „/home/henry/Downloads/minecraft-weekend/lib/cglm“ wird verlassen
make[1]: *** [Makefile:171: all] Fehler 2
make[1]: Verzeichnis „/home/henry/Downloads/minecraft-weekend/lib/cglm“ wird verlassen
make: *** [Makefile:28: libs] Fehler 2

Here's a workaround #49