Compilation error with clang 8.0.0

Description

During compilation of master branch with clang 8.0.0 compiler (clang version 8.0.0 (Fedora 8.0.0-1.fc30)) I got following compilation errors

percona-server/storage/tokudb/PerconaFT/portability/toku_debug_sync.h:76:63: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
inline void toku_debug_sync(struct tokutxn *, const char *) {};

percona/percona-server/storage/tokudb/PerconaFT/portability/toku_instr_mysql.h:47:57: error: missing field 'm_volatility' initializer [-Werror,-Wmissing-field-initializers]
PSI_mutex_info mutex_info{&m_id, name, 0};

percona-server/storage/tokudb/PerconaFT/buildheader/make_tdb.cc:321:9: error: variable 'bit' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
dodefine_from_track(loader_flags, LOADER_COMPRESS_INTERMEDIATES);

Environment

Fedora 30, clang version 8.0.0 (Fedora 8.0.0-1.fc30))

Smart Checklist

Activity

Show:

Lalit Choudhary June 27, 2019 at 10:15 AM

I see consistent failure when I compile with TOKUDB . 

As additional information, if you provide Command you are using for compilation will be helpful.

 

Lalit Choudhary June 27, 2019 at 10:08 AM
Edited

 

 

 

Lalit Choudhary June 27, 2019 at 9:50 AM

But I see an error while running make cmd

 

 

Lalit Choudhary June 27, 2019 at 9:46 AM

Hello

In my test with  8.0.15-6 I do not get reported an error while compilation.

Could You please provide Command you are using for compilation.

 

Test Evn:

 

 

Tested with Both cmake commands,

cmake ../ -DCMAKE_BUILD_TYPE=Debug -DWITH_DEBUG=1 -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DWITH_TOKUDB=1 -DWITHOUT_ROCKSDB_STORAGE_ENGINE=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=../

 

cmake ../ -DCMAKE_BUILD_TYPE=Debug -DWITH_DEBUG=1 -DWITH_TOKUDB=1 -DWITHOUT_ROCKSDB_STORAGE_ENGINE=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=../

Incomplete

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Smart Checklist

Created June 15, 2019 at 8:59 AM
Updated March 6, 2024 at 12:04 PM
Resolved January 20, 2020 at 8:57 PM