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 

iop compile

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



Joined: 21 Jan 2004
Posts: 9
Location: Canada

PostPosted: Thu Jan 29, 2004 7:00 pm    Post subject: iop compile Reply with quote

Hi,
I find problem to compile the IOP module, whatever try to compile the sample \ps2lib-2.1\iop\sample\hello\hello.c. the iop-cc keep on running and seems hang up my PC!!! Somebody help please!!!
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Thu Jan 29, 2004 9:11 pm    Post subject: Reply with quote

probably a case of badly compiled iop-gcc, first of all if you are using an iop-gcc with version 3.2.2 you wont succeed in making any irx's at all.
the latest iop-gcc version (atm gcc-2.8.1) can be found on ps2dev.sf.net and you will have to compile it.
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Jan 29, 2004 10:41 pm    Post subject: Reply with quote

superufo:

1) What version of iop-gcc are you using?

2) Are you using cygwin, linux, or something else? What version?

3) How do you obtain your toolchain? Did you build it yourself?

Give us some info, man! :)
Back to top
View user's profile Send private message Visit poster's website
superufo



Joined: 21 Jan 2004
Posts: 9
Location: Canada

PostPosted: Fri Jan 30, 2004 3:16 am    Post subject: Reply with quote

Hi ooPo and blackdroid,
I am using Windows stuff. I try ps2-ee-dvp-iop-tools-win32.exe(http://ps2dev.sourceforge.net/), and ps2DevEnvironment.exe(http://ps2dev.org/) all give me the same result :( However, is there anyway to get a workable bin???
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Fri Jan 30, 2004 4:16 am    Post subject: Reply with quote

Those should work.. what does
iop-gcc --version give ?
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
superufo



Joined: 21 Jan 2004
Posts: 9
Location: Canada

PostPosted: Fri Jan 30, 2004 9:13 am    Post subject: Reply with quote

Hi,
How can I know what version it is. However, I just download them from there web site and seems it should be the lastest version. Thanks!
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Fri Jan 30, 2004 5:35 pm    Post subject: Reply with quote

I already said iop-gcc --version
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Fri Jan 30, 2004 5:47 pm    Post subject: Reply with quote

oh! thanks, the iop-gcc --version is 2.8.2-ps2dev.
Back to top
boman666



Joined: 30 Jan 2004
Posts: 33
Location: Hell

PostPosted: Thu Feb 05, 2004 11:00 am    Post subject: Reply with quote

The iop-compiler in both those precompiled packages is broken. If you invoke the iop-gcc with the -v option, you'll see that it in turn is invoking components of the native compiler instead of the iop components.

I managed to get a working iop-compiler by following the instructions in the iop-tutorial on ps2dev.org. Unfortunately, if you follow the instructions, the compiler won't be able to create binaries in the .irx-format. The binutils-2.9.1 must be built with the --target=mipsel-scei-irx to be able to create binaries in the .irx-format. Then you'll have the prb that gcc-2.8.1 must be built with --target=mipsel-scei-elfl. I fixed that by modifying configure.tgt in binutils-2.9.1/ld, like this:

find the line:

mips*el-*-elf*) targ_emul=elf32elmip ;;

change it to:

mips*el-*-elf*) targ_emul=mipsirx
targ_extra_emuls=elf32elmip
;;

now you can build the binutils-2.9.1 with --target=mipsel-scei-elfl and it'll be able to create .irx-binaries. Invoke iop-ld with the -V option to verify that it's able to build mipsirx.

There is probably a niftier solution but I've spent way to much time on getting the compilers/environment up already.
Back to top
View user's profile Send private message
superufo



Joined: 21 Jan 2004
Posts: 9
Location: Canada

PostPosted: Thu Feb 05, 2004 1:27 pm    Post subject: Reply with quote

Hi Boman666,
Thankyou very mauch for you useful info, I will test it as your suggestion. :wink:
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Feb 05, 2004 10:46 pm    Post subject: Reply with quote

Why not just use --target=iop for both?
Back to top
View user's profile Send private message Visit poster's website
boman666



Joined: 30 Jan 2004
Posts: 33
Location: Hell

PostPosted: Fri Feb 06, 2004 5:37 am    Post subject: Reply with quote

That's probably one of the niftier solutions I was looking for. Why don't you ppl with this knowledge correct all the errors in the tutorials. For someone new to this environment, it's a real pain to figure out why things don't work.
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Fri Feb 06, 2004 6:01 am    Post subject: Reply with quote

Because it requires time :-)
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Feb 06, 2004 6:03 am    Post subject: Reply with quote

Welcome to ps2dev. :)

I try to keep a fairly up-to-date tutorial and patches on my site ( http://www.oopo.net/consoledev ) since other tutorials tend to get lost in the sands of time...
Back to top
View user's profile Send private message Visit poster's website
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