Re: Undefined references to 'memcpy' when compiling Linux Kernel

From: Alan Cox (
Date: Fri Jun 16 2000 - 10:22:04 EST

> 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


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:13 EST