public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/109589] New: [14 regression] r14-35-g278f8f567b5470 breaks build with older gcc build compilers
@ 2023-04-21 15:56 seurer at gcc dot gnu.org
  2023-04-21 17:48 ` [Bug other/109589] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: seurer at gcc dot gnu.org @ 2023-04-21 15:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109589

            Bug ID: 109589
           Summary: [14 regression] r14-35-g278f8f567b5470 breaks build
                    with older gcc build compilers
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:278f8f567b5470e87e2e6482ee385d61c7f45a5d, r14-35-g278f8f567b5470

This update is causing build failures on a couple of our old RHEL 7.9 systems
if I use the system compiler.  If I use a newer build compiler it works fine.

gcc -v
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 


Is gcc 4.8.5 no longer suitable for builds?


make[2]: Entering directory '/home/seurer/gcc/git/build/gcc-test/gcc'
g++ -std=gnu++11 -c   -g -O2     -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H  -DGENERATOR_FILE -I. -Ibuild
-I/home/seurer/gcc/git/gcc-test/gcc -I/home/seurer/gcc/git/gcc-test/gcc/build
-I/home/seurer/gcc/git/gcc-test/gcc/../include 
-I/home/seurer/gcc/git/gcc-test/gcc/../libcpp/include  \
        -o build/genmodes.o /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc
In file included from ./bconfig.h:3:0,
                 from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:20:
./auto-host.h:2637:16: error: declaration does not declare anything
[-fpermissive]
 #define rlim_t long
                ^
In file included from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:21:0:
/home/seurer/gcc/git/gcc-test/gcc/system.h:500:23: error: declaration of C
function 'void* sbrk(int)' conflicts with
 extern void *sbrk (int);
                       ^
In file included from /home/seurer/gcc/git/gcc-test/gcc/system.h:302:0,
                 from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:21:
/usr/include/unistd.h:1065:14: error: previous declaration 'void*
sbrk(intptr_t)' here
 extern void *sbrk (intptr_t __delta) __THROW;
              ^
In file included from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:21:0:
/home/seurer/gcc/git/gcc-test/gcc/system.h:508:48: error: new declaration
'char* strstr(const char*, const char*)'
 extern char *strstr (const char *, const char *);
                                                ^
In file included from /usr/include/c++/4.8.2/cstring:42:0,
                 from /home/seurer/gcc/git/gcc-test/gcc/system.h:241,
                 from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:21:
/usr/include/string.h:331:1: error: ambiguates old declaration 'const char*
strstr(const char*, const char*)'
 strstr (const char *__haystack, const char *__needle) __THROW
 ^
In file included from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:21:0:
/home/seurer/gcc/git/gcc-test/gcc/system.h:556:34: error: declaration of C
function 'const char* strsignal(int)' conflicts with
 extern const char *strsignal (int);
                                  ^
In file included from /usr/include/c++/4.8.2/cstring:42:0,
                 from /home/seurer/gcc/git/gcc-test/gcc/system.h:241,
                 from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:21:
/usr/include/string.h:562:14: error: previous declaration 'char*
strsignal(int)' here
 extern char *strsignal (int __sig) __THROW;
              ^
In file included from ./bconfig.h:5:0,
                 from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:20:
/home/seurer/gcc/git/gcc-test/gcc/../include/ansidecl.h:128:64: error: new
declaration 'char* basename(const char*)'
 #  define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
                                                                ^
/home/seurer/gcc/git/gcc-test/gcc/../include/libiberty.h:112:64: note: in
expansion of macro 'ATTRIBUTE_NONNULL'
 extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
                                                                ^
In file included from /usr/include/c++/4.8.2/cstring:42:0,
                 from /home/seurer/gcc/git/gcc-test/gcc/system.h:241,
                 from /home/seurer/gcc/git/gcc-test/gcc/genmodes.cc:21:
/usr/include/string.h:599:26: error: ambiguates old declaration 'const char*
basename(const char*)'
 extern "C++" const char *basename (const char *__filename)
                          ^
make[2]: *** [Makefile:2860: build/genmodes.o] Error 1



commit 278f8f567b5470e87e2e6482ee385d61c7f45a5d
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Mar 6 11:06:38 2023 +0100

    RAII auto_mpfr and autp_mpz

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

end of thread, other threads:[~2023-04-24 14:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-21 15:56 [Bug other/109589] New: [14 regression] r14-35-g278f8f567b5470 breaks build with older gcc build compilers seurer at gcc dot gnu.org
2023-04-21 17:48 ` [Bug other/109589] " pinskia at gcc dot gnu.org
2023-04-21 18:10 ` jakub at gcc dot gnu.org
2023-04-21 18:16 ` [Bug bootstrap/109589] " jakub at gcc dot gnu.org
2023-04-22 18:14 ` cvs-commit at gcc dot gnu.org
2023-04-22 18:17 ` jakub at gcc dot gnu.org
2023-04-24 14:01 ` seurer at gcc dot gnu.org

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).