Bug #92945 Support for -DCMAKE_BUILD_TYPE=Release seems to be broken
Submitted: 25 Oct 2018 8:19 Modified: 6 Nov 2018 19:14
Reporter: Terje Røsten Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.13 OS:Any
Assigned to: Tor Didriksen CPU Architecture:Any

[25 Oct 2018 8:19] Terje Røsten
Description:
Building with -DCMAKE_BUILD_TYPE=Release seems to be broken, build ends with:

../../../archive_output_directory/libsql_main.a(dd_table_share.cc.o):dd_table_share.cc:function setup_partition_from_dd(THD*, MEM_ROOT*, partition_info*, partition_element*, dd::Partition const*, bool): error: undefined reference to 'bool dd::get_tablespace_name<dd::Partition>(THD*, dd::Partition const*, char const**, MEM_ROOT*)'
collect2: error: ld returned 1 exit status
make[2]: *** [runtime_output_directory/pfs_connect_attr-t] Error 1

How to repeat:
$ cmake .. -DCMAKE_BUILD_TYPE=Release
$ make -j$(nproc)

Suggested fix:
Make Release type work.
[25 Oct 2018 8:23] Terje Røsten
Workaround for now, use:
 -DCMAKE_BUILD_TYPE=RelWithDebInfo
[5 Nov 2018 11:34] Tor Didriksen
Posted by developer:
 
compiler version, and OS version ??
[6 Nov 2018 19:14] Paul Dubois
Posted by developer:
 
Fixed in 8.0.14.

Builds configured with -DCMAKE_BUILD_TYPE=Release did not compile.