PSPSDK/Toolchain Built, but Errors compiling Samples

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

PSPSDK/Toolchain Built, but Errors compiling Samples

Post by Beeblebrox »

I built everything using the previous toolchain build (Prior to the 5/17 upgrade). I think it's 0501, or something to that regard.

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
Thanks guys,

Beeblebrox
binch
Posts: 28
Joined: Tue Jul 04, 2006 4:17 pm
Location: China

Post by binch »

chech is there a stdint.h in /usr/local/pspdev/psp/sdk/include.
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Of course you mean /usr/local/pspdev/psp/include
binch
Posts: 28
Joined: Tue Jul 04, 2006 4:17 pm
Location: China

Post by binch »

yes, my typos.
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Post by Beeblebrox »

Yeah, all of the basic libraries are already in the path IWN said.

Any other suggestions?

-Beeb
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Post by Beeblebrox »

Attempt just now to make the kprintf debug sample, and the PATH that was defined before running make. Still no go:

Code: Select all

Zaphod Beeb@ZBeeb /usr/psp/sdk/samples/debug/kprintf
$ 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:14:
/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:14:
/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:14:
/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:14:
/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:14:
/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:14:
/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:14:
/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:14:
/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:14:
/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:14:
/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:14:
/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: In function 'main':
main.c:69: warning: implicit declaration of function 'pspDebugScreenSetTextColor
'
make: *** [main.o] Error 1

Using the following PATH:

Code: Select all

Zaphod Beeb@ZBeeb /usr/psp/sdk/samples/debug/kprintf
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program Files/MiKTeX 2.5
/miktex/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS
/system32/wbem:/cygdrive/c/program files/ati technologies/ati control panel:/cyg
drive/c/program files/ati technologies/ati.ace/:/cygdrive/c/Program Files/MATLAB
_SV71/bin/win32:/cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn/:/c
ygdrive/c/Program Files/QuickTime/QTSystem/:/cygdrive/c/Program Files/doxygen/bi
n:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/c/Program Files/Subversion/bin
:/usr/bin:/usr/local/pspdev/bin:/usr/lib/lapack:/usr/local/pspdev/bin
-Beeblebrox
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

I notice you're in:

Code: Select all

/usr/psp/sdk/samples/debug/kprintf
But you're grabbing files from:

Code: Select all

-I/usr/local/pspdev/psp/sdk/include
And your path contains:

Code: Select all

/usr/local/pspdev/bin
Which is the real place: /usr/local/pspdev, or /usr/psp? Did you install it twice?

What do you have $PSPDEV set to?
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Post by Beeblebrox »

ooPo wrote:I notice you're in:

Code: Select all

/usr/psp/sdk/samples/debug/kprintf
But you're grabbing files from:

Code: Select all

-I/usr/local/pspdev/psp/sdk/include
And your path contains:

Code: Select all

/usr/local/pspdev/bin
Which is the real place: /usr/local/pspdev, or /usr/psp? Did you install it twice?

What do you have $PSPDEV set to?
I definitely only installed it once. I had PSPDEV set to /usr/local/pspdev when I tried to compile in the original post.

I'm trying again from scratch:

I've just "uninstalled" cygwin again and I've reinstalled with the proper packages installed. I had to change the Depends script for the ncurses (libncurses.so doesn't exist, but ncurses and libncurses are included in my installed packages,) and I'm rebuilding using your new Toolchain script.

We'll see if I run into the same problems as before - I may have to do some debugging to get the toolchain script to run flawlessly (Especially during the Newlib build), but hopefully it will run clean. I've done everything necessary pre-script running, so hopefully it will work.

I'll post again with further progress, Thanks a ton for helping.

-Beeblebrox
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Let me know what you do to the newlib build and I'll see if I can fix it.
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Post by Beeblebrox »

Success! The only thing I had to do was change the Depend script to look for the correct sign of ncurse existing. As long as you define the PSPDEV and the PATH as stated in the readme, the new script works perfectly.

I'm now able to build all the sample files as well.

Thanks,
Beeblebrox
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Woohoo, that's great news. :)

I'd like a way to check for ncurses that works for all platforms, though. How does cygwin differ from the norm?
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Post by Beeblebrox »

Well, I'm a bit of a Cygwin novice, but from what I saw, the files in the /lib directory pertaining to ncurses are:

libncurses.a
libncurses.dll.a
libncurses.la
libncurses++.a
libncurses++.dll.a
libncurses++.la

I simply changed the Depend script to look for libncurses.la


Now maybe you can answer this - I just added the package for Cygwin containing jpeglib.h (After the toolchain build) but when I try to build something that references the new package addition (jpeglib.h), it can't find jpeglib.h.

Is there somewhere that I need to add the path to jpeglib.h?

Thanks,
Beeblebrox
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Are you saying you've installed jpeglib for cygwin and you're wondering why it doesn't work?

You have to compile a library for the platform you're going to use it on. There's a port of jpeglib in the respository you can use:

svn export svn://svn.pspdev.org/psp/trunk/jpeg

The readme says all you have to do is 'make && make install'.
Beeblebrox
Posts: 12
Joined: Wed May 16, 2007 5:14 pm

Post by Beeblebrox »

ooPo wrote:Are you saying you've installed jpeglib for cygwin and you're wondering why it doesn't work?

You have to compile a library for the platform you're going to use it on. There's a port of jpeglib in the respository you can use:

svn export svn://svn.pspdev.org/psp/trunk/jpeg

The readme says all you have to do is 'make && make install'.
Heh, makes so much sense hearing it that I feel stupid for not realizing it beforehand. Thanks. :P

-Beeblebrox
Post Reply