Bug #83272 Missing CMake dependency GenBootstrapPriv => mysql_upgrade
Submitted: 5 Oct 2016 14:35 Modified: 16 Nov 2016 2:25
Reporter: Jon Olav Hauglid Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.1 OS:Any
Assigned to: CPU Architecture:Any

[5 Oct 2016 14:35] Jon Olav Hauglid
Description:
client/upgrade/program.cc does
#include "../scripts/sql_commands_system_tables_data_fix.h"

This file is generated by the GenBootstrapPriv CMake target, yet there is no dependency set.

This can give this error while building:
home/jhauglid/repo/mysql/client/upgrade/program.cc:29:60: fatal error: ../scripts/sql_commands_system_tables_data_fix.h: No such file or directory
compilation terminated.

How to repeat:
Build single-threaded

Suggested fix:
Add GenBootstrapPriv as a dependency for mysql_upgrade
[16 Nov 2016 2:25] Paul DuBois
Posted by developer:
 
Noted in 8.0.1 changelog.

For compilation, mysql_upgrade is dependent on the dynamically
generated sql_commands_system_tables_data_fix.h file, but a missing
dependency could cause that file not to be generated.