gheja / gbdk

GameBoy Developer's Kit (GBDK) 2.96a from 2002 tuned so it can be compiled on a modern system (Ubuntu 18.04 LTS and 16.04 LTS).
84 stars 10 forks source link

Make error on AWS Cloud9 #23

Closed Mr-Coxall closed 5 years ago

Mr-Coxall commented 5 years ago

I am trying to build this on an AWS Cloud9 Ubuntu Server 18.04 LTS machine (not the normal AWS Linux machine). I am using this download: https://sourceforge.net/projects/gbdk/files/gbdk/2.96/gbdk-2.96a.tar.gz/download

When I run the make I get the following error: make[3]: Leaving directory '/home/ubuntu/environment/gbdk/sdcc/src/z80' gcc -ggdb -O2 -pipe -Wall -DSDCC_SUB_VERSION_STR=\"gbdk-2.96a\" -I. -I.. -I../support/Util -c ../support/Util/SDCCerr.c -o SDCCerr.o gcc -ggdb -O2 -pipe -Wall -DSDCC_SUB_VERSION_STR=\"gbdk-2.96a\" -I. -I.. -I../support/Util -c ../support/Util/NewAlloc.c -o NewAlloc.o gcc -ggdb -O2 -pipe -Wall -DSDCC_SUB_VERSION_STR=\"gbdk-2.96a\" -I. -I.. -I../support/Util -c ../support/Util/MySystem.c -o MySystem.o gcc -ggdb -O2 -pipe -Wall -DSDCC_SUB_VERSION_STR=\"gbdk-2.96a\" -I. -I.. -I../support/Util -c ../support/Util/BuildCmd.c -o BuildCmd.o gcc -ggdb -O2 -pipe -Wall -DSDCC_SUB_VERSION_STR=\"gbdk-2.96a\" -I. -I.. -I../support/Util -c SDCCy.c -o SDCCy.o SDCC.y: In function ‘yyparse’: SDCC.y:1004:4: error: label at end of compound statement default: ^~~ Makefile:100: recipe for target 'SDCCy.o' failed make[2]: [SDCCy.o] Error 1 make[2]: Leaving directory '/home/ubuntu/environment/gbdk/sdcc/src' Makefile:55: recipe for target 'sdcc-cc' failed make[1]: [sdcc-cc] Error 2 make[1]: Leaving directory '/home/ubuntu/environment/gbdk/sdcc' Makefile:137: recipe for target 'sdcc-build' failed make: *** [sdcc-build] Error 2

Mr-Coxall commented 5 years ago

My mistake. I was not using your files, but the downloaded ones from Sorgeforce. Yous worked no problem on AWS Cloud9.

Thanks.