Re: [cc65] cc65 on MacOS

From: Tachdaun <tachdaun1gmail.com>
Date: 2010-05-11 18:10:04
Ok, sorry, I saw a blank "Downloading and installing" section at wiki.cc65.org before, but now I noticed there was another section below that explained how to build cc65 on MacOS.

I ran make, and I got this errors:

for i in common ar65 ca65 cc65 cl65 co65 da65 grc ld65 od65; do /Developer/usr/bin/gnumake -C $i -f make/gcc.mak all || exit $?; done
gcc -g -O2 -Wall -W -std=c89   -c -o abend.o abend.c
abend.c:37:19: error: stdio.h: No such file or directory
abend.c:38:20: error: stdlib.h: No such file or directory
abend.c: In function ‘AbEnd’:
abend.c:59: warning: implicit declaration of function ‘fprintf’
abend.c:59: warning: incompatible implicit declaration of built-in function ‘fprintf’
abend.c:59: error: ‘stderr’ undeclared (first use in this function)
abend.c:59: error: (Each undeclared identifier is reported only once
abend.c:59: error: for each function it appears in.)
abend.c:63: warning: implicit declaration of function ‘vfprintf’
abend.c:70: warning: implicit declaration of function ‘exit’
abend.c:70: warning: incompatible implicit declaration of built-in function ‘exit’
abend.c:70: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
gnumake[2]: *** [abend.o] Error 1
gnumake[1]: *** [all] Error 2
gnumake: *** [bins] Error 2

Ok, so I added the absolute path for stdio.h and stdlib.h, which is "cc65-2.13.2/include", being "cc65-2.13.2" the folder were I extracted cc65 sources.
I assume this custom headers are the ones needed, and not the default C headers, because that's the reason they are included in cc65 sources.

So I ran make again, and got this errors:

In file included from abend.c:37:
cc65-2.13.2/include/stdio.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clearerr’
cc65-2.13.2/include/stdio.h:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fclose’
cc65-2.13.2/include/stdio.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘feof’
[...] ( And many more errors, I suspect every stdio function appears in this list )

cc65-2.13.2/include/stdlib.h:43: error: conflicting types for ‘size_t’
/Developer/usr/bin/../lib/gcc/i686-apple-darwin10/4.2.1/include/stddef.h:214: error: previous declaration of ‘size_t’ was here
cc65-2.13.2/include/stdlib.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘malloc’
cc65-2.13.2/include/stdlib.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘calloc’
[...]

abend.c: In function ‘AbEnd’:
abend.c:63: warning: implicit declaration of function ‘vfprintf’
abend.c:70: warning: implicit declaration of function ‘exit’
abend.c:70: warning: incompatible implicit declaration of built-in function ‘exit’
gnumake[2]: *** [abend.o] Error 1
gnumake[1]: *** [all] Error 2
gnumake: *** [bins] Error 2


So that's where I got so far, any clues?
Thanks.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue May 11 17:10:08 2010

This archive was generated by hypermail 2.1.8 : 2010-05-11 17:10:11 CEST