Need psptoolchain source code

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

Moderators: cheriff, TyRaNiD

Post Reply
impostor
Posts: 8
Joined: Wed Mar 28, 2007 8:35 am

Need psptoolchain source code

Post by impostor »

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)
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

The toolchain script downloads

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
And optionally

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
impostor
Posts: 8
Joined: Wed Mar 28, 2007 8:35 am

Post by impostor »

Thanks. I've just downloaded the *.patch files, but i've never heard of any patch files at all. How do I use them?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

impostor wrote:Thanks. I've just downloaded the *.patch files, but i've never heard of any patch files at all. How do I use them?
Look at toolchain.sh... it shows you how it does everything from making the dirs to downloading the archives to using the patches to compiling the whole shebang.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Just download all those files and then run the psptoolchain script (without "-d").
impostor
Posts: 8
Joined: Wed Mar 28, 2007 8:35 am

Post by impostor »

I've executed toolchain.sh and i've already compiled binutils. 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 help with this?
StrmnNrmn
Posts: 46
Joined: Wed Feb 14, 2007 11:32 pm
Location: London, UK
Contact:

Post by StrmnNrmn »

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".
It sounds like a required header isn't being pulled in and gcc is choking on the use of a forward-declared type.

Any chance you could post the full details of the errors you're seeing for that file?
impostor
Posts: 8
Joined: Wed Mar 28, 2007 8:35 am

Post by impostor »

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:

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
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.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

paste the config.log to pastebin :)
impostor
Posts: 8
Joined: Wed Mar 28, 2007 8:35 am

Post by impostor »

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&#58;2271&#58; /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 &#40;GCC&#41; 4.1.0 &#40;PSPDEV 20060507&#41;
Copyright &#40;C&#41; 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&#58;2274&#58; $? = 0
configure&#58;2276&#58; /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&#58; psp
Configured with&#58; ../configure --prefix=/usr/local/pspdev --target=psp --enable-languages=c --with-newlib --without-headers &#58; &#40;reconfigured&#41; ../configure --prefix=/usr/local/pspdev/bin/ --target=psp --enable-languages=c --with-newlib --without-headers &#58; &#40;reconfigured&#41; ../configure --prefix= --target=psp --enable-languages=c --with-newlib --without-headers
Thread model&#58; single
gcc version 4.1.0 &#40;PSPDEV 20060507&#41;
configure&#58;2279&#58; $? = 0
configure&#58;2281&#58; /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&#58; '-V' must come at the start of the command line
configure&#58;2284&#58; $? = 1
configure&#58;2307&#58; checking for C compiler default output file name
configure&#58;2310&#58; /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&#58; crt0.o&#58; No such file&#58; No such file or directory
collect2&#58; ld returned 1 exit status
configure&#58;2313&#58; $? = 1
configure&#58; failed program was&#58;
| /* 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 &#40;&#41;
| &#123;
| 
|   ;
|   return 0;
| &#125;
configure&#58;2352&#58; error&#58; C compiler cannot create executables&#91;/b&#93;
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='$&#123;SHELL&#125; /home/impostor/toolchain/gcc-4.1.0/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$&#123;SHELL&#125; /home/impostor/toolchain/gcc-4.1.0/missing --run tar'
AUTOCONF='$&#123;SHELL&#125; /home/impostor/toolchain/gcc-4.1.0/missing --run autoconf'
AUTOHEADER='$&#123;SHELL&#125; /home/impostor/toolchain/gcc-4.1.0/missing --run autoheader'
AUTOMAKE='$&#123;SHELL&#125; /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='$&#123;SHELL&#125; $&#40;install_sh&#41; -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='&#58;'
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='$&#123;AMTAR&#125; chof - "$$tardir"'
am__untar='$&#123;AMTAR&#125; xf -'
bindir='$&#123;exec_prefix&#125;/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='$&#123;prefix&#125;/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='$&#123;prefix&#125;/include'
infodir='$&#123;prefix&#125;/info'
install_sh='/home/impostor/toolchain/gcc-4.1.0/install-sh'
libdir='$&#123;exec_prefix&#125;/lib'
libexecdir='$&#123;exec_prefix&#125;/libexec'
localstatedir='$&#123;prefix&#125;/var'
mandir='$&#123;prefix&#125;/man'
mkdir_p='mkdir -p --'
multi_basedir='../../../libssp/..'
oldincludedir='/usr/include'
prefix=''
program_transform_name='s,^,psp-,;'
sbindir='$&#123;exec_prefix&#125;/sbin'
sharedstatedir='$&#123;prefix&#125;/com'
ssp_have_usable_vsnprintf=''
sysconfdir='$&#123;prefix&#125;/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&#58; exit 77
Post Reply