[MDEV-10788] Not able to compile source with -DBUILD_CONFIG=mysql_release -DCMAKE_BUILD_TYPE=Debug Created: 2016-09-11  Updated: 2017-05-19  Resolved: 2017-02-27

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.1, 10.0.30, 10.2.4
Fix Version/s: 5.5.55, 10.0.30, 10.1.22, 10.2.5

Type: Bug Priority: Major
Reporter: natrayan Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Sprint: 10.0.30

 Description   

I Pulled the sources from GIT HUB and executed the below commands. Error occurs in make

$ cmake -DBUILD_CONFIG=mysql_release -DCMAKE_BUILD_TYPE=debug -DWITH_JEMALLOC=yes ../mariadb
 
$ make
 
[ 68%] Building CXX object storage/tokudb/PerconaFT/src/CMakeFiles/tokudb_static_conv.dir/ydb.cc.o
In file included from /home/maria/playground/mariadb/zlib/zconf.h:12:0,
                 from /home/maria/playground/mariadb/zlib/zlib.h:34,
                 from /home/maria/playground/mariadb/storage/tokudb/PerconaFT/ft/serialize/compress.h:41,
                 from /home/maria/playground/mariadb/storage/tokudb/PerconaFT/ft/serialize/sub_block.h:41,
                 from /home/maria/playground/mariadb/storage/tokudb/PerconaFT/ft/txn/rollback.h:42,
                 from /home/maria/playground/mariadb/storage/tokudb/PerconaFT/ft/logger/log.h:48,
                 from /home/maria/playground/mariadb/storage/tokudb/PerconaFT/ft/ft.h:45,
                 from /home/maria/playground/mariadb/storage/tokudb/PerconaFT/ft/ft-internal.h:47,
                 from /home/maria/playground/mariadb/storage/tokudb/PerconaFT/ft/ft-flusher.h:41,
                 from /home/maria/playground/mariadb/storage/tokudb/PerconaFT/src/ydb.cc:52:
/home/maria/playground/mariadbeclipse/include/config.h:691:2: error: #error <my_config.h> MUST be included first!
 #error <my_config.h> MUST be included first!
  ^~~~~
cc1plus: error: unrecognized command line option '-Wno-pointer-bool-conversion' [-Werror]
cc1plus: all warnings being treated as errors
storage/tokudb/PerconaFT/src/CMakeFiles/tokudb_static_conv.dir/build.make:62: recipe for target 'storage/tokudb/PerconaFT/src/CMakeFiles/tokudb_static_conv.dir/ydb.cc.o' failed
make[2]: *** [storage/tokudb/PerconaFT/src/CMakeFiles/tokudb_static_conv.dir/ydb.cc.o] Error 1
CMakeFiles/Makefile2:6957: recipe for target 'storage/tokudb/PerconaFT/src/CMakeFiles/tokudb_static_conv.dir/all' failed
make[1]: *** [storage/tokudb/PerconaFT/src/CMakeFiles/tokudb_static_conv.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Same error i got when i compiled with Kubuntu as well.



 Comments   
Comment by Elena Stepanova [ 2016-09-14 ]

It's unrelated to Fedora 24, same thing happens when I try to build, for example, on Jessie.

Apparently -DBUILD_CONFIG=mysql_release and -DCMAKE_BUILD_TYPE=debug conflict with each other. I'll assign it to serg to check if they are supposed to.

Comment by Daniel Black [ 2017-02-25 ]

tested on bb-5.5-serg, works for me, thanks serg. Heaps better than my crap workarounds.

Generated at Thu Feb 08 07:44:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.