public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Build error after successful config on Redhat 6.2 with gcc 4.8.2
       [not found] <3963E67C-49BA-4463-AF0F-032FC2D4CF8E@gmail.com>
@ 2014-01-14 22:54 ` crazed.husk
  2014-01-15  0:21   ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: crazed.husk @ 2014-01-14 22:54 UTC (permalink / raw)
  To: gcc-help

Hello.  I'm attempting to build gcc 4.8.2 on a RedHat 6.2 system using gcc 4.4.7.  The configure seemed to run just fine, but when I do the make I very quickly get the syntax errors in the build.  This can't be a normal thing, so I'm assuming I'm missing something obvious.  Anyone see this before?  Am I attempting to great a jump going from 4.4 to 4.8?  Thanks in advance for your help.



# make
g++ -c   -g  -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/usr/local/src/gcc/gcc/gcc -I/usr/local/src/gcc/gcc/gcc/build -I/usr/local/src/gcc/gcc/gcc/../include -I/usr/local/src/gcc/gcc/gcc/../libcpp/include  -I/usr/local/src/gcc/gcc/gcc/../libdecnumber -I/usr/local/src/gcc/gcc/gcc/../libdecnumber/bid -I../libdecnumber -I/usr/local/src/gcc/gcc/gcc/../libbacktrace    \
		-o build/genmddeps.o /usr/local/src/gcc/gcc/gcc/genmddeps.c
In file included from /usr/include/sys/resource.h:25,
                 from /usr/include/sys/wait.h:32,
                 from /usr/local/src/gcc/gcc/gcc/system.h:358,
                 from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
/usr/include/bits/resource.h:127: error: declaration does not declare anything
In file included from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
/usr/local/src/gcc/gcc/gcc/system.h:450: error: declaration of C function ‘void* sbrk(int)’ conflicts with
/usr/include/unistd.h:1053: error: previous declaration ‘void* sbrk(intptr_t)’ here
/usr/local/src/gcc/gcc/gcc/system.h:454: error: new declaration ‘char* strstr(const char*, const char*)’
/usr/include/string.h:323: error: ambiguates old declaration ‘const char* strstr(const char*, const char*)’
In file included from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
/usr/local/src/gcc/gcc/gcc/system.h:506: error: declaration of C function ‘const char* strsignal(int)’ conflicts with
/usr/include/string.h:566: error: previous declaration ‘char* strsignal(int)’ here
In file included from /usr/local/src/gcc/gcc/gcc/system.h:651,
                 from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:110: error: new declaration ‘char* basename(const char*)’
/usr/include/string.h:603: error: ambiguates old declaration ‘const char* basename(const char*)’
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:628: warning: declaration of ‘int snprintf(char*, size_t, const char*, ...)’ with C language linkage
/usr/local/src/gcc/gcc/gcc/system.h:533: warning: conflicts with previous declaration ‘int snprintf(char*, size_t, const char*, ...)’
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:628: warning: due to different exception specifications
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:633: warning: declaration of ‘int vsnprintf(char*, size_t, const char*, __va_list_tag*)’ with C language linkage
/usr/local/src/gcc/gcc/gcc/system.h:537: warning: conflicts with previous declaration ‘int vsnprintf(char*, size_t, const char*, __va_list_tag*)’
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:633: warning: due to different exception specifications
make: *** [build/genmddeps.o] Error 1
#

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

* Re: Build error after successful config on Redhat 6.2 with gcc 4.8.2
  2014-01-14 22:54 ` Build error after successful config on Redhat 6.2 with gcc 4.8.2 crazed.husk
@ 2014-01-15  0:21   ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2014-01-15  0:21 UTC (permalink / raw)
  To: crazed.husk; +Cc: gcc-help

On Tue, Jan 14, 2014 at 2:54 PM,  <crazed.husk@gmail.com> wrote:
>
> Hello.  I'm attempting to build gcc 4.8.2 on a RedHat 6.2 system using gcc 4.4.7.


I assume you know that Red Hat 6.2 is very very old.  You have to
expect some challenges.


> # make
> g++ -c   -g  -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/usr/local/src/gcc/gcc/gcc -I/usr/local/src/gcc/gcc/gcc/build -I/usr/local/src/gcc/gcc/gcc/../include -I/usr/local/src/gcc/gcc/gcc/../libcpp/include  -I/usr/local/src/gcc/gcc/gcc/../libdecnumber -I/usr/local/src/gcc/gcc/gcc/../libdecnumber/bid -I../libdecnumber -I/usr/local/src/gcc/gcc/gcc/../libbacktrace    \
>                 -o build/genmddeps.o /usr/local/src/gcc/gcc/gcc/genmddeps.c
> In file included from /usr/include/sys/resource.h:25,
>                  from /usr/include/sys/wait.h:32,
>                  from /usr/local/src/gcc/gcc/gcc/system.h:358,
>                  from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
> /usr/include/bits/resource.h:127: error: declaration does not declare anything
> In file included from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
> /usr/local/src/gcc/gcc/gcc/system.h:450: error: declaration of C function ‘void* sbrk(int)’ conflicts with
> /usr/include/unistd.h:1053: error: previous declaration ‘void* sbrk(intptr_t)’ here

GCC's configure script thinks that your system does not have a
declaration for sbrk in the system header files.  But it does, and
GCC's default definition (in gcc/system.h) does not match the one in
the system header files.  You need to look at gcc/config.log to see
why configure thought your system did not have sbrk.

Ian

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

end of thread, other threads:[~2014-01-15  0:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3963E67C-49BA-4463-AF0F-032FC2D4CF8E@gmail.com>
2014-01-14 22:54 ` Build error after successful config on Redhat 6.2 with gcc 4.8.2 crazed.husk
2014-01-15  0:21   ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).