Bug #82975 -DMYSQL_MAINTAINER_MODE=ON build failure on Mac OS X, 8.0 xcode toolchain
Submitted: 13 Sep 2016 17:18 Modified: 13 Oct 2016 17:17
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.0 OS:MacOS
Assigned to: CPU Architecture:Any
Tags: build, Clang, mac, warnings, xcode

[13 Sep 2016 17:18] Laurynas Biveinis
Description:
Follow-up to bug 74100.

cmake .. -DBUILD_CONFIG=mysql_release -DWITH_DEBUG=ON -DMYSQL_MAINTAINER_MODE=ON
...
make
..
[ 95%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/dd/dd_upgrade.cc.o
/Users/laurynas/percona/mysql-server/sql/dd/dd_upgrade.cc:242:3: error: unused variable 'event_table_def' [-Werror,-Wunused-const-variable]
  event_table_def= {ET_FIELD_COUNT, event_table_fields};
  ^
/Users/laurynas/percona/mysql-server/sql/dd/dd_upgrade.cc:377:3: error: unused variable 'event_table_def_old' [-Werror,-Wunused-const-variable]
  event_table_def_old= {ET_FIELD_COUNT, event_table_fields_old};
  ^
2 errors generated.
make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/__/sql/dd/dd_upgrade.cc.o] Error 1
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
make: *** [all] Error 2

How to repeat:
See above
[13 Sep 2016 18:18] MySQL Verification Team
Thank you for the bug report.

[ 96%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/dd/dd_view.cc.o
[ 96%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/dd/dd_upgrade.cc.o
/Users/miguel/Downloads/mysql-8.0.0-dmr/sql/dd/dd_upgrade.cc:242:3: error: unused variable
      'event_table_def' [-Werror,-Wunused-const-variable]
  event_table_def= {ET_FIELD_COUNT, event_table_fields};
  ^
/Users/miguel/Downloads/mysql-8.0.0-dmr/sql/dd/dd_upgrade.cc:377:3: error: unused variable
      'event_table_def_old' [-Werror,-Wunused-const-variable]
  event_table_def_old= {ET_FIELD_COUNT, event_table_fields_old};
  ^
2 errors generated.
make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/__/sql/dd/dd_upgrade.cc.o] Error 1
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
make: *** [all] Error 2
miguel:mysql-8.0.0-dmr miguel$
[13 Oct 2016 17:17] Paul DuBois
Posted by developer:
 
Noted in 8.0.1 changelog.

Compilation failed on macOS 10.11 with Xcode 8.0.