Need psptoolchain source code
Need psptoolchain source code
Hi.
Is there any way I can obtain the psp toolchain source code so I can compile it on my Fedora Core 5? I'm not able to use the bash script provided in ps2dev.org because i haven't a linux connected to the internet, neither a computer with windows I can install cygwin into.
I just need the files that supposedly are downloaded when I run the bash script in the psptoolchain package, so I can copy and compile them on the computer i'll be developing.
Can someone point to me where I can download them, or tell me an alternate solution?
Thanks in advance.
(I hope my english is too bad... :P)
Is there any way I can obtain the psp toolchain source code so I can compile it on my Fedora Core 5? I'm not able to use the bash script provided in ps2dev.org because i haven't a linux connected to the internet, neither a computer with windows I can install cygwin into.
I just need the files that supposedly are downloaded when I run the bash script in the psptoolchain package, so I can copy and compile them on the computer i'll be developing.
Can someone point to me where I can download them, or tell me an alternate solution?
Thanks in advance.
(I hope my english is too bad... :P)
The toolchain script downloads
And optionally
Code: Select all
ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.16.1.tar.gz
svn://svn.pspdev.org/psp/trunk/psptoolchain/binutils-2.16.1.patch
ftp://ftp.gnu.org/pub/gnu/gcc/gcc-4.0.2/gcc-4.0.2.tar.bz2
svn://svn.pspdev.org/psp/trunk/psptoolchain/gcc-4.0.2.patch
ftp://sources.redhat.com/pub/newlib/newlib-1.13.0.tar.gz
svn://svn.pspdev.org/psp/trunk/psptoolchain/newlib-1.13.0.patch
Code: Select all
ftp://ftp.gnu.org/pub/gnu/gdb/gdb-6.4.tar.gz
svn://svn.pspdev.org/psp/trunk/psptoolchain/gdb-6.4.patch
ftp://sourceware.org/pub/insight/releases/insight-6.4.tar.bz2
svn://svn.pspdev.org/psp/trunk/insight-psp/insight-6.4.patch
It sounds like a required header isn't being pulled in and gcc is choking on the use of a forward-declared type.impostor wrote:However, when I try to compile gcc, after some hours of work, it gives me a lot of errors in the /libiberty/regex.c file, being the most common "dereferencing pointer to incomplete type".
Any chance you could post the full details of the errors you're seeing for that file?
I googled a little and tryied to compile a newer version of gcc (4.1.0), and it seemed to work. At least it doesn't give me the same error anymore. The problem now is that after several hours of compiling the gcc-4.1.0, it says:
I've searched again in google for some solution, but i cant find anything helpful, so this forum is my last hope...again. :(
Feel free to e-mail or IM me.
Code: Select all
checking for psp-gcc... /tmp/pspdev/gcc-4.1.0/build-psp/./gcc/xgcc -B/tmp/pspdev/gcc-4.1.0/build-psp/./gcc -B/usr/local/pspdev/psp/bin/ -B/usr/local/pspdev/psp/lib/ -isystem /usr/local/pspdev/psp/include -isystem /usr/local/pspdev/psp/sys-include
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See 'config.log' for more details
make[1]: *** [configure-target-libssp] Error 1
make[1]: Leaving directory '/tmp/pspdev/gcc-4.1.0/build-psp'
make: *** [All] Error 2
ERROR BUILDING GCC
Feel free to e-mail or IM me.
It seems pastebin isn't working at this moment. I'll paste the config.log here. Maybe someone can find where the source of the error is.
Code: Select all
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
[b]It was created by libssp configure 1.0, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ /home/impostor/toolchain/gcc-4.1.0/libssp/configure --cache-file=./config.cache --build=i686-pc-linux-gnu --host=psp --target=psp --enable-multilib --with-cross-host=i686-pc-linux-gnu --prefix= --with-newlib --without-headers --enable-languages=c --program-transform-name=s,^,psp-,; --with-target-subdir=psp --srcdir=../../../libssp
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.15-1.2054_FC5
uname -s = Linux
uname -v = #1 Tue Mar 14 15:48:33 EST 2006
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /home/impostor/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1221: loading cache ./config.cache
configure:1349: checking build system type
configure:1367: result: i686-pc-linux-gnu
configure:1375: checking host system type
configure:1389: result: mipsallegrexel-psp-elf
configure:1397: checking target system type
configure:1411: result: mipsallegrexel-psp-elf
configure:1457: checking for a BSD-compatible install
configure:1512: result: /usr/bin/install -c
configure:1523: checking whether build environment is sane
configure:1566: result: yes
configure:1631: checking for gawk
configure:1647: found /usr/bin/gawk
configure:1657: result: gawk
configure:1667: checking whether make sets $(MAKE)
configure:1687: result: yes
configure:1763: checking for psp-strip
configure:1789: result: psp-strip
configure:1856: checking for --enable-version-specific-runtime-libs
configure:1871: result: no
configure:1874: checking whether to enable maintainer-specific portions of Makefiles
configure:1883: result: no
configure:1960: checking for psp-gcc
configure:1986: result: /home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/xgcc -B/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/ -B/psp/bin/ -B/psp/lib/ -isystem /psp/include -isystem /psp/sys-include
configure:2268: checking for C compiler version
configure:2271: /home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/xgcc -B/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/ -B/psp/bin/ -B/psp/lib/ -isystem /psp/include -isystem /psp/sys-include --version </dev/null >&5
xgcc (GCC) 4.1.0 (PSPDEV 20060507)
Copyright (C) 2006 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:2274: $? = 0
configure:2276: /home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/xgcc -B/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/ -B/psp/bin/ -B/psp/lib/ -isystem /psp/include -isystem /psp/sys-include -v </dev/null >&5
Reading specs from /home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/specs
Target: psp
Configured with: ../configure --prefix=/usr/local/pspdev --target=psp --enable-languages=c --with-newlib --without-headers : (reconfigured) ../configure --prefix=/usr/local/pspdev/bin/ --target=psp --enable-languages=c --with-newlib --without-headers : (reconfigured) ../configure --prefix= --target=psp --enable-languages=c --with-newlib --without-headers
Thread model: single
gcc version 4.1.0 (PSPDEV 20060507)
configure:2279: $? = 0
configure:2281: /home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/xgcc -B/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/ -B/psp/bin/ -B/psp/lib/ -isystem /psp/include -isystem /psp/sys-include -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2284: $? = 1
configure:2307: checking for C compiler default output file name
configure:2310: /home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/xgcc -B/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/ -B/psp/bin/ -B/psp/lib/ -isystem /psp/include -isystem /psp/sys-include -O2 -g -O2 conftest.c >&5
/usr/local/pspdev/psp/bin/ld: crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2313: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssp"
| #define PACKAGE_TARNAME "libssp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "libssp 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libssp"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2352: error: C compiler cannot create executables[/b]
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=psp
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=psp
ac_cv_host=mipsallegrexel-psp-elf
ac_cv_host_alias=psp
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/xgcc -B/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/ -B/psp/bin/ -B/psp/lib/ -isystem /psp/include -isystem /psp/sys-include'
ac_cv_prog_STRIP=psp-strip
ac_cv_prog_make_make_set=yes
ac_cv_target=mipsallegrexel-psp-elf
ac_cv_target_alias=psp
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/impostor/toolchain/gcc-4.1.0/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/impostor/toolchain/gcc-4.1.0/missing --run tar'
AUTOCONF='${SHELL} /home/impostor/toolchain/gcc-4.1.0/missing --run autoconf'
AUTOHEADER='${SHELL} /home/impostor/toolchain/gcc-4.1.0/missing --run autoheader'
AUTOMAKE='${SHELL} /home/impostor/toolchain/gcc-4.1.0/missing --run automake-1.9'
AWK='gawk'
CC='/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/xgcc -B/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/ -B/psp/bin/ -B/psp/lib/ -isystem /psp/include -isystem /psp/sys-include'
CCDEPMODE=''
CFLAGS='-O2 -g -O2 '
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LIBOBJS=''
LIBS=''
LIBSSP_USE_SYMVER_FALSE=''
LIBSSP_USE_SYMVER_TRUE=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo --split-size=5000000'
OBJEXT=''
PACKAGE='libssp'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='libssp'
PACKAGE_STRING='libssp 1.0'
PACKAGE_TARNAME='libssp'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
RANLIB='psp-ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='psp-strip'
VERSION='1.0'
ac_ct_CC=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
enable_shared=''
enable_static=''
exec_prefix='NONE'
host='mipsallegrexel-psp-elf'
host_alias='psp'
host_cpu='mipsallegrexel'
host_os='elf'
host_vendor='psp'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/impostor/toolchain/gcc-4.1.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
multi_basedir='../../../libssp/..'
oldincludedir='/usr/include'
prefix=''
program_transform_name='s,^,psp-,;'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
ssp_have_usable_vsnprintf=''
sysconfdir='${prefix}/etc'
target='mipsallegrexel-psp-elf'
target_alias='psp'
target_cpu='mipsallegrexel'
target_noncanonical='psp'
target_os='elf'
target_vendor='psp'
toolexecdir=''
toolexeclibdir=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "libssp"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "libssp"
#define PACKAGE_STRING "libssp 1.0"
#define PACKAGE_TARNAME "libssp"
#define PACKAGE_VERSION "1.0"
#define VERSION "1.0"
configure: exit 77