Continuous error in installing toolchain!!

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

Moderators: cheriff, TyRaNiD

Post Reply
xmOD
Posts: 10
Joined: Sat Apr 29, 2006 12:11 am
Contact:

Continuous error in installing toolchain!!

Post by xmOD »

Hey,

I am trying to install the PSP Toolchain in Ubuntu 6.10 edgy eft ... Now the problem is that when i put in this command:

Code: Select all

xmod@xmod-desktop:~/psptoolchain$ chmod a+x ./toolchain.sh
xmod@xmod-desktop:~/psptoolchain$ /toolchain.sh 
the toolchain downloads everything perfectly but when it starts to compile the binutils then i get this error:

Code: Select all

make[2]: Leaving directory `/tmp/pspdev/binutils-2.16.1/build-psp/libiberty'
rm -f *.a required-list tmpmulti.out
rm -f libiberty.dvi libiberty.info* libiberty.html
make[1]: Leaving directory `/tmp/pspdev/binutils-2.16.1/build-psp/libiberty'
test ! -d gcc/libgcc || \
        (cd gcc/libgcc && find . -type d -print) | \
        while read d; do rm -f gcc/$d/libgcc.a || : ; done
rm -rf gcc/libgcc
rm -f gcc/stmp-dirs
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
the above code is the last part where the error occurs..

also i tried compiling the parts separately by using the following commands:

Code: Select all

xmod@xmod-desktop:~/psptoolchain$  sudo ./toolchain.sh -b
I used to above code to compile the binutils separately but it did not work.. I tried compiling the newlibs, sdk separately but even they gave erorrs somewhere in the middle of the installation..

Now what do i do? I switched from Windows to linux only because cygwin gave errors saying please make sure automake is installed but now even linux aint working... please help me..

The following is the list of packages that i have installed:

Code: Select all

 *  autoconf 2.60
    * automake 1.9
    * bash
    * coreutils
    * diffutils
    * gcc
    * grep
    * gzip
    * make
    * patch
    * patchutils
    * sed
    * subversion
    * tar
    * wget
    *build-essential
    *libncurses5-dev
    *flex 

doing ./toolchain.sh -e -p gives me the following error:

Code: Select all

xmod@xmod-desktop:~/psptoolchain$ sudo ./toolchain.sh -e -p 
Password:
gzip: /home/xmod/psptoolchain/gdb-6.4.tar.gz: No such file or directory
cd: 280: can't cd to gdb-6.4
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -burN insight-6.4/bfd/archures.c insight-psp/bfd/archures.c
|--- insight-6.4/bfd/archures.c 2005-10-25 18:40:09.000000000 +0100
|+++ insight-psp/bfd/archures.c 2006-02-05 14:40:58.000000000 +0000
--------------------------
File to patch: 

Please suggest what i can do? because i am very new to linux and dont wanna go back to cygwin. :-)

EDIT: I am using sudo so that the script can write files in the main filesystem but i dont think thats causing the problem because even without it i get errors. Also please suggest if i can use any other version of the toolchain.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Re: Continuous error in installing toolchain!!

Post by jimparis »

xmOD wrote: the toolchain downloads everything perfectly but when it starts to compile the binutils then i get this error:

Code: Select all

make[2]: Leaving directory `/tmp/pspdev/binutils-2.16.1/build-psp/libiberty'
rm -f *.a required-list tmpmulti.out
rm -f libiberty.dvi libiberty.info* libiberty.html
make[1]: Leaving directory `/tmp/pspdev/binutils-2.16.1/build-psp/libiberty'
test ! -d gcc/libgcc || \
        (cd gcc/libgcc && find . -type d -print) | \
        while read d; do rm -f gcc/$d/libgcc.a || : ; done
rm -rf gcc/libgcc
rm -f gcc/stmp-dirs
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
the above code is the last part where the error occurs..
You didn't include the actual error there. That's just the cleanup that occurs after the error. Paste the error and we can help.

Code: Select all

xmod@xmod-desktop:~/psptoolchain$  sudo ./toolchain.sh -b
I used to above code to compile the binutils separately but it did not work..
I tried compiling the newlibs, sdk separately but even they gave erorrs somewhere in the middle of the installation..
Again, without any actual errors we can't tell you what you did wrong..
doing ./toolchain.sh -e -p gives me the following error:

Code: Select all

xmod@xmod-desktop:~/psptoolchain$ sudo ./toolchain.sh -e -p 
Password:
gzip: /home/xmod/psptoolchain/gdb-6.4.tar.gz: No such file or directory
Specifying parameters without -d tells it to not download anything, which is why it couldn't find it.
xmOD
Posts: 10
Joined: Sat Apr 29, 2006 12:11 am
Contact:

