--- a/sql/sql_yacc.yy 2022-11-15 02:10:21.000000000 +0800 +++ b/sql/sql_yacc.yy 2023-04-21 12:14:10.000000000 +0800 @@ -333,7 +333,7 @@ %{ /* avoid unintentional %union size increases, it's what a parser stack made of */ -static_assert(sizeof(YYSTYPE) == sizeof(void*)*2+8, "%union size check"); +/* static_assert(sizeof(YYSTYPE) == sizeof(void*)*2+8, "%union size check"); */ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize); %} --- a/plugin/query_response_time/CMakeLists.txt 2025-01-29 18:22:21.000000000 +0800 +++ b/plugin/query_response_time/CMakeLists.txt 2025-09-13 02:18:28.000000000 +0800 @@ -1,3 +1,4 @@ ADD_DEFINITIONS(-DHAVE_RESPONSE_TIME_DISTRIBUTION) +MY_CHECK_AND_SET_COMPILER_FLAG(-Wl,-latomic) MYSQL_ADD_PLUGIN(QUERY_RESPONSE_TIME query_response_time.cc plugin.cc RECOMPILE_FOR_EMBEDDED)