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: unassig...@gcc.gnu.org ReportedBy: mar...@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'