Need help with compiling.
Posted: Wed Feb 03, 2021 11:01 am
Hello! I am new to forums and devKitPro (Not C though). I always wanted to make a homebrew app BUT i have a problem...
I have installed the latest version of devKitPro (3.0.3), ran MSYS2, went to c:\devKitPro\examples\wii\template, then ran 'make'
but I keep a lot of errors that I don't really know how to solve.
This is the log (Pasted from MSYS2 :/):
Is there anyway to fix this?
Answers appreciated
I have installed the latest version of devKitPro (3.0.3), ran MSYS2, went to c:\devKitPro\examples\wii\template, then ran 'make'
but I keep a lot of errors that I don't really know how to solve.
This is the log (Pasted from MSYS2 :/):
Code: Select all
$ make
template.c
In file included from c:\devkitpro\devkitppc\powerpc-eabi\include\sys\reent.h:15,
from c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:12,
from C:/devkitPro/libogc/include/ogc/system.h:43,
from C:/devkitPro/libogc/include/gccore.h:62,
from C:/devkitpro/examples/wii/template/source/template.c:3:
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\_types.h:167:5: error: unknown type name 'wint_t'
167 | wint_t __wch;
| ^~~~~~
In file included from c:\devkitpro\devkitppc\powerpc-eabi\include\sys\timespec.h:38,
from c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:29,
from C:/devkitPro/libogc/include/ogc/system.h:43,
from C:/devkitPro/libogc/include/gccore.h:62,
from C:/devkitpro/examples/wii/template/source/template.c:3:
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\_timespec.h:42:18: error: conflicting types for 'time_t'
42 | typedef _TIME_T_ time_t;
| ^~~~~~
In file included from c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:28,
from C:/devkitPro/libogc/include/ogc/system.h:43,
from C:/devkitPro/libogc/include/gccore.h:62,
from C:/devkitpro/examples/wii/template/source/template.c:3:
C:\ps\PSX\INCLUDE/sys/types.h:72:14: note: previous declaration of 'time_t' was here
72 | typedef long time_t;
| ^~~~~~
In file included from C:/devkitPro/libogc/include/ogc/system.h:43,
from C:/devkitPro/libogc/include/gccore.h:62,
from C:/devkitpro/examples/wii/template/source/template.c:3:
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:56:1: error: unknown type name 'clock_t'; did you mean '_flock_t'?
56 | clock_t clock (void);
| ^~~~~~~
| _flock_t
In file included from c:\devkitpro\devkitppc\powerpc-eabi\include\signal.h:6,
from c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:178,
from C:/devkitPro/libogc/include/ogc/system.h:43,
from C:/devkitPro/libogc/include/gccore.h:62,
from C:/devkitpro/examples/wii/template/source/template.c:3:
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\signal.h:176:17: error: expected ')' before 'int'
176 | int kill (pid_t, int);
| ^~~~
| )
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\signal.h:180:19: error: expected ')' before 'int'
180 | int killpg (pid_t, int);
| ^~~~
| )
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\signal.h:226:29: error: expected ')' before 'int'
226 | int pthread_kill (pthread_t, int);
| ^~~~
| )
c:\devkitpro\devkitppc\powerpc-eabi\include\sys\signal.h:237:21: error: expected ')' before 'int'
237 | int sigqueue (pid_t, int, const union sigval);
| ^~~~
| )
In file included from C:/devkitPro/libogc/include/ogc/system.h:43,
from C:/devkitPro/libogc/include/gccore.h:62,
from C:/devkitpro/examples/wii/template/source/template.c:3:
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:186:20: error: unknown type name 'clockid_t'
186 | int clock_settime (clockid_t clock_id, const struct timespec *tp);
| ^~~~~~~~~
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:187:20: error: unknown type name 'clockid_t'
187 | int clock_gettime (clockid_t clock_id, struct timespec *tp);
| ^~~~~~~~~
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:188:19: error: unknown type name 'clockid_t'
188 | int clock_getres (clockid_t clock_id, struct timespec *res);
| ^~~~~~~~~
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:192:19: error: unknown type name 'clockid_t'
192 | int timer_create (clockid_t clock_id,
| ^~~~~~~~~
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:194:2: error: unknown type name 'timer_t'; did you mean 'time_t'?
194 | timer_t *__restrict timerid);
| ^~~~~~~
| time_t
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:198:19: error: unknown type name 'timer_t'; did you mean 'time_t'?
198 | int timer_delete (timer_t timerid);
| ^~~~~~~
| time_t
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:202:20: error: unknown type name 'timer_t'; did you mean 'time_t'?
202 | int timer_settime (timer_t timerid, int flags,
| ^~~~~~~
| time_t
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:205:20: error: unknown type name 'timer_t'; did you mean 'time_t'?
205 | int timer_gettime (timer_t timerid, struct itimerspec *value);
| ^~~~~~~
| time_t
c:\devkitpro\devkitppc\powerpc-eabi\include\time.h:206:23: error: unknown type name 'timer_t'; did you mean 'time_t'?
206 | int timer_getoverrun (timer_t timerid);
| ^~~~~~~
| time_t
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:18: template.o] Error 1
make: *** [Makefile:101: build] Error 2
Answers appreciated