Bug 69959 - [6 Regression] gcc-6 doesn't build gcc-5 anymore
Summary: [6 Regression] gcc-6 doesn't build gcc-5 anymore
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-25 14:19 UTC by Markus Trippelsdorf
Modified: 2017-02-01 19:32 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Trippelsdorf 2016-02-25 14:19:38 UTC
markus@x4 gcc % g++ -c -DIN_GCC_FRONTEND -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 -DHAVE_CONFIG_H -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o cp/except.o -MT cp/except.o -MMD -MP -MF cp/.deps/except.TPo ../../gcc/gcc/cp/except.c                

In file included from ./tm.h:27:0,
                 from ../../gcc/gcc/cp/except.c:27:
../../gcc/gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
    fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
                     ^
../../gcc/gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
       fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",  \
                        ^
In file included from ./tm.h:48:0,
                 from ../../gcc/gcc/cp/except.c:27:
../../gcc/gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
       fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",  \
                        ^
In file included from ../../gcc/gcc/cp/except.c:1023:0:
cfns.gperf: In function ‘const char* libc_name_p(const char*, unsigned int)’:
cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute
cfns.gperf:26:14: note: ‘const char* libc_name_p(const char*, unsigned int)’ previously declared here
cfns.gperf: At global scope:
cfns.gperf:26:14: warning: inline function ‘const char* libc_name_p(const char*, unsigned int)’ used but never defined

was fine a few days ago.
Comment 1 Jakub Jelinek 2016-02-25 15:16:02 UTC
We want r233572 on the branches that use C++ compiler (or you need to bootstrap older compilers with g++ -std=gnu++98).
Comment 2 Bernd Edlinger 2016-02-25 15:24:30 UTC
(In reply to Jakub Jelinek from comment #1)
> We want r233572 on the branches that use C++ compiler (or you need to
> bootstrap older compilers with g++ -std=gnu++98).

yes. I asked for permission here: https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01409.html

should I ping for it?
Comment 3 Bernd Edlinger 2016-02-25 15:48:51 UTC
Hi Markus,

it should work now.
Please update gcc-5 to r233720 and try again.

Bernd.
Comment 4 Markus Trippelsdorf 2016-02-25 16:27:19 UTC
Yes. Works fine now. Thanks for the quick fix.
Comment 5 Roger Pack 2017-02-01 19:32:24 UTC
FWIW I believe I ran into this building 4.9.3 using gcc 6.2.0