This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-3.0.2: i686: builds; i586: fails



Some further information on the build failure for i686, glibc-2.0.7,
SuSE-6.1, Kernel: linux-2.2.7.SuSE:

 Linux version 2.2.7 ... (gcc version 2.7.2.3) ... SMP

The error message

> ../../gcc-3.0.2/gcc/config/i386/linux.h:237:26: sys/ucontext.h: No such file

was right.

A  "locate ucontext.h"  exhibits:

/usr/src/linux-2.2.7.SuSE/include/asm-alpha/ucontext.h
/usr/src/linux-2.2.7.SuSE/include/asm-arm/ucontext.h
/usr/src/linux-2.2.7.SuSE/include/asm-i386/ucontext.h
/usr/src/linux-2.2.7.SuSE/include/asm-m68k/ucontext.h
/usr/src/linux-2.2.7.SuSE/include/asm-mips/ucontext.h
/usr/src/linux-2.2.7.SuSE/include/asm-ppc/ucontext.h

and /usr/src/linux-2.2.7.SuSE/include/asm-i386/ucontext.h contains

#ifndef _ASMi386_UCONTEXT_H
#define _ASMi386_UCONTEXT_H

struct ucontext {
        unsigned long     uc_flags;
        struct ucontext  *uc_link;
        stack_t           uc_stack;
        struct sigcontext uc_mcontext;
        sigset_t          uc_sigmask;   /* mask last for extensibility */
};

#endif /* !_ASMi386_UCONTEXT_H */

I have no idea, which location for this file is right one ...

 ... and, oh, btw. configure was called with

--prefix=/opt/gcc3.0.2
--exec-prefix=/opt/gcc3.0.2
--enable-languages=c,f77,c++

from a separte build directory from outside the source.

 Cheers,
   Peter Schorsch

>
> Hi,
>
> gcc-3.0.2 will also not build on a (unmodified) SuSE-6.1,
> glibc-2.0.7, binutils 2.9.1 (with BFD 2.9.1.0.22) system.
>
> The build stops with the following error message:
>
> ./xgcc -B./ -B/opt/gcc3.0.2/i686-pc-linux-gnu/bin/ -isystem
> /opt/gcc3.0.2/i686-p
> c-linux-gnu/include -O2   -DIN_GCC    -W -Wall -Wwrite-strings
> -Wstrict-prototyp
> es -Wmissing-prototypes -isystem ./include  -fPIC -g1  -DIN_LIBGCC2
> -D__GCC_FLOA
> T_NOT_NEEDED  -I. -I. -I../../gcc-3.0.2/gcc -I../../gcc-3.0.2/gcc/.
> -I../../gcc-
> 3.0.2/gcc/config -I../../gcc-3.0.2/gcc/../include  -DL_muldi3 -c
> ../../gcc-3.0.2
> /gcc/libgcc2.c -o libgcc/./_muldi3.o
> In file included from tm.h:7,
>                  from ../../gcc-3.0.2/gcc/config/i386/xm-i386.h:39,
>                  from tconfig.h:3,
>                  from ../../gcc-3.0.2/gcc/libgcc2.c:36:
> ../../gcc-3.0.2/gcc/config/i386/linux.h:237:26: sys/ucontext.h: No such file
> or
> directory
> make[3]: *** [libgcc/./_muldi3.o] Error 1
> make[3]: Leaving directory `/opt/home/pete/gcc295.2/build/gcc'
> make[2]: *** [libgcc.a] Error 2
> make[2]: Leaving directory `/opt/home/pete/gcc295.2/build/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/opt/home/pete/gcc295.2/build/gcc'
> make: *** [bootstrap] Error 2
>
> At least at http://www.gnu.org/software/gcc/gcc-3.0/ i can't find any
> note about software requirements for a successfull build of the gcc-3.0
> series .(?).
>
> Cheers,
>   Peter Schorsch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]