So I tried updating the toolchain, and then it stopped on this particular error.
Thinking I should do a fresh install of the toolchain to clear my problem, I'm mistaken. The problem still persists, same error. And it looks like its related to the sound problems I had with a pre-compiled toolchain.
Here's the error.
Code: Select all
psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/base -I../../src/user -I../../sr
c/debug -g -O2 -G0 -Wall -DF_sceAudio_0019 sceAudio.S -c -o sceAudio_0019.o
rm -f libpspaudio.a
psp-ar cru libpspaudio.a sceAudio.o sceAudio_0000.o sceAudio_0001.o sceAudio_000
2.o sceAudio_0003.o sceAudio_0004.o sceAudio_0005.o sceAudio_0006.o sceAudio_000
7.o sceAudio_0008.o sceAudio_0009.o sceAudio_0010.o sceAudio_0011.o sceAudio_001
2.o sceAudio_0013.o sceAudio_0014.o sceAudio_0015.o sceAudio_0016.o sceAudio_001
7.o sceAudio_0018.o sceAudio_0019.o
psp-ranlib libpspaudio.a
psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/base -I../../src/user -I../../sr
c/debug -g -O2 -G0 -Wall -MT pspaudiolib.o -MD -MP -MF .deps/pspaudiolib.Tpo
-c -o pspaudiolib.o pspaudiolib.c
pspaudiolib.c:14:20: error: stdlib.h: No such file or directory
pspaudiolib.c:15:20: error: string.h: No such file or directory
In file included from ../../src/user/pspthreadman.h:18,
from pspaudiolib.c:16:
psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/base -I../../src/user -I../../sr
c/debug -g -O2 -G0 -Wall -MT pspaudiolib.o -MD -MP -MF .deps/pspaudiolib.Tpo
-c -o pspaudiolib.o pspaudiolib.c
pspaudiolib.c:14:20: error: stdlib.h: No such file or directory
pspaudiolib.c:15:20: error: string.h: No such file or directory
In file included from ../../src/user/pspthreadman.h:18,
from pspaudiolib.c:16:
../../src/base/psptypes.h:22:20: error: stdint.h: No such file or directory
In file included from ../../src/user/pspthreadman.h:18,
from pspaudiolib.c:16:
../../src/base/psptypes.h:40: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u8'
../../src/base/psptypes.h:41: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u16'
../../src/base/psptypes.h:43: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u32'
../../src/base/psptypes.h:44: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u64'
../../src/base/psptypes.h:46: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 's8'
../../src/base/psptypes.h:47: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 's16'
../../src/base/psptypes.h:49: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 's32'
../../src/base/psptypes.h:50: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 's64'
../../src/base/psptypes.h:55: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'vu8'
../../src/base/psptypes.h:56: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'vu16'
../../src/base/psptypes.h:58: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'vu32'
../../src/base/psptypes.h:59: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'vu64'
$
te__' before 'vs8'
../../src/base/psptypes.h:62: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'vs16'
../../src/base/psptypes.h:64: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'vs32'
../../src/base/psptypes.h:65: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'vs64'
../../src/base/psptypes.h:69: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before '_lb'
../../src/base/psptypes.h:70: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before '_lh'
../../src/base/psptypes.h:71: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before '_lw'
../../src/base/psptypes.h:72: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before '_ld'
../../src/base/psptypes.h:74: error: expected ')' before 'val'
../../src/base/psptypes.h:75: error: expected ')' before 'val'
../../src/base/psptypes.h:76: error: expected ')' before 'val'
../../src/base/psptypes.h:77: error: expected ')' before 'val'
../../src/base/psptypes.h:81: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u_short16'
../../src/base/psptypes.h:82: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u_int16'
../../src/base/psptypes.h:83: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u_int32'
../../src/base/psptypes.h:84: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u_int64'
../../src/base/psptypes.h:85: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'u_long64'
../../src/base/psptypes.h:89: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'short16'
../../src/base/psptypes.h:90: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'int16'
../../src/base/psptypes.h:91: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'int32'
../../src/base/psptypes.h:92: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'int64'
../../src/base/psptypes.h:93: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'long64'
../../src/base/psptypes.h:98: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'SceUShort16'
../../src/base/psptypes.h:99: error: expected '=', ',', ';', 'asm' or '__attribu
te__' before 'SceUInt32'
../../src/base/psptypes.h:100: error: expected '=', ',', ';', 'asm' or '__attrib
ute__' before 'SceUInt64'
../../src/base/psptypes.h:101: error: expected '=', ',', ';', 'asm' or '__attrib
ute__' before 'SceULong64'
../../src/base/psptypes.h:105: error: expected '=', ',', ';', 'asm' or '__attrib
ute__' before 'SceShort16'
../../src/base/psptypes.h:106: error: expected '=', ',', ';', 'asm' or '__attrib
ute__' before 'SceInt32'
../../src/base/psptypes.h:107: error: expected '=', ',', ';', 'asm' or '__attrib
ute__' before 'SceInt64'
../../src/base/psptypes.h:108: error: expected '=', ',', ';', 'asm' or '__attrib
ute__' before 'SceLong64'
../../src/base/psptypes.h:141: error: expected specifier-qualifier-list before '
SceLong64'
../../src/base/psptypes.h:166: error: expected specifier-qualifier-list before '
SceLong64'
../../src/base/psptypes.h:196: error: expected specifier-qualifier-list before '
SceLong64'
../../src/base/psptypes.h:230: error: expected specifier-qualifier-list before '
SceLong64'
../../src/base/psptypes.h:395: error: expected specifier-qualifier-list before '
SceULong64'
../../src/base/psptypes.h:416: error: expected specifier-qualifier-list before '
SceULong64'
In file included from ../../src/user/pspthreadman.h:19,
from pspaudiolib.c:16:
../../src/user/pspkerneltypes.h:36: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'SceOff'
../../src/user/pspkerneltypes.h:37: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'SceIores'
In file included from ../../src/user/pspthreadman.h:21,
from pspaudiolib.c:16:
../../src/debug/pspdebug.h:57: error: expected ')' before 'color'
../../src/debug/pspdebug.h:64: error: expected ')' before 'color'
../../src/debug/pspdebug.h:81: error: expected declaration specifiers or '...' b
efore 'u32'
../../src/debug/pspdebug.h:81: error: expected declaration specifiers or '...' b
efore 'u8'
../../src/debug/pspdebug.h:100: error: expected ')' before '*' token
../../src/debug/pspdebug.h:153: error: expected specifier-qualifier-list before
'u32'
../../src/debug/pspdebug.h:213: error: expected declaration specifiers or '...'
before 'u32'
../../src/debug/pspdebug.h:227: error: expected specifier-qualifier-list before
'u32'
../../src/debug/pspdebug.h:249: error: expected ':', ',', ';', '}' or '__attribu
te__' before 'enable'
In file included from pspaudiolib.c:16:
../../src/user/pspthreadman.h:41: error: expected specifier-qualifier-list befor
e 'SceUInt32'
../../src/user/pspthreadman.h:655: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:665: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:676: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:676: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:676: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:688: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:688: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:688: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:700: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:700: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:700: error: expected declaration specifiers or '..
.' before 'u32'
../../src/user/pspthreadman.h:1472: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'sceKernelUSec2SysClockWide'
../../src/user/pspthreadman.h:1494: error: expected ')' before 'clock'
../../src/user/pspthreadman.h:1510: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'sceKernelGetSystemTimeWide'
../../src/user/pspthreadman.h:1559: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'sceKernelGetVTimerBaseWide'
../../src/user/pspthreadman.h:1578: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'sceKernelGetVTimerTimeWide'
../../src/user/pspthreadman.h:1598: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'sceKernelSetVTimerTimeWide'
../../src/user/pspthreadman.h:1619: error: expected declaration specifiers or '.
..' before 'SceInt64'
../../src/user/pspthreadman.h:1619: error: expected declaration specifiers or '.
..' before 'SceInt64'
../../src/user/pspthreadman.h:1643: error: expected declaration specifiers or '.
..' before 'SceInt64'
pspaudiolib.c: In function 'pspAudioInit':
pspaudiolib.c:117: warning: implicit declaration of function 'strcpy'
pspaudiolib.c:117: warning: incompatible implicit declaration of built-in functi
on 'strcpy'
make[3]: *** [pspaudiolib.o] Error 1
make[3]: Leaving directory `/home/Dave/psptoolchain/build/pspsdk/src/audio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Dave/psptoolchain/build/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Dave/psptoolchain/build/pspsdk'
make: *** [all] Error 2
../scripts/006-pspsdk-stage2.sh: Failed.
ERROR: Could not run the toolchain script.