| View previous topic :: View next topic |
| Author |
Message |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Fri Mar 12, 2004 6:57 pm Post subject: Problem while compiling the latest cvs ps2drv. |
|
|
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 |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Fri Mar 12, 2004 7:45 pm Post subject: |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sat Mar 13, 2004 1:11 am Post subject: |
|
|
| 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 |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sat Mar 13, 2004 3:20 am Post subject: |
|
|
| 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 |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Sat Mar 13, 2004 4:22 am Post subject: |
|
|
adding that line does not break the compilation when using older iopgcc.. _________________ Kung VU |
|
| Back to top |
|
 |
|