Page 1 of 1

Problem while compiling the latest cvs ps2drv.

Posted: Fri Mar 12, 2004 6:57 pm
by ooPo
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. :)

Posted: Fri Mar 12, 2004 7:45 pm
by blackdroid
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 :)

Posted: Sat Mar 13, 2004 1:11 am
by mrbrown
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.

Posted: Sat Mar 13, 2004 3:20 am
by ooPo
I'm not really using a stable toolchain, so I wasn't sure if I would break things by committing the change.

Posted: Sat Mar 13, 2004 4:22 am
by blackdroid
adding that line does not break the compilation when using older iopgcc..