commanderx16 / x16-demo

73 stars 29 forks source link

Fails to compile with latest cl65 #124

Open maxgerhardt opened 2 years ago

maxgerhardt commented 2 years ago
make[1]: Entering directory '/home/max/x16-demo/cc65-audio'
python3 ../tools/bin2c.py vgmData test.vgm vgm.inc
cl65 -t cx16 -O -o audio.prg main.c
main.c:39: Error: Macro redefinition is not identical
main.c:65: Error: No field named 'reg' found in 'volatile struct YM2151_t'
main.c:65: Error: Assignment to rvalue
main.c:66: Error: No field named 'data' found in 'volatile struct YM2151_t'
main.c:66: Error: Assignment to rvalue
main.c:102: Warning: Pointer conversion to 'char *' from 'unsigned char * const' changes pointee signedness
5 errors and 1 warnings generated.
make[1]: *** [Makefile:4: audio.prg] Error 1
make[1]: Leaving directory '/home/max/x16-demo/cc65-audio'
make: *** [Makefile:22: cc65-audio] Error 2

With

$ cl65 --version
cl65 V2.19 - Git a09053ce0

Which is the latest from the git (https://github.com/cc65/cc65/commit/a09053ce0b605e82081c10420c9e25fc86e9c1cf)