compiling toolchain fails at script 4

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

Moderators: cheriff, TyRaNiD

Post Reply
serge2k
Posts: 4
Joined: Tue Mar 31, 2009 2:18 pm

compiling toolchain fails at script 4

Post by serge2k »

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)
--2009-03-30 21:09:10-- ftp://sources.redhat.com/pub/newlib/new ... 5.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
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$
NoEffex
Posts: 106
Joined: Thu Nov 27, 2008 6:48 am

Post by NoEffex »

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
User avatar
Coldbird
Posts: 97
Joined: Thu Feb 08, 2007 7:22 am

Post by Coldbird »

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?
serge2k
Posts: 4
Joined: Tue Mar 31, 2009 2:18 pm

Post by serge2k »

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

sudo CC="gcc-4.2" ./toolchain-sudo.sh
running without that results in buffer overflow


edit:

output of ls *gcc*

Code: Select all

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
serge2k
Posts: 4
Joined: Tue Mar 31, 2009 2:18 pm

Post by serge2k »

tried

Code: Select all

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
NoEffex
Posts: 106
Joined: Thu Nov 27, 2008 6:48 am

Post by NoEffex »

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
serge2k
Posts: 4
Joined: Tue Mar 31, 2009 2:18 pm

Post by serge2k »

couldn't find the package.

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

did find gcc-3.4, is that it?

Code: Select all

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*
NoEffex
Posts: 106
Joined: Thu Nov 27, 2008 6:48 am

Post by NoEffex »

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
Post Reply