Hi Marc,
        Thanks for your response. I looked at config.log and I got the 
following information about sbrk. This error only occurs when I type "make." If 
I reconfigured the build directory and typed "make -j8" (or whatever the number 
of cores I have on my machine) it seem to build fine. 

configure:10333: checking whether sbrk is declared
| #ifndef sbrk
| char *(*pfn) = (char *(*)) sbrk ;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW;
../../trunk-gcc/gcc/system.h:446:14: error: conflicting types for 'sbrk'
 extern void *sbrk (int);
/usr/include/unistd.h:1046:14: note: previous declaration of 'sbrk' was here  
extern void *sbrk (intptr_t __delta) __THROW; 
gcc_cv_have_decl_sbrk=no



-Balaji V. Iyer.


> -----Original Message-----
> From: Marc Glisse [mailto:marc.gli...@inria.fr]
> Sent: Tuesday, January 08, 2013 1:31 AM
> To: Iyer, Balaji V
> Cc: 'gcc@gcc.gnu.org'
> Subject: Re: Build error in genconstants.c
> 
> On Tue, 8 Jan 2013, Iyer, Balaji V wrote:
> 
> > Hello Everyone,
> >     I am getting the following error when I tried to build the trunk 
> > (revision
> 194999) on my SuSE machine (Linux 2.6.32.29-0.3-default x86_64).  I just did 
> the
> standard configure (../src_directory/configure --prefix=<>). It looks like 
> some
> syscall functions on my machine seem to not like the system.h that is 
> available
> with GCC.
> >
> >     Is there anything I can do to fix this? Any help is greatly appreciated!
> 
> This looks like
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55784
> 
> which was supposedly fixed by the use of $GMPINC, but your revision is recent
> enough to have the fix, so something is still wrong.
> 
> Maybe look through config.log for the corresponding test?
> 
> --
> Marc Glisse

Reply via email to