Upon make: Reading 205/205 dependency files Done reading dependencies MAKEFLAGS="" \ /usr/bin/python3.11 modsilent.py make KBUILD_EXTRA_SYMBOLS=/usr/realtime-4.19.294-rtai-amd64/modules/Module.symvers -C /usr/src/linux-headers-4.19.294-rtai-amd64 M=/home/ntu/linuxcnc/src CC=gcc V=0 modules make[1]: Entering directory '/usr/src/linux-headers-4.19.294-rtai-amd64' CC [M] /home/ntu/linuxcnc/src/objects/hal/components/limit_axis.o hal/components/limit_axis.comp: In function ‘_’: hal/components/limit_axis.comp:67:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode hal/components/limit_axis.comp:67:3: note: use option ‘-std=c99’, ‘-std=gnu99’, ‘-std=c11’ or ‘-std=gnu11’ to compile your code make[2]: *** [scripts/Makefile.build:304: /home/ntu/linuxcnc/src/objects/hal/components/limit_axis.o] Error 1 make[1]: *** [Makefile:1566: _module_/home/ntu/linuxcnc/src] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.19.294-rtai-amd64' make: *** [Makefile:547: modules] Error 2
After using `make -ki` to keep going and ignore errors: CC [M] /home/ntu/linuxcnc/src/objects/hal/components/raster.o /home/ntu/linuxcnc/src/objects/hal/components/raster.c:14:10: fatal error: stdlib.h: No such file or directory 14 | #include <stdlib.h> | ^~~~~~~~~~ compilation terminated. make[2]: [scripts/Makefile.build:304: /home/ntu/linuxcnc/src/objects/hal/components/raster.o] Error 1 (ignored) LD [M] /home/ntu/linuxcnc/src/raster.o ld: cannot find /home/ntu/linuxcnc/src/objects/hal/components/raster.o: No such file or directory make[2]: [scripts/Makefile.build:516: /home/ntu/linuxcnc/src/raster.o] Error 1 (ignored) As for this one, if you just set CONFIG_FRAME_WARN in the kernel config, it should go away: CC [M] /home/ntu/linuxcnc/src/emc/kinematics/genserfuncs.o /home/ntu/linuxcnc/src/emc/kinematics/genserfuncs.c: In function ‘genserKinematicsInverse’: /home/ntu/linuxcnc/src/emc/kinematics/genserfuncs.c:564:1: error: the frame size of 2576 bytes is larger than 2560 bytes [-Werror=frame-larger-than=] 564 | } | ^ cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:304: /home/ntu/linuxcnc/src/emc/kinematics/genserfuncs.o] Error 1 (ignored) CC [M] /home/ntu/linuxcnc/src/libnml/posemath/gomath.o LD [M] /home/ntu/linuxcnc/src/genserkins.o ld: cannot find /home/ntu/linuxcnc/src/emc/kinematics/genserfuncs.o: No such file or directory make[2]: [scripts/Makefile.build:516: /home/ntu/linuxcnc/src/genserkins.o] Error 1 (ignored) I suppose you could also set -Wno-error=frame-larger-than as part of the CFLAGS for the last one too. Alec _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers