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 

Building the toolchain on Ubuntu - missing files?

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



Joined: 30 May 2008
Posts: 5

PostPosted: Mon Jun 02, 2008 3:13 am    Post subject: Building the toolchain on Ubuntu - missing files? Reply with quote

Hi!

I am trying to build the ps2toolchain in an Ubuntu VM, so I can have a "Canned" basic config to go back to in case of need. The VM I have is Ubuntu 8.10 in a VMWare appliance.

Now that I have setup the basic utilities and got the toolchain from svn, I am stuck because the scripts wont' complete.

After some prodding, it breaks down when the 001-binutils-2.14.sh script invokes the binutils configure script. The error that comes out is this:
Quote:
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

I checked, and the problem is not with the CC variable; the conftest.c file does not exist.

Ok, the rest of the info: the script is in /home/user/ps2toolchain , I am launching it like this: sudo toolchain-sudo.h (to skip the permissions problems) from the /home/user/ps2toolchain directory.
Back to top
View user's profile Send private message Visit poster's website
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Mon Jun 02, 2008 5:20 am    Post subject: Reply with quote

Assume you mean Ubuntu 8.04. I just started building the ps2toolchains on a Ubuntu 8.04 system and it seems to be going without any problems. I only installed subversion and build-essential on an almost fresh install of Ubuntu 8.04 to make it work.

Code:
sudo apt-get install subversion
sudo apt-get install build-essential

_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
ragnarok2040



Joined: 09 Aug 2006
Posts: 230

PostPosted: Mon Jun 02, 2008 5:29 am    Post subject: Reply with quote

conftest.c is created by the configure script during configuration to test for a compiler that works. When conftest.c is created it just contains void f(){}. You can create the file yourself and do the compile command to see what errors occur to see what the problem is.
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Tue Jun 03, 2008 5:19 pm    Post subject: Reply with quote

I can confirm that the toolchain can be built without any problems on Ubuntu 8.04.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Jun 04, 2008 1:10 am    Post subject: Reply with quote

When someone has a problem building the PS2/PSP toolchain in Ubuntu (or many other distros), it's often because they're missing a dependency. Be sure to go through the list and make sure you have them all installed. The list of dependencies can be found in many threads and tutorials on installing the toolchain and SDK.
Back to top
View user's profile Send private message AIM Address
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Jun 04, 2008 1:34 am    Post subject: Reply with quote

Quote:
## Install the required packages.
sudo apt-get install build-essential autoconf automake bison flex \
libncurses5-dev libreadline-dev libusb-dev texinfo

That's from the readme-ubuntu.txt in psptoolchain, and should be fairly applicable to ps2toolchain too.
Back to top
View user's profile Send private message Visit poster's website
gilbertf



Joined: 30 May 2008
Posts: 5

PostPosted: Thu Jun 12, 2008 9:27 am    Post subject: Reply with quote

Lukasz wrote:
Assume you mean Ubuntu 8.04. I just started building the ps2toolchains on a Ubuntu 8.04 system and it seems to be going without any problems. I only installed subversion and build-essential on an almost fresh install of Ubuntu 8.04 to make it work.

Code:
sudo apt-get install subversion
sudo apt-get install build-essential


Sorry for the lag, I have been out of town a lot lately.

I am currently using an Ubuntu 7.10 virtual machine. Seems I don't have build-essential completely (7 packages missing), so I'll try that first.

I had started by apt-getting all the packages specified in the readme, but there are some missing from the build-essential list.
Back to top
View user's profile Send private message Visit poster's website
gilbertf



Joined: 30 May 2008
Posts: 5

PostPosted: Fri Jun 13, 2008 11:40 am    Post subject: Build-essentials is what the doctor ordered Reply with quote

The script worked after installing the package. Yay!

I'll try to compile a demo from the SVN to be sure, but it looks good.

Thanks a lot to you all! Now, off to some real tinkering...
Back to top
View user's profile Send private message Visit poster's website
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Mon Aug 25, 2008 7:03 pm    Post subject: Reply with quote

More on PS2DEV + Ubuntu:
http://www.thegshi.org/vb/showthread.php?t=3158
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 -> PS2 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