The problem is that every time I try to compile or build anything using psp-gcc, even building from the sample code using the given makefiles, I get odd compiler errors. For one, it cannot find the included library files. I've tried adding their direct paths to my PATH, but even that doesn't get anything compiled.
In addition, I have weird parsing/syntax errors as you can see, but this could possibly be due to the include portion not functioning correctly.
I've searched for common errors and their solutions, but most of them suggest rebuilding everything, and I'd prefer not to go through that horrificly long process again. (Especially since it took me roughly 7 hours of debugging in order to build everything correctly using the toolchain script.)
Code: Select all
Zaphod Beeb@zbeeble /usr/psp/sdk/samples/audio/wavegen
$ ls
Makefile main.c
Zaphod Beeb@zbeeble /usr/psp/sdk/samples/audio/wavegen
$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=
150 -c -o main.o main.c
In file included from /usr/local/pspdev/psp/sdk/include/pspuser.h:18,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/psptypes.h:22:20: error: stdint.h: No such fil
e or directory
In file included from /usr/local/pspdev/psp/sdk/include/pspuser.h:18,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/psptypes.h:39: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u8'
/usr/local/pspdev/psp/sdk/include/psptypes.h:40: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:42: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u32'
/usr/local/pspdev/psp/sdk/include/psptypes.h:43: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:45: error: expected '=', ',', ';',
'asm' or '__attribute__' before 's8'
/usr/local/pspdev/psp/sdk/include/psptypes.h:46: error: expected '=', ',', ';',
'asm' or '__attribute__' before 's16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:48: error: expected '=', ',', ';',
'asm' or '__attribute__' before 's32'
/usr/local/pspdev/psp/sdk/include/psptypes.h:49: error: expected '=', ',', ';',
'asm' or '__attribute__' before 's64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:54: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'vu8'
/usr/local/pspdev/psp/sdk/include/psptypes.h:55: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'vu16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:57: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'vu32'
/usr/local/pspdev/psp/sdk/include/psptypes.h:58: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'vu64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:60: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'vs8'
/usr/local/pspdev/psp/sdk/include/psptypes.h:61: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'vs16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:63: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'vs32'
/usr/local/pspdev/psp/sdk/include/psptypes.h:64: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'vs64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:68: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_lb'
/usr/local/pspdev/psp/sdk/include/psptypes.h:69: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_lh'
/usr/local/pspdev/psp/sdk/include/psptypes.h:70: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_lw'
/usr/local/pspdev/psp/sdk/include/psptypes.h:71: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ld'
/usr/local/pspdev/psp/sdk/include/psptypes.h:73: error: expected ')' before 'val
'
/usr/local/pspdev/psp/sdk/include/psptypes.h:74: error: expected ')' before 'val
'
/usr/local/pspdev/psp/sdk/include/psptypes.h:75: error: expected ')' before 'val
'
/usr/local/pspdev/psp/sdk/include/psptypes.h:76: error: expected ')' before 'val
'
/usr/local/pspdev/psp/sdk/include/psptypes.h:80: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u_short16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:81: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u_int16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:82: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u_int32'
/usr/local/pspdev/psp/sdk/include/psptypes.h:83: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u_int64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:84: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'u_long64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:88: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'short16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:89: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'int16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:90: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'int32'
/usr/local/pspdev/psp/sdk/include/psptypes.h:91: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'int64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:92: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'long64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:97: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SceUShort16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:98: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SceUInt32'
/usr/local/pspdev/psp/sdk/include/psptypes.h:99: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SceUInt64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:100: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SceULong64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:104: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SceShort16'
/usr/local/pspdev/psp/sdk/include/psptypes.h:105: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SceInt32'
/usr/local/pspdev/psp/sdk/include/psptypes.h:106: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SceInt64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:107: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SceLong64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:140: error: expected specifier-qual
ifier-list before 'SceLong64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:165: error: expected specifier-qual
ifier-list before 'SceLong64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:195: error: expected specifier-qual
ifier-list before 'SceLong64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:229: error: expected specifier-qual
ifier-list before 'SceLong64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:394: error: expected specifier-qual
ifier-list before 'SceULong64'
/usr/local/pspdev/psp/sdk/include/psptypes.h:415: error: expected specifier-qual
ifier-list before 'SceULong64'
In file included from /usr/local/pspdev/psp/sdk/include/pspuser.h:19,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/pspkerneltypes.h:36: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'SceOff'
/usr/local/pspdev/psp/sdk/include/pspkerneltypes.h:37: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'SceIores'
In file included from /usr/local/pspdev/psp/sdk/include/pspiofilemgr.h:19,
from /usr/local/pspdev/psp/sdk/include/pspuser.h:20,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/pspiofilemgr_stat.h:107: error: expected speci
fier-qualifier-list before 'SceOff'
In file included from /usr/local/pspdev/psp/sdk/include/pspuser.h:20,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/pspiofilemgr.h:169: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'sceIoLseek'
/usr/local/pspdev/psp/sdk/include/pspiofilemgr.h:181: error: expected declaratio
n specifiers or '...' before 'SceOff'
/usr/local/pspdev/psp/sdk/include/pspiofilemgr.h:399: error: expected declaratio
n specifiers or '...' before 'SceInt64'
/usr/local/pspdev/psp/sdk/include/pspiofilemgr.h:409: error: expected declaratio
n specifiers or '...' before 'SceInt64'
/usr/local/pspdev/psp/sdk/include/pspiofilemgr.h:419: error: expected declaratio
n specifiers or '...' before 'SceInt64'
/usr/local/pspdev/psp/sdk/include/pspiofilemgr.h:430: error: expected declaratio
n specifiers or '...' before 'SceInt64'
In file included from /usr/local/pspdev/psp/sdk/include/pspthreadman.h:21,
from /usr/local/pspdev/psp/sdk/include/pspuser.h:25,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/pspdebug.h:57: error: expected ')' before 'col
or'
/usr/local/pspdev/psp/sdk/include/pspdebug.h:64: error: expected ')' before 'col
or'
/usr/local/pspdev/psp/sdk/include/pspdebug.h:81: error: expected declaration spe
cifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspdebug.h:81: error: expected declaration spe
cifiers or '...' before 'u8'
/usr/local/pspdev/psp/sdk/include/pspdebug.h:100: error: expected ')' before '*'
token
/usr/local/pspdev/psp/sdk/include/pspdebug.h:153: error: expected specifier-qual
ifier-list before 'u32'
/usr/local/pspdev/psp/sdk/include/pspdebug.h:213: error: expected declaration sp
ecifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspdebug.h:227: error: expected specifier-qual
ifier-list before 'u32'
/usr/local/pspdev/psp/sdk/include/pspdebug.h:249: error: expected ':', ',', ';',
'}' or '__attribute__' before 'enable'
In file included from /usr/local/pspdev/psp/sdk/include/pspuser.h:25,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:41: error: expected specifier-q
ualifier-list before 'SceUInt32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:655: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:665: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:676: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:676: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:676: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:688: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:688: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:688: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:700: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:700: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:700: error: expected declaratio
n specifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1472: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'sceKernelUSec2SysClockWide'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1494: error: expected ')' befor
e 'clock'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1510: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'sceKernelGetSystemTimeWide'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1559: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'sceKernelGetVTimerBaseWide'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1578: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'sceKernelGetVTimerTimeWide'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1598: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'sceKernelSetVTimerTimeWide'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1619: error: expected declarati
on specifiers or '...' before 'SceInt64'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1619: error: expected declarati
on specifiers or '...' before 'SceInt64'
/usr/local/pspdev/psp/sdk/include/pspthreadman.h:1643: error: expected declarati
on specifiers or '...' before 'SceInt64'
In file included from /usr/local/pspdev/psp/sdk/include/pspuser.h:26,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/psputils.h:32:22: error: sys/time.h: No such f
ile or directory
In file included from /usr/local/pspdev/psp/sdk/include/pspuser.h:26,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/psputils.h:38: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'sceKernelLibcTime'
/usr/local/pspdev/psp/sdk/include/psputils.h:43: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'sceKernelLibcClock'
/usr/local/pspdev/psp/sdk/include/psputils.h:48: warning: 'struct timezone' decl
ared inside parameter list
/usr/local/pspdev/psp/sdk/include/psputils.h:48: warning: its scope is only this
definition or declaration, which is probably not what you want
/usr/local/pspdev/psp/sdk/include/psputils.h:48: warning: 'struct timeval' decla
red inside parameter list
/usr/local/pspdev/psp/sdk/include/psputils.h:96: error: expected declaration spe
cifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/psputils.h:104: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'sceKernelUtilsMt19937UInt'
/usr/local/pspdev/psp/sdk/include/psputils.h:110: error: expected specifier-qual
ifier-list before 'SceUShort16'
/usr/local/pspdev/psp/sdk/include/psputils.h:125: error: expected ')' before '*'
token
/usr/local/pspdev/psp/sdk/include/psputils.h:153: error: expected declaration sp
ecifiers or '...' before 'u8'
/usr/local/pspdev/psp/sdk/include/psputils.h:153: error: expected declaration sp
ecifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/psputils.h:163: error: expected declaration sp
ecifiers or '...' before 'u8'
/usr/local/pspdev/psp/sdk/include/psputils.h:168: error: expected specifier-qual
ifier-list before 'SceUShort16'
/usr/local/pspdev/psp/sdk/include/psputils.h:183: error: expected ')' before '*'
token
/usr/local/pspdev/psp/sdk/include/psputils.h:212: error: expected declaration sp
ecifiers or '...' before 'u8'
/usr/local/pspdev/psp/sdk/include/psputils.h:212: error: expected declaration sp
ecifiers or '...' before 'u32'
/usr/local/pspdev/psp/sdk/include/psputils.h:222: error: expected declaration sp
ecifiers or '...' before 'u8'
In file included from /usr/local/pspdev/psp/sdk/include/pspuser.h:29,
from /usr/local/pspdev/psp/sdk/include/pspkernel.h:18,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/pspintrman.h:153: error: expected specifier-qu
alifier-list before 'u32'
In file included from /usr/local/pspdev/psp/sdk/include/pspkernel.h:19,
from main.c:9:
/usr/local/pspdev/psp/sdk/include/pspiofilemgr_kernel.h:48: error: expected spec
ifier-qualifier-list before 'u32'
/usr/local/pspdev/psp/sdk/include/pspiofilemgr_kernel.h:68: error: expected spec
ifier-qualifier-list before 'SceOff'
/usr/local/pspdev/psp/sdk/include/pspiofilemgr_kernel.h:91: error: expected spec
ifier-qualifier-list before 'u32'
main.c:16:20: error: stdlib.h: No such file or directory
main.c:17:20: error: string.h: No such file or directory
main.c:18:18: error: math.h: No such file or directory
main.c: In function 'currentFunction':
main.c:76: warning: implicit declaration of function 'modf'
main.c:76: warning: incompatible implicit declaration of built-in function 'modf
'
main.c:80: warning: implicit declaration of function 'sinf'
main.c:80: warning: incompatible implicit declaration of built-in function 'sinf
'
main.c: In function 'audioCallback':
main.c:120: warning: incompatible implicit declaration of built-in function 'mod
f'
make: *** [main.o] Error 1
Beeblebrox