Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Built mipsel cross-compiler error on buildroot
@ 2006-11-29  5:11 Doug Brewer
  2006-11-29  5:31 ` Pavel Roskin
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Brewer @ 2006-11-29  5:11 UTC (permalink / raw)
  To: buildroot

Hello,

I tried to use buildroot snpashots(20061128) to build mipsel cross-compiler,
I got the following errors;

...
 /home/brewer/buildroot/toolchain_build_mipsel/gcc-3.4.2-initial/gcc/xgcc
-B/home
/brewer/buildroot/toolchain_build_mipsel/gcc-3.4.2-initial/gcc/ -B/home/brewer/b
uildroot/build_mipsel/staging_dir/mipsel-linux-uclibc/bin/ -B/home/brewer/buildr
oot/build_mipsel/staging_dir/mipsel-linux-uclibc/lib/ -isystem /home/brewer/buil
droot/build_mipsel/staging_dir/mipsel-linux-uclibc/include -isystem /home/brewer
/buildroot/build_mipsel/staging_dir/mipsel-linux-uclibc/sys-include -O2  -DIN_GC
C -DCROSS_COMPILE  -DUSE_UCLIBC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wm
issing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GT
HR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/home/brewer/buildro
ot/toolchain_build_mipsel/gcc-3.4.2/gcc -I/home/brewer/buildroot/toolchain_build
_mipsel/gcc-3.4.2/gcc/. -I/home/brewer/buildroot/toolchain_build_mipsel/gcc-3.4.
2/gcc/../include   -DL_muldi3 -c /home/brewer/buildroot/toolchain_build_mipsel/g
cc-3.4.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from /home/brewer/buildroot/toolchain_build_mipsel/uClibc_dev//
usr/include/bits/sigcontext.h:28,
                 from /home/brewer/buildroot/toolchain_build_mipsel/uClibc_dev//
usr/include/signal.h:332,
                 from /home/brewer/buildroot/toolchain_build_mipsel/gcc-3.4.2/gc
c/config/mips/linux.h:202,
                 from ./tm.h:13,
                 from /home/brewer/buildroot/toolchain_build_mipsel/gcc-3.4.2/gc
c/libgcc2.c:43:
/home/brewer/buildroot/toolchain_build_mipsel/uClibc_dev//usr/include/asm/sigcon
text.h:12:25: asm/sgidefs.h: No such file or directory
In file included from ./tm.h:13,
                 from /home/brewer/buildroot/toolchain_build_mipsel/gcc-3.4.2/gc
c/libgcc2.c:43:
/home/brewer/buildroot/toolchain_build_mipsel/gcc-3.4.2/gcc/config/mips/linux.h:
211: error: field `uc_mcontext' has incomplete type
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[3]: Leaving directory `/home/brewer/buildroot/toolchain_build_mipsel/gcc-3.
4.2-initial/gcc'

Would you tell me how to fix? Thank you very much.

Warm regards,
Doug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] Built mipsel cross-compiler error on buildroot
  2006-11-29  5:11 [Buildroot] Built mipsel cross-compiler error on buildroot Doug Brewer
@ 2006-11-29  5:31 ` Pavel Roskin
  2006-11-30  6:17   ` Doug Brewer
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Roskin @ 2006-11-29  5:31 UTC (permalink / raw)
  To: buildroot

On Wed, 2006-11-29 at 13:11 +0800, Doug Brewer wrote:

> I tried to use buildroot snpashots(20061128) to build mipsel cross-compiler,
> I got the following errors;

> /home/brewer/buildroot/toolchain_build_mipsel/uClibc_dev//usr/include/asm/sigcon
> text.h:12:25: asm/sgidefs.h: No such file or directory

This looks like an inconsistency in the kernel headers.
asm/sigcontext.h is present, but asm/sgidefs.h is not (at least where
it's expected to be).

Make sure you have unifdef installed.  Try varying the version of the
kernel headers (e.g if it's 2.4.x, try 2.6.x and vice versa).  If it
doesn't help, try the released version of uClibc.  Also try another
compiler version (I would start with gcc 4.1.1).

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] Built mipsel cross-compiler error on buildroot
  2006-11-29  5:31 ` Pavel Roskin
@ 2006-11-30  6:17   ` Doug Brewer
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Brewer @ 2006-11-30  6:17 UTC (permalink / raw)
  To: buildroot

Pavel Roskin  wrote:
> On Wed, 2006-11-29 at 13:11 +0800, Doug Brewer wrote:
>
> > I tried to use buildroot snpashots(20061128) to build mipsel cross-compiler,
> > I got the following errors;
>
> > /home/brewer/buildroot/toolchain_build_mipsel/uClibc_dev//usr/include/asm/sigcon
> > text.h:12:25: asm/sgidefs.h: No such file or directory
>
> This looks like an inconsistency in the kernel headers.
> asm/sigcontext.h is present, but asm/sgidefs.h is not (at least where
> it's expected to be).
>
> Make sure you have unifdef installed.  Try varying the version of the
> kernel headers (e.g if it's 2.4.x, try 2.6.x and vice versa).  If it
> doesn't help, try the released version of uClibc.  Also try another
> compiler version (I would start with gcc 4.1.1).

First off, thanks for your reply. I have unifdef installed and tried
gcc 4.1.1 with no luck.
As you pointed out, asm/sgidefs.h is missing. I copied this file into
buildroot/toolchain_build_mipsel/linux/include/asm and
buildroot/toolchain_build_mipsel/uClibc_dev/usr/include/asm, the
problem will be solved.
I use linux-2.6.18.3 kernel headers, I think buildroot developers
might provide a patch to
fix that problem, thanks.

> --
> Regards,
> Pavel Roskin

Warm regards,
Doug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-30  6:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29  5:11 [Buildroot] Built mipsel cross-compiler error on buildroot Doug Brewer
2006-11-29  5:31 ` Pavel Roskin
2006-11-30  6:17   ` Doug Brewer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox