Error compiling starsim using Win32 Dev
Posted: Thu Aug 19, 2004 3:02 pm
I have just installed a fresh version of Win32 dev using the batch file option. I downloaded starsim to try compiling.
I unpacked the starsim demo source and typed:
make
I get the following:
ee-gcc -O2 -EL -pipe -Wall -Wa,-al -fno-common -Wall -mips3 -mcpu=r5900 -ffreestanding -fnonnull-objects -fno-builtin -fshort-double -nostartfiles -mlong64 -mhard-float -mno-abicalls -c -IC:\PS2Dev\ps2lib/common/include -IC:\PS2Dev\ps2lib/ee/include -c main.c -o main.o > main.lst
cc1: unrecognized option `-fnonnull-objects'
/cygdrive/c/PS2Dev/gcc/ee/bin/../lib/gcc-lib/ee/3.2.2/../../../../ee/bin/as: unrecognized option `-mcpu=r5900'
make: *** [main.o] Error 1
I removed both the -fnonnull-objects and -mcpu=r5900 options from the Makefile and tried make again:
ee-gcc -O2 -EL -pipe -Wall -Wa,-al -fno-common -Wall -mips3 -ffreestanding -fno-builtin -fshort-double -nostartfiles -mlong64 -mhard-float -mno-abicalls -c -IC:\PS2Dev\ps2lib/common/include -IC:\PS2Dev\ps2lib/ee/include -c main.c -o main.o
> main.lst
In file included from main.c:31:
/cygdrive/c/PS2Dev/gcc/ee/ee/sys-include/stdlib.h:57: parse error before '(' token
In file included from main.c:32:
nprintf.h:3: conflicting types for `nprintf'
C:/PS2Dev/ps2lib/ee/include/kernel.h:291: previous declaration of `nprintf'
main.c: In function `main':
main.c:129: warning: implicit declaration of function `sif_rpc_init'
main.c:167: warning: implicit declaration of function `k_FlushCache'
make: *** [main.o] Error 1
So then I decided to comment out the printf.h include in main.c as it's already possibly declared. Run make again:
ee-gcc -O2 -EL -pipe -Wall -Wa,-al -fno-common -Wall -mips3 -ffreestanding -fno-builtin -fshort-double -nostartfiles -mlong64 -mhard-float -mno-abicalls -c -IC:\PS2Dev\ps2lib/common/include -IC:\PS2Dev\ps2lib/ee/include -c main.c -o main.o
> main.lst
In file included from main.c:31:
/cygdrive/c/PS2Dev/gcc/ee/ee/sys-include/stdlib.h:57: parse error before '(' token
main.c: In function `main':
main.c:129: warning: implicit declaration of function `sif_rpc_init'
main.c:167: warning: implicit declaration of function `k_FlushCache'
make: *** [main.o] Error 1
Fixed three errors but I can't get any further. Can anyone advise if I am going about this correctly?
I unpacked the starsim demo source and typed:
make
I get the following:
ee-gcc -O2 -EL -pipe -Wall -Wa,-al -fno-common -Wall -mips3 -mcpu=r5900 -ffreestanding -fnonnull-objects -fno-builtin -fshort-double -nostartfiles -mlong64 -mhard-float -mno-abicalls -c -IC:\PS2Dev\ps2lib/common/include -IC:\PS2Dev\ps2lib/ee/include -c main.c -o main.o > main.lst
cc1: unrecognized option `-fnonnull-objects'
/cygdrive/c/PS2Dev/gcc/ee/bin/../lib/gcc-lib/ee/3.2.2/../../../../ee/bin/as: unrecognized option `-mcpu=r5900'
make: *** [main.o] Error 1
I removed both the -fnonnull-objects and -mcpu=r5900 options from the Makefile and tried make again:
ee-gcc -O2 -EL -pipe -Wall -Wa,-al -fno-common -Wall -mips3 -ffreestanding -fno-builtin -fshort-double -nostartfiles -mlong64 -mhard-float -mno-abicalls -c -IC:\PS2Dev\ps2lib/common/include -IC:\PS2Dev\ps2lib/ee/include -c main.c -o main.o
> main.lst
In file included from main.c:31:
/cygdrive/c/PS2Dev/gcc/ee/ee/sys-include/stdlib.h:57: parse error before '(' token
In file included from main.c:32:
nprintf.h:3: conflicting types for `nprintf'
C:/PS2Dev/ps2lib/ee/include/kernel.h:291: previous declaration of `nprintf'
main.c: In function `main':
main.c:129: warning: implicit declaration of function `sif_rpc_init'
main.c:167: warning: implicit declaration of function `k_FlushCache'
make: *** [main.o] Error 1
So then I decided to comment out the printf.h include in main.c as it's already possibly declared. Run make again:
ee-gcc -O2 -EL -pipe -Wall -Wa,-al -fno-common -Wall -mips3 -ffreestanding -fno-builtin -fshort-double -nostartfiles -mlong64 -mhard-float -mno-abicalls -c -IC:\PS2Dev\ps2lib/common/include -IC:\PS2Dev\ps2lib/ee/include -c main.c -o main.o
> main.lst
In file included from main.c:31:
/cygdrive/c/PS2Dev/gcc/ee/ee/sys-include/stdlib.h:57: parse error before '(' token
main.c: In function `main':
main.c:129: warning: implicit declaration of function `sif_rpc_init'
main.c:167: warning: implicit declaration of function `k_FlushCache'
make: *** [main.o] Error 1
Fixed three errors but I can't get any further. Can anyone advise if I am going about this correctly?