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 

compiling toolchain fails at script 4

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



Joined: 31 Mar 2009
Posts: 4

PostPosted: Tue Mar 31, 2009 2:27 pm    Post subject: compiling toolchain fails at script 4 Reply with quote

I'm attempting to compile under Ubuntu 8.10 and keep getting this error (running toolchain-sudo.sh. I think that I have installed all the required packages)
Quote:
--2009-03-30 21:09:10-- ftp://sources.redhat.com/pub/newlib/newlib-1.15.0.tar.gz
=> `newlib-1.15.0.tar.gz'
Resolving sources.redhat.com... 209.132.176.174
Connecting to sources.redhat.com|209.132.176.174|:21... failed: Connection refused.
../scripts/004-newlib-1.15.0.sh: Failed.
ERROR: Could not run the toolchain script.

I tried downloading the file and placing it in the build directory but I get the same connection refused error.

I tried editing the script to a different mirror but as soon as it gets to the script it fails again.



Is there is a solution

Quote:
checking for psp-as... (cached) psp-as
checking for psp-ar... (cached) psp-ar
checking for psp-ranlib... (cached) psp-ranlib
checking for psp-readelf... (cached) psp-readelf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for build system executable suffix... no
updating cache .././config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make[1]: Leaving directory `/home/mccann/Desktop/psptoolchain/build/newlib-1.15.0/build-psp'
make: *** [all] Error 2
../scripts/004-newlib-1.15.0.sh: Failed.
ERROR: Could not run the toolchain script.
mccann@school:~/Desktop/psptoolchain$
Back to top
View user's profile Send private message
NoEffex



Joined: 27 Nov 2008
Posts: 108

PostPosted: Tue Mar 31, 2009 3:56 pm    Post subject: Reply with quote

Try and install compat-gcc via apt or synaptic and head into /usr/bin then type

ls *gcc*

and post the output, assuming you got compat-gcc installed.

I had to use an older version of gcc on both the psptoolchain and ps2toolchain.
_________________
Programming with:
Geany + Latest PSPSDK from svn
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Tue Mar 31, 2009 9:22 pm    Post subject: Reply with quote

NoEffex wrote:
I had to use an older version of gcc on both the psptoolchain and ps2toolchain.

dito. Ubuntu 8.10 myself - for your interest.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
serge2k



Joined: 31 Mar 2009
Posts: 4

PostPosted: Wed Apr 01, 2009 2:43 am    Post subject: Reply with quote

I'll check and post results when I am back at that computer but for now I just want to note that I did choose to install gcc-4.2.

That didn't work so I used
Code:
sudo CC="gcc-4.2" ./toolchain-sudo.sh

running without that results in buffer overflow


edit:

output of ls *gcc*
Code:
c89-gcc  c99-gcc  gcc  gcc-4.2  gcc-4.3  gccmakedep  i486-linux-gnu-gcc  i486-linux-gnu-gcc-4.2  i486-linux-gnu-gcc-4.3  winegcc
Back to top
View user's profile Send private message
serge2k



Joined: 31 Mar 2009
Posts: 4

PostPosted: Wed Apr 01, 2009 10:57 am    Post subject: Reply with quote

tried
Code:
rm /usr/bin/gcc
ln -s /usr/bin/gcc-4.2 /usr/bin/gcc


still doesn't work.


edit: now it connects to redhat but still fails.

I have all the output saved and can post it if needed
Back to top
View user's profile Send private message
NoEffex



Joined: 27 Nov 2008
Posts: 108

PostPosted: Wed Apr 01, 2009 11:29 am    Post subject: Reply with quote

try

sudo apt-get install compat-gcc*

and do the ls *gcc* thing.

(Compat is way back like 3.4).
_________________
Programming with:
Geany + Latest PSPSDK from svn
Back to top
View user's profile Send private message
serge2k



Joined: 31 Mar 2009
Posts: 4

PostPosted: Wed Apr 01, 2009 11:49 am    Post subject: Reply with quote

couldn't find the package.

tried searching in synaptic too. didn't find anything.

did find gcc-3.4, is that it?

Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package compat-gcc
mccann@school:~/Desktop/psptoolchain$ sudo apt-get install compat-gcc*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package compat-gcc*
Back to top
View user's profile Send private message
NoEffex



Joined: 27 Nov 2008
Posts: 108

PostPosted: Wed Apr 01, 2009 3:07 pm    Post subject: Reply with quote

I don't know then, I am not familiar with the names of the debian packages.

What you could just do is compile it via source under some other directory or name.
_________________
Programming with:
Geany + Latest PSPSDK from svn
Back to top
View user's profile Send private message
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