Q:HelloWorld Problems
A:This program is a problem in itself as of right now. It is outdated and you shouldn't try to compile it. Get the PSPSDK and try and compile the samples there.
Q:/bin/sh: no: command not found
A:Make sure you have gcc installed. While you're at it, make sure that autoconf and automake are there too. These are necessary tools to compile the SDK.
Q:bash: ./configure: Permission denied
A:Do a
Code: Select all
chmod +x ./configure
./bootstrap: line 83: autoheader: command not found
./bootstrap: line 84: automake: command not found
./bootstrap: line 86: autoconf: command not found
A:Install automake and autoconf.
Q: In function `__entrytable':
crt0.S:(.rodata.sceResident+0xc): undefined reference to `module_info'
A:Make sure that you have PSP_MODULE_INFO("SOMETHING", 0, 1, 1); somewhere in your program.
Q:In function `_sbrk_r':
../../../../../newlib/libc/reent/sbrkr.c:60: undefined reference to `sbrk'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(makebuf.o): In function `__smakebuf':
../../../../../newlib/libc/stdio/makebuf.c:96: undefined reference to `isatty'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(writer.o): In function `_write_r':
../../../../../newlib/libc/reent/writer.c:58: undefined reference to `_write'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(closer.o): In function `_close_r':
../../../../../newlib/libc/reent/closer.c:53: undefined reference to `_close'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(fstatr.o): In function `_fstat_r':
../../../../../newlib/libc/reent/fstatr.c:62: undefined reference to `_fstat'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(lseekr.o): In function `_lseek_r':
../../../../../newlib/libc/reent/lseekr.c:58: undefined reference to `_lseek'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(readr.o): In function `_read_r':
../../../../../newlib/libc/reent/readr.c:58: undefined reference to `_read'
A:Delete any previous installation of your toolchain and make sure you grab the latest toolchain and SDK from svn.
To get it, install subversion and do a
Code: Select all
svn co svn://svn.pspdev.org/psp/trunk/pspsdk
svn co svn://svn.pspdev.org/psp/trunk/psptoolchain
A:Put a -lm in your linked libraries.
Q:I have installed the toolchain and SDK, but it says 'psp-gcc command not found' or 'make: psp-config: Command not found'.
A:Stated in the README:
Q:In Cygwin, it says 'wget: command not found'Code:
export PATH="/usr/local/pspdev/bin:$PATH"
(You can also add the above four lines to your .bash_profile, to save you from typing it in each time you open a new console window.)
A:Install the wget package.
Q:In Cygwin, it says 'gmake: command not found'
A:Install the make package
Q:I get 'Undefined Reference to __errorno'
A:Until the sdk is fixed for __errno just add
Code: Select all
int __errno = 0;
to your main C file.
Many, many other errors can be solved by just checking out the latest toolchain / sdk from svn.
Any others to add to the list?