Bug #89412 -DWITH_INNODB_EXTRA_DEBUG broken
Submitted: 25 Jan 2018 15:09 Modified: 20 Mar 2018 21:42
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.4 OS:Any
Assigned to: CPU Architecture:Any
Tags: cmake

[25 Jan 2018 15:09] Laurynas Biveinis
Description:
-DWITH_INNODB_EXTRA_DEBUG=ON results in a linker error:

Undefined symbols for architecture x86_64:
  "page_zip_fail_func(char const*, ...)", referenced from:
      page_zip_validate_low(page_zip_des_t const*, unsigned char const*, dict_index_t const*, unsigned long) in libinnobase.a(page0zip.cc.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [runtime_output_directory/mysqld] Error 1
make[1]: *** [sql/CMakeFiles/mysqld.dir/all] Error 2

How to repeat:
$ cmake ../mysql-8.0.4 -DWITH_BOOST=... -DWITH_DEBUG=ON -DWITH_INNODB_EXTRA_DEBUG=ON
$ make
...

Removing -DWITH_INNODB_EXTRA_DEBUG=ON allows build to complete
[25 Jan 2018 16:46] MySQL Verification Team
Thank you for the bug report.
[20 Mar 2018 21:42] Paul DuBois
Posted by developer:
 
Fixed in 8.0.11.

Configuring with -DWITH_INNODB_EXTRA_DEBUG=ON resulted in a linker
error.