public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/54692] New: [4.8 Regression] gcc doesn't build with "-Og -g"
@ 2012-09-24 13:20 markus at trippelsdorf dot de
  2012-09-24 13:54 ` [Bug other/54692] " rguenth at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: markus at trippelsdorf dot de @ 2012-09-24 13:20 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54692

             Bug #: 54692
           Summary: [4.8 Regression] gcc doesn't build with "-Og -g"
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


With:
 gcc_build_dir % ~/gcc/configure --disable-werror --disable-multilib
--enable-languages=c,c++
 gcc_build_dir % make STAGE1_CFLAGS="-g -Og" all-stage1

I get:
...
g++ -c   -g -Og -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing
-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/home/markus/gcc/gcc
-I/home/markus/gcc/gcc/build -I/home/markus/gcc/gcc/../include
-I/home/markus/gcc/gcc/../libcpp/include 
-I/home/markus/gcc/gcc/../libdecnumber
-I/home/markus/gcc/gcc/../libdecnumber/bid -I../libdecnumber    \
        -o build/genconstants.o /home/markus/gcc/gcc/genconstants.c
In file included from /home/markus/gcc/gcc/read-md.h:22:0,
                 from /home/markus/gcc/gcc/genconstants.c:32:
/home/markus/gcc/gcc/../include/obstack.h:153:40: error: attempt to use
poisoned "bcopy"
 #  define _obstack_memcpy(To, From, N) bcopy ((char *)(From), (To), (N))
                                        ^
In file included from ./bconfig.h:3:0,
                 from /home/markus/gcc/gcc/genconstants.c:28:
./auto-host.h:1988:17: error: multiple types in one declaration
 #define ssize_t int
                 ^
./auto-host.h:1988:17: error: declaration does not declare anything
[-fpermissive]
./auto-host.h:1976:15: error: multiple types in one declaration
 #define pid_t int
               ^
./auto-host.h:1976:15: error: declaration does not declare anything
[-fpermissive]
In file included from /home/markus/gcc/gcc/system.h:198:0,
                 from /home/markus/gcc/gcc/genconstants.c:29:
/usr/include/sys/types.h:116:26: error: expected unqualified-id before ‘;’
token
 typedef __caddr_t caddr_t;
                          ^
In file included from ./bconfig.h:3:0,
                 from /home/markus/gcc/gcc/genconstants.c:28:
./auto-host.h:1982:16: error: declaration does not declare anything
[-fpermissive]
 #define rlim_t long
                ^
In file included from /home/markus/gcc/gcc/genconstants.c:29:0:
/home/markus/gcc/gcc/system.h:447:48: error: new declaration ‘char*
strstr(const char*, const char*)’
 extern char *strstr (const char *, const char *);
                                                ^
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/include/g++-v4/cstring:44:0,
                 from /home/markus/gcc/gcc/system.h:207,
                 from /home/markus/gcc/gcc/genconstants.c:29:
/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/markus/gcc/gcc/genconstants.c:29:0:
/home/markus/gcc/gcc/system.h:499:34: error: declaration of C function ‘const
char* strsignal(int)’ conflicts with
 extern const char *strsignal (int);
                                  ^
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/include/g++-v4/cstring:44:0,
                 from /home/markus/gcc/gcc/system.h:207,
                 from /home/markus/gcc/gcc/genconstants.c:29:
/usr/include/string.h:562:14: error: previous declaration ‘char*
strsignal(int)’ here
 extern char *strsignal (int __sig) __THROW;
              ^
In file included from /home/markus/gcc/gcc/system.h:639:0,
                 from /home/markus/gcc/gcc/genconstants.c:29:
/home/markus/gcc/gcc/../include/libiberty.h:110:36: error: new declaration
‘char* basename(const char*)’
 extern char *basename (const char *);
                                    ^
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/include/g++-v4/cstring:44:0,
                 from /home/markus/gcc/gcc/system.h:207,
                 from /home/markus/gcc/gcc/genconstants.c:29:
/usr/include/string.h:599:26: error: ambiguates old declaration ‘const char*
basename(const char*)’
 extern "C++" const char *basename (const char *__filename)
                          ^
make[1]: *** [build/genconstants.o] Error 1
make[1]: Leaving directory `/var/tmp/gcc_build_dir/gcc'


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

end of thread, other threads:[~2012-09-25 12:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-24 13:20 [Bug other/54692] New: [4.8 Regression] gcc doesn't build with "-Og -g" markus at trippelsdorf dot de
2012-09-24 13:54 ` [Bug other/54692] " rguenth at gcc dot gnu.org
2012-09-24 14:07 ` markus at trippelsdorf dot de
2012-09-24 14:21 ` markus at trippelsdorf dot de
2012-09-24 14:32 ` markus at trippelsdorf dot de
2012-09-24 14:37 ` mpolacek at gcc dot gnu.org
2012-09-24 14:40 ` jakub at gcc dot gnu.org
2012-09-24 14:41 ` markus at trippelsdorf dot de
2012-09-24 14:50 ` rguenth at gcc dot gnu.org
2012-09-24 15:04 ` jakub at gcc dot gnu.org
2012-09-24 15:08 ` markus at trippelsdorf dot de
2012-09-24 18:55 ` [Bug other/54692] " steven at gcc dot gnu.org
2012-09-25  7:27 ` rguenth at gcc dot gnu.org
2012-09-25 12:28 ` jakub at gcc dot gnu.org
2012-09-25 12:50 ` jakub 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).