Gentoo Archives: gentoo-user

From: allan gottlieb <gottlieb@×××.edu>
To: gentoo-user@l.g.o
Subject: [gentoo-user] upgrading to gcc-f (was: chromium 60 build failure)
Date: Sun, 06 Aug 2017 15:31:38
Message-Id: 87ini0k90x.fsf_-_@nyu.edu
In Reply to: Re: [gentoo-user] chromium 60 build failure by Mateusz Lenik
1 On Mon, Jul 31 2017, Mateusz Lenik wrote:
2
3 > On Mon, Jul 31, 2017 at 08:02:34PM +0000, Grant Edwards wrote:
4 >> ../../third_party/vulkan-validation-layers/src/loader/debug_report.c:50:5:
5 >> note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to
6 >> compile your code
7 >> ../../third_party/vulkan-validation-layers/src/loader/debug_report.c:
8 >> In function ‘util_CreateDebugReportCallbacks’:
9 >> ../../third_party/vulkan-validation-layers/src/loader/debug_report.c:235:5:
10 >> error: ‘for’ loop initial declarations are only allowed in C99 or
11 >> C11 mode
12 >
13 > Most likely gcc-4.9 defaults to older C standard (C89, I guess).
14 > The easiest way to solve this would be to update your gcc to 5.4,
15 > otherwise you'd have to pass one of the suggested flags to the compiler
16 > somehow.
17
18 gcc-config -l reports
19 [1] x86_64-pc-linux-gnu-4.9.3
20 [2] x86_64-pc-linux-gnu-4.9.4 *
21 [3] x86_64-pc-linux-gnu-5.4.0
22
23 The news item from 2015-10-22 suggests (I have gentoolkit-0.3.3)
24 # revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc
25
26 Is that the entire procedure needed? In particular, ignoring
27 performance, can I avoid emerge --emptytree and just execute?
28
29 # gcc-config x86_64-pc-linux-gnu-5.4.0
30 # revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc
31
32 thanks,
33 allan