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 

Problem while compiling the latest cvs ps2drv.

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


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Mar 12, 2004 6:57 pm    Post subject: Problem while compiling the latest cvs ps2drv. Reply with quote

In ps2netfs, I was getting this error:

Quote:

iop-gcc -miop -nostdlib -s -o ps2netfs.irx ps2netfs.o ps2_fio.o devscan.o imports.o
ps2_fio.o(.text+0x1850): In function `ps2netfs_op_dread':
ps2_fio.c: undefined reference to `memcpy'
ps2_fio.o(.text+0x1980):ps2_fio.c: undefined reference to `memcpy'


I added a line for memcpy in imports.lst:

Quote:

sysclib_IMPORTS_start
I_memset
I_memcmp
I_memcpy
I_strlen
I_strcmp
I_strcpy
I_strncpy
I_strncmp
sysclib_IMPORTS_end



I'd update it in cvs myself but I'd rather not step on anyone's toes. :)
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Fri Mar 12, 2004 7:45 pm    Post subject: Reply with quote

comit it, thats what cvs is for, you can always go back/change it again.

On the other hand, the old iop-gcc do not complain :)
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Mar 13, 2004 1:11 am    Post subject: Reply with quote

GCC will try to inline memcpy unless you turn on -fno-builtin or -fno-builtin-memcpy. However, it seems that the GCC you are using has changed its rules for memcpy inlining, since as bd says iop-gcc 2.8.1 inlined where yours didn't.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Mar 13, 2004 3:20 am    Post subject: Reply with quote

I'm not really using a stable toolchain, so I wasn't sure if I would break things by committing the change.
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sat Mar 13, 2004 4:22 am    Post subject: Reply with quote

adding that line does not break the compilation when using older iopgcc..
_________________
Kung VU
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