Page 1 of 1

ERROR BUILDING BINUTILS (binutils-2.14 ee)

Posted: Fri Feb 16, 2007 9:31 pm
by Cybershot
Hi,

I am trying to get into programming the ps2 and have dificulties installing the ps2toolchain.

I am trying to follow the steps in lukasz tut : http://lukasz.dk/programming/playstatio ... -tutorial/

I am running Win XP and newest Cygwin.

I run these commands:

Code: Select all

svn checkout svn://svn.ps2dev.org/ps2/trunk/ps2toolchain
chmod a+x ./toolchain.sh
./toolchain.sh
Then the toolchain.sh script starts its work... then terminates with these lines:

Code: Select all

[...]
mkdir .libs
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o size.exe size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd
.a ../libiberty/libiberty.a ./../intl/libintl.a
../bfd/.libs/libbfd.a(archures.o): In function `bfd_scan_arch':
/tmp/ps2dev/binutils-2.14/build-ee/bfd/../../bfd/archures.c:520: undefined reference to `_bfd_mips_arch'
collect2: ld returned 1 exit status
make[3]: *** [size.exe] Error 1
make[3]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/binutils'
make: *** [all-binutils] Error 2
ERROR BUILDING BINUTILS (binutils-2.14 ee)

I would really appreciate some help! Thanks.

Posted: Wed Feb 21, 2007 11:33 pm
by ps2devman
maybe, try, in a separate folder, manually, what does ps2toolchain :
- download this : ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.14.tar.gz
- uncompress it somewhere in your cygwin account directory
- "cd binutils-2.14"
- "patch -i binutils-2.14.patch -p0" (from ps2dev toolchain -svn-)
- "./configure --target=iop"
- "make"
- "./configure --target=ee"
- "make"
- "./configure --target=dvp"
- "make"

"make" instead of "make install" so result stays inside folder and you can try to narrow where the problem comes from