[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Build problem

On Wednesday 11 September 2002 12:16, anderson@freestandards.org wrote:
> I'm still having a problem building LSB-SI from scratch on my Debian
> system.
> It fails in phase 2 when trying to build gcc 3.2. The first place it fails
> is in building libiberty. stdio.h is looking for bits/sys_errlist.h. I
> edited stdio.h to take out the #include, and it progressed OK, but then it
> failed with
> gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-lonxxg 
> -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.2/gcc
> -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config
> -I../../gcc-3xx.2/gcc/../include ../../gcc-3.2/gcc/gengenrtl.c -o
> gengenrtl.o -: In file included from ../../gcc-3.2/gcc/gengenrtl.c:23:
> -: ../../gcc-3.2/gcc/system.h:341: conflicting types for `getrlimit'
> -: /usr/include/sys/resource.h:52: previous declaration of `getrlimit'
> -: ../../gcc-3.2/gcc/system.h:352: conflicting types for `setrlimit'
> -: /usr/include/sys/resource.h:72: previous declaration of `setrlimit'
> -: make[2]: *** [gengenrtl.o] Error 1
> How is this working for everyone else??

Have you tried removing all of the patches from where you build and then 
copying over fresh ones from cvs?  Perhaps you have an out of date patch for 
gcc/glibc.  Since it is failing in phase2 and not in the bootstrap it has to 
be a problem within the si and its sources not the host system.

Reply to: