MySQL Forums
Forum List  »  Install & Repo

Re: compile error mysql-boost-5.7.35.tar.gz
Posted by: Bjørn Munch
Date: August 31, 2021 04:35AM

You don't specify platform and compiler but I think it doesn't matter in this case:

5.7.33 would add -DDBUG_OFF to any CMAKE_C_FLAGS you might have set if you were not building for debug. This has been removed and DBUG_OFF has been replaced with NDEBUG.

Since you are setting build type RelWithDebInfo but also explicitly set the compiler flags for this type, you are overriding what CMake would set. And so it proceeds to compile with debug. And that is probably not what you want, and not what you did for 5.7.33.

But: fts_ast_node_type_get() is only defined for explicit debug builds so it does not exist.

What you would need to do now is to add -DNDEBUG to your -DCMAKE_C_FLAGS_RELWITHDEBINFO (and ditto for CXX). Hopefully that would resolve this issue. It also ensures you compile optimized binaries, not debug ones which have much lower performance.

Options: ReplyQuote

Written By
Re: compile error mysql-boost-5.7.35.tar.gz
August 31, 2021 04:35AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.