The issue is still present. I can reproduce it with zsdcc (contained in Z88DK) by: (0) having python and GNU make installed (1) git clone https://github.com/Fabrizio-Caruso/CROSS-LIB (2) entering the src directory (3) running xl snake vz200_zsdcc or equivalently make zsdcc -f games/snake/Makefile.snake If I remove the line: level_bonus = (uint16_t) (((uint16_t) snake_length)<<1)+(((uint16_t) energy)<<3) +(((uint16_t) coin_count)<<5) + (((uint16_t) level)<<2); the problem disappears but I cannot isolate...
The issue is still present. I can reproduce it with zsdcc (contained in Z88DK) by: (0) having python and GNU make installed (1) git clone https://github.com/Fabrizio-Caruso/CROSS-LIB (2) entering the src directory (3) running xl snake vz200_zsdcc or equivalently make zsdcc -f games/snake/Makefile.snake If I remove the line: level_bonus = (uint16_t) (((uint16_t) snake_length)<<1)+(((uint16_t) energy)<<3) +(((uint16_t) coin_count)<<5) + (((uint16_t) level)<<2); the problem disappears but I cannot isolate...
What does "error 9" mean? I am still getting this error on multiple Z80 targets in Z88DK. I have spotted the single line that causes it but I don't know how to reproduce it because it problem won't show up with just that line.
What I know is that if I remove that line: https://github.com/Fabrizio-Caruso/CROSS-LIB/blob/master/src/games/snake/main.c#L932 I manage to compile my game with make vz200_zsdcc -f Makefile.snake I am not able to reproduce it with a smaller example but I know the single line that breaks it. The same source code works fine with 15 other cross-compilers and native compilers (e.g., GCC) including SCCZ80.
The line that breaks the compilation is: level_bonus = (uint16_t) (((uint16_t) snake_length)<<1)+(((uint16_t) energy)<<3) +(((uint16_t) coin_count)<<5) + (((uint16_t) level)<<2);
It seems to be the main function. I could try to reduce the main function and compile until I get something that can be compiled.
FATAL Compiler Internal Error in file 'gen.c
Winding number