I have checked out the psptoolchain and installed it successfully.
Now I cannot compile most of the PSP libraries, for example freetype
or sdl. I have set the environment variables correctly and did exactly
as written in the readme. Some of the libraries install, some not.
Here is the config.log of freetype:
Code: Select all
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ./configure --host psp --prefix=/usr/local/pspdev/psp
## --------- ##
## Platform. ##
## --------- ##
hostname = mase1
uname -m = i686
uname -r = 2.6.30-1-686-bigmem
uname -s = Linux
uname -v = #1 SMP Mon Aug 3 17:32:39 UTC 2009
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/share/psp-dev/bin
PATH: /bin
PATH: /usr/share/psp-dev/bin
PATH: /usr/share/psp-dev/psp/sdk/bin
PATH: /usr/local/pspdev/bin
PATH: /usr/local/pspdev/psp/sdk/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2529: checking build system type
configure:2543: result: i686-pc-linux-gnu
configure:2563: checking host system type
configure:2576: result: mipsallegrexel-psp-elf
configure:2596: checking target system type
configure:2609: result: mipsallegrexel-psp-elf
configure:2647: checking for psp-gcc
configure:2663: found /usr/local/pspdev/bin/psp-gcc
configure:2674: result: psp-gcc
configure:2943: checking for C compiler version
configure:2952: psp-gcc --version >&5
psp-gcc (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2963: $? = 0
configure:2952: psp-gcc -v >&5
Using built-in specs.
Target: psp
Configured with: ../configure --prefix=/usr/local/pspdev --target=psp --enable-languages=c,c++ --with-newlib --with-gmp --with-mpfr --enable-cxx-flags=-G0
Thread model: single
gcc version 4.3.2 (GCC)
configure:2963: $? = 0
configure:2952: psp-gcc -V >&5
psp-gcc: '-V' option must have argument
configure:2963: $? = 1
configure:2952: psp-gcc -qversion >&5
psp-gcc: unrecognized option '-qversion'
psp-gcc: no input files
configure:2963: $? = 1
configure:2985: checking for C compiler default output file name
configure:3007: psp-gcc -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser conftest.c >&5
/tmp/ccUoUUBM.o: In function `main':
conftest.c:(.text+0x20): undefined reference to `fopen'
conftest.c:(.text+0x48): undefined reference to `fclose'
collect2: ld returned 1 exit status
configure:3011: $? = 1
configure:3048: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:3054: error: in `/home/mase/psp-libraries/build/freetype/builds/unix':
configure:3058: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=psp
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=mipsallegrexel-psp-elf
ac_cv_prog_CC=psp-gcc
ac_cv_target=mipsallegrexel-psp-elf
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
CC='psp-gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
FTSYS_SRC=''
GREP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LD=''
LDFLAGS='-L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBZ=''
LIPO=''
LN_S=''
LTLIBOBJS=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RMDIR=''
RMF=''
SED=''
SHELL='/bin/bash'
STRIP=''
SYSTEM_ZLIB=''
XX_ANSIFLAGS=''
XX_CFLAGS=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
enable_shared=''
exec_prefix='NONE'
ft_version='9.8.3'
hardcode_libdir_flag_spec=''
host='mipsallegrexel-psp-elf'
host_alias='psp'
host_cpu='mipsallegrexel'
host_os='elf'
host_vendor='psp'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/pspdev/psp'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='mipsallegrexel-psp-elf'
target_alias=''
target_cpu='mipsallegrexel'
target_os='elf'
target_vendor='psp'
version_info='9:8:3'
wl=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
But I cannot see any problem here, as I see in the log, the psplibc
is linked correctly. I was searching for a solution the whole day. SDL
gives me the same problem with fopen and fclose.
I am using Debian Squeeze.
What am I doing wrong?