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 

not able to compile usb_mass

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



Joined: 28 Jun 2004
Posts: 2

PostPosted: Sun Jan 09, 2005 6:16 am    Post subject: not able to compile usb_mass Reply with quote

I have a win32 - cygwin installation (Jules compiler binaries) with ps2sdk 1.2. Yesterday I downloaded usb_mass module from CVS.

When compiling iop dir I get this messages:

Code:

$ make
iop-gcc  -O2 -G0 -c -I/ps2sdk/iop/include -I/ps2sdk/common/include -I. -D_PS2_ mass_stor.c -o mass_stor.o
iop-gcc  -O2 -G0 -c -I/ps2sdk/iop/include -I/ps2sdk/common/include -I. -D_PS2_ fat_driver.c -o fat_driver.o
iop-gcc  -O2 -G0 -c -I/ps2sdk/iop/include -I/ps2sdk/common/include -I. -D_PS2_ scache.c -o scache.o
iop-gcc  -O2 -G0 -c -I/ps2sdk/iop/include -I/ps2sdk/common/include -I. -D_PS2_ usb_mass.c -o usb_mass.o

echo "#include \"irx_imports.h\"" > build-imports.c
cat imports.lst >> build-imports.c
iop-gcc  -O2 -G0 -c -I/ps2sdk/iop/include -I/ps2sdk/common/include -I. -D_PS2_ build-imports.c -o imports.o
build-imports.c:3: section attributes are not supported for this target
build-imports.c:7: section attributes are not supported for this target
build-imports.c:11: section attributes are not supported for this target
build-imports.c:22: section attributes are not supported for this target
build-imports.c:30: section attributes are not supported for this target
build-imports.c:39: section attributes are not supported for this target
build-imports.c:44: section attributes are not supported for this target
build-imports.c:50: section attributes are not supported for this target
build-imports.c:57: section attributes are not supported for this target
make: *** [imports.o] Error 1


And when compiling the ee dir I get this:

Code:

$ make
ee-gcc -D_EE -O2 -G0 -Wall  -I/ps2sdk/ee/include -I/ps2sdk/common/include -I.  -c mass_example.c -o mass_example.o
mass_example.c: In function `listDirRecord':
mass_example.c:31: warning: implicit declaration of function `printf'
mass_example.c: In function `main':
mass_example.c:219: subscripted value is neither array nor pointer
mass_example.c:220: subscripted value is neither array nor pointer
mass_example.c:176: warning: `paddata' might be used uninitialized in this function
make: *** [mass_example.o] Error 1


I don't know what's wrong (I´m new to ps2 dev but I'm an experienced programmer). Could someone help me?

Thanks in advance.

moev.
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sun Jan 09, 2005 6:29 am    Post subject: Reply with quote

This is only the example which doesn't compile, and it prolly is linked to the fact we changed some things in ps2sdk. Well, it's only an example, doesn't really matter.
_________________
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
moev



Joined: 28 Jun 2004
Posts: 2

PostPosted: Sun Jan 09, 2005 7:20 am    Post subject: Reply with quote

ee dir compiles ok with ps2sdk 1.1. But iop dir does not compile even with 1.1 sdk and this dir is the really target of the project (usb_mass.irx build).

I really don't know what this message means and how to solve in order to generate usb_mass.irx.

--> section attributes are not supported for this target


UPDATE: I was able to compile usb_mass.irx by updating the compiler framework to Jules 2004 files.


moev.
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sun Jan 09, 2005 10:23 am    Post subject: Reply with quote

Ho, sorry, I've read your post too fast (as I usually do). Anyway, you fixed your problem yourself, great :)
_________________
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
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Tue Jan 11, 2005 9:47 pm    Post subject: Reply with quote

Im trying to build the ee portion of this - the demo elf (ironically the irx built with only a couple of warnings) and was wondering what had needed to be done to be sure it compiled (Jules 2004 build is what in other words....)?
Back to top
View user's profile Send private message
BraveDog



Joined: 30 Dec 2004
Posts: 29
Location: Cleveland

PostPosted: Tue Jan 11, 2005 10:15 pm    Post subject: Reply with quote

If you are using ps2sdk 1.2. Then do this.

You need to change this line. The first list is the original, the second is what it should be changed to.

The btns are no longer an array.
Code:
<          paddata = 0xffff ^ ((buttons.btns[0] << 8) |
<                                 buttons.btns[1]);
---
>          paddata = 0xffff ^ buttons.btns;


Also I had to add
Code:
#include <tamtypes.h>

to the top of mass_rpc.c
-BD
Back to top
View user's profile Send private message
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Wed Jan 12, 2005 8:35 pm    Post subject: Reply with quote

Arrgh, I spent alot of time looking for the declaration of buttons and never did come across it.

I did the changes and now it compiles like a charm, I had misread which file to add tamtypes to and thought I messed something up, but its all ok now

Thanks BraveDog
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