Undefined references to 'memcpy' when compiling Linux Kernel

Alan Cox alan@lxorguk.ukuu.org.uk
Fri Jun 16 08:25:00 GMT 2000


> Instead, the code resulting for these functions is a 'call memcpy', a
> function that doesn't exist in the kernel. A -fbuiltin-functions or -O3 does
> not seem to solve the problem.

gcc assumes it is linked with libgcc. That isnt unreasonable but it breaks
on the kernel stuff. Turn the problem functions into using explicit memcpy
calls then mail me a diff. This is kernel over cleverness  not gcc.


>         /* Install the file handle in the dentry */
>         *((struct nfs_fh *) dentry->d_fsdata) = *fhandle;

Make that a memcpy

Alan



More information about the Gcc mailing list