Bug #80371 MySQL fails to build with new default mode in GCC6
Submitted: 15 Feb 2016 12:37 Modified: 9 May 2016 14:14
Reporter: Terje Røsten Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5.48 OS:Any
Assigned to: CPU Architecture:Any

[15 Feb 2016 12:37] Terje Røsten
Description:
GCC 6 uses -std=gnu++14 as default mode for C++.

MySQL 5.5, 5.6 and 5.7 fails to build in this mode.

How to repeat:
Build MySQL 5.5, 5.6 or 5.7 with GCC 6 in default config.

Suggested fix:
Change code to build with -std=gnu++14 or set -std= to a mode that works for MySQL.
[9 May 2016 14:14] Paul DuBois
Posted by developer:
 
Noted in 5.7.14 changelog.

MySQL failed to build with GCC 6 using the default mode for C++ of 
-std=gnu++14. The CMake configuration has been adjusted to explicitly
set the mode to -std=gnu++03 for GCC 6.