Post by xmOD »

For example when i try to install newlib with ./toolchain.sh -n command then i get this.. i get error buliding gcc when i try to compile gcc...

Code: Select all

Making clean in .
make[2]: Entering directory `/tmp/pspdev/pspsdk/src'
make[2]: Nothing to be done for `clean-am'.
make[2]: Leaving directory `/tmp/pspdev/pspsdk/src'
make[1]: Leaving directory `/tmp/pspdev/pspsdk/src'
Making clean in .
make[1]: Entering directory `/tmp/pspdev/pspsdk'
test -z "" || rm -f 
make[1]: Leaving directory `/tmp/pspdev/pspsdk'
Making install-data in src
make[1]: Entering directory `/tmp/pspdev/pspsdk/src'
Making install-data in atrac3
make[2]: Entering directory `/tmp/pspdev/pspsdk/src/atrac3'
test -z "/usr/local/pspdev/psp/sdk/include" || mkdir -p -- "/usr/local/pspdev/psp/sdk/include"
mkdir: cannot create directory `/usr/local/pspdev': Permission denied
make[2]: *** [install-libpspatrac3includeHEADERS] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/src/atrac3'
make[1]: *** [install-data-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk/src'
make: *** [install-data-recursive] Error 1
ERROR BUILDING PSPSDK
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

that error is quite clear...

Code: Select all

mkdir: cannot create directory `/usr/local/pspdev': Permission denied 
Fix your permissions or run as a user that can write to /usr/local.
xmOD
Posts: 10
Joined: Sat Apr 29, 2006 12:11 am
Contact:

Post by xmOD »

wont it be sufficient if i use sudo ./toolchain.sh ?

also i tried using sudo even then dome error comes up ... one more thing i wanted to know was that is it necessary to install the toolchain on order... like first binutils, then gcc, then newlib and then sdk ? or we can install anything anytime..
xmOD
Posts: 10
Joined: Sat Apr 29, 2006 12:11 am
Contact:

Post by xmOD »

i think i found the problem.. does there have to be a gdb-6.3 file that downloads from the toolchain? if yes, then i dont have that.. where can i download that from? i din find it in the svn either..
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

xmOD wrote:also i tried using sudo even then dome error comes up ...
jimparis wrote:without any actual errors we can't tell you what you did wrong..
xmOD
Posts: 10
Joined: Sat Apr 29, 2006 12:11 am
Contact:

Post by xmOD »

well, i jus said that gbd is the problem.. that file is not present in my toolchain dir.. how can i install that?
FreePlay
Posts: 71
Joined: Wed Jan 04, 2006 6:53 pm
Location: Schenectady, New York, USA

Re: Continuous error in installing toolchain!!

Post by FreePlay »

jimparis wrote:
doing ./toolchain.sh -e -p gives me the following error:

Code: Select all

xmod@xmod-desktop:~/psptoolchain$ sudo ./toolchain.sh -e -p 
Password:
gzip: /home/xmod/psptoolchain/gdb-6.4.tar.gz: No such file or directory
Specifying parameters without -d tells it to not download anything, which is why it couldn't find it.
^^
Right there.
xmOD
Posts: 10
Joined: Sat Apr 29, 2006 12:11 am
Contact:

Post by xmOD »

Code: Select all

gdb-6.3/bfd/nlm32-sparc.c
gdb-6.3/bfd/elf32-sparc.c
gdb-6.3/bfd/xtensa-modules.c
gdb-6.3/bfd/cpu-ia64-opc.c
gdb-6.3/bfd/elf32-i960.c
gdb-6.3/bfd/m68k4knetbsd.c
gdb-6.3/bfd/libecoff.h
gdb-6.3/bfd/cpu-h8500.c
gdb-6.3/bfd/elf-m10200.c
gdb-6.3/bfd/sunos.c
gdb-6.3/bfd/cpu-pj.c
gdb-6.3/bfd/pei-sh.c
gdb-6.3/bfd/cpu-fr30.c
gdb-6.3/bfd/genlink.h
gdb-6.3/djunpack.bat
gdb-6.3/gettext.m4
gdb-6.3/src-release
gdb-6.3/config-ml.in

gzip: /home/xmod/Desktop/psp/psptoolchain/gdb-6.3.tar.gz: decompression OK, trailing garbage ignored
gdb-6.3/missing
this is the error i get when i used this command:

sudo ./toolchain.sh -e -p -d

it download gdb and patch well but when it tried to build it.. i got that error adn it just hung there..
Post Reply