Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.
Moderators: cheriff , Herben
ooPo
Site Admin
Posts: 2023 Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:
Post
by ooPo » Fri Mar 12, 2004 6:57 pm
In ps2netfs, I was getting this error:
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:
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. :)
blackdroid
Posts: 564 Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:
Post
by blackdroid » Fri Mar 12, 2004 7:45 pm
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
mrbrown
Site Admin
Posts: 1537 Joined: Sat Jan 17, 2004 11:24 am
Post
by mrbrown » Sat Mar 13, 2004 1:11 am
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.
ooPo
Site Admin
Posts: 2023 Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:
Post
by ooPo » Sat Mar 13, 2004 3:20 am
I'm not really using a stable toolchain, so I wasn't sure if I would break things by committing the change.
blackdroid
Posts: 564 Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:
Post
by blackdroid » Sat Mar 13, 2004 4:22 am
adding that line does not break the compilation when using older iopgcc..
Kung VU