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 PS2MENU

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



Joined: 25 Dec 2004
Posts: 7

PostPosted: Sat Jan 08, 2005 4:28 am    Post subject: Compiling PS2MENU Reply with quote

Hello, sorry for my english i'm from spain and i dont speak english , but i'm learning it :), i need your help , when i try to compile the PS2MENU of cvs.ps2ded.org i get this error:
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoGsPacketNum
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x104):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoGsPacketNum
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x10c):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActiveGsPacketStart
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x110):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActiveGsPacket
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x128): In function `it
oGetActiveGsPacketSizeQ':
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoActiveGsPacket
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x12c):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActiveGsPacketStart
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x140): In function `it
oSetActivePacket':
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoActivePacketStart
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x144):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActivePacket
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x190): In function `it
oSendActivePacket':
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoActivePacketStart
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x1a8): In function `it
oGetActivePacketSizeQ':
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoActivePacket
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x1ac):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActivePacketStart
collect2: ld returned 1 exit status
make[1]: *** [../bin/ps2menu.elf] Error 1
make[1]: Leaving directory `/usr/local/ps2dev/shares/ps2menu/ps2menu'
make: *** [all] Error 2

pancho@sargosbreados /usr/local/ps2dev/shares/ps2menu
$
What happend , i dont know what is the meaning of "relocation truncated to fit "
Thanks for your help
Back to top
View user's profile Send private message
BraveDog



Joined: 30 Dec 2004
Posts: 29
Location: Cleveland

PostPosted: Sat Jan 08, 2005 5:53 am    Post subject: Reply with quote

Try adding '-G0' to the EE_CFLAGS.
You might have to recompile libito with that as well.
Back to top
View user's profile Send private message
fulasypescados



Joined: 25 Dec 2004
Posts: 7

PostPosted: Sat Jan 08, 2005 6:20 am    Post subject: Reply with quote

Works perfectly Thank you BraveDog . I don't understand the message of the
gcc "relocation truncated to fit" could you explaim me what was the error and
why ,when I recompile the libbito whith EE_CFLAGS -G0, worked .
THANKS.
Back to top
View user's profile Send private message
BraveDog



Joined: 30 Dec 2004
Posts: 29
Location: Cleveland

PostPosted: Sat Jan 08, 2005 7:55 am    Post subject: Reply with quote

Sorry, don't know the full details.
Google is a great search tool. Try:
"relocation truncated to fit" MIPS

and do some reading. :)
Like here:
http://www.linux-mips.org/archives/linux-mips/2001-09/msg00133.html
-BD
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Jan 08, 2005 5:05 pm    Post subject: Reply with quote

Ho well, that's a known issue... there's something in the mips called "$gp", a register, that is "global pointer". It can point to a 64kb of memory. Pointers to this locations will be saving 4 bytes to access them. Now there's only 64kb.... having -G0 says "don't put anything in that global section please", otherwise you might end up with that error...
_________________
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
rafael2k



Joined: 14 Jan 2007
Posts: 18

PostPosted: Sun Jan 14, 2007 6:52 am    Post subject: PS2MENU w/ problems to copy .gz file Reply with quote

I'm trying to copy a initrd.gz to my memory card to be able to boot linux in my ps2 linux, but ps2menu says the it cannot copy compressed to the memory card...
how can i bypass this?
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