Mipsel build error
Evan Kroske
e.kroske at gmail.com
Thu Jul 22 14:39:53 UTC 2010
On Wed, Jul 21, 2010 at 2:43 PM, Evan Kroske <e.kroske at gmail.com> wrote:
> I'm getting a weird build error when I try to cross-compile uClibc for
> little-endian mips. Here's the error:
>
> In file included from ./include/sys/ucontext.h:26,
> from ./include/ucontext.h:25,
> from ./include/signal.h:389,
> from libc/sysdeps/linux/mips/sigaction.c:23:
> ./include/sys/procfs.h:46: error: invalid application of 'sizeof' to
> incomplete type 'struct user_regs'
>
> Here's the complete build output:
> http://users.openinkpot.org/~evankroske/incomplete-type-struct-user_regs-uclibc-build-output
> Here's my config file:
> http://git.iplinux.org/uclibc.git/tree/debian/mipsel.config?h=monolithic-uclibc
>
> I can't find a declaration for user_regs anywhere in uClibc or my
> linux headers. What does sys/procfs.h do, and why does it need 'struct
> user_regs'? Thanks.
>
> --
> Evan Kroske
> http://welcome2obscurity.blogspot.com/
> The personal blog of Evan Kroske,
> novice software developer.
>
I'm starting to figure out what's going on, but I have no idea why.
For some reason, uClibc is installing the wrong procfs.h header. The
symlink in the build tree for procfs.h points to the file
libc/sysdeps/linux/arm/sys/procfs.h instead of
libc/sysdeps/linux/mips/sys/procfs.h. However, the rest of the
symlinks I checked pointed to the correct headers, even the other
symlinks within the sys directory. Any idea what could be causing this
bad build?
--
Evan Kroske
http://welcome2obscurity.blogspot.com/
The personal blog of Evan Kroske,
novice software developer.
More information about the uClibc
mailing list