forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Continuous error in installing toolchain!!

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
xmOD



Joined: 29 Apr 2006
Posts: 10

PostPosted: Fri Jan 05, 2007 12:04 am    Post subject: Continuous error in installing toolchain!! Reply with quote

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:
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:

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:
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:
 *  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:

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.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Jan 05, 2007 7:48 am    Post subject: Re: Continuous error in installing toolchain!! Reply with quote

xmOD wrote:

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

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.

Quote:
Code:
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..

Quote:

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

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.
Back to top
View user's profile Send private message
xmOD



Joined: 29 Apr 2006
Posts: 10

PostPosted: Fri Jan 05, 2007 4:27 pm    Post subject: Reply with quote

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:
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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sat Jan 06, 2007 2:32 am    Post subject: Reply with quote

that error is quite clear...
Quote:
Code:
mkdir: cannot create directory `/usr/local/pspdev': Permission denied
Fix your permissions or run as a user that can write to /usr/local.
Back to top
View user's profile Send private message
xmOD



Joined: 29 Apr 2006
Posts: 10

PostPosted: Sat Jan 06, 2007 6:31 pm    Post subject: Reply with quote

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..
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
xmOD



Joined: 29 Apr 2006
Posts: 10

PostPosted: Sun Jan 07, 2007 4:54 am    Post subject: Reply with quote

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..
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun Jan 07, 2007 5:14 am    Post subject: Reply with quote

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..
Back to top
View user's profile Send private message
xmOD



Joined: 29 Apr 2006
Posts: 10

PostPosted: Sun Jan 07, 2007 6:26 am    Post subject: Reply with quote

well, i jus said that gbd is the problem.. that file is not present in my toolchain dir.. how can i install that?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Sun Jan 07, 2007 4:42 pm    Post subject: Re: Continuous error in installing toolchain!! Reply with quote

jimparis wrote:
Quote:

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

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.
Back to top
View user's profile Send private message
xmOD



Joined: 29 Apr 2006
Posts: 10

PostPosted: Mon Jan 08, 2007 3:36 am    Post subject: Reply with quote

Code:
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..
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group