Details
Description
Clang20 is stricter and fails to compile extra/mariabackup/backup_copy.cc when using libc++ for C++ runtime. Error looks like below
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/page0page.h:424:23: warning: variable 'page_zip |
424 | if (page_zip_des_t *page_zip= compressed |
| ^
|
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/extra/mariabackup/backup_copy.cc:47: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/os0file.h:39: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/fsp0types.h:28: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/ut0byte.h:30: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/univ.i:450: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/ut0ut.h:32: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/ostream:179: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__ostream/basic_ostream.h:17: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__memory/shared_ptr.h:32: |
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__memory/unique_ptr.h:153:3: error: invalid applicatio |
153 | _LIBCPP_COMPRESSED_PAIR(pointer, __ptr_, deleter_type, __deleter_); |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__memory/compressed_pair.h:63:58: note: expanded from |
63 | _LIBCPP_NO_UNIQUE_ADDRESS __attribute__((__aligned__(_LIBCPP_ALIGNOF(T2)))) T1 Initializer1; \ |
| ^~~~~~~~~~~~~~~~~~~
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__config:293:34: note: expanded from macro '_LIBCPP_AL |
293 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) |
| ^~~~~~~~~~~~
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/extra/mariabackup/backup_copy.cc:1645:5: note: in instantiation of templ |
1645 | ds_ctxt_aria_log_dir_path(nullptr, ds_destroy); |
| ^
|
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/extra/mariabackup/backup_copy.cc:47: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/os0file.h:39: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/fsp0types.h:28: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/ut0byte.h:30: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/univ.i:450: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/storage/innobase/include/ut0ut.h:32: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/ostream:179: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__ostream/basic_ostream.h:17: |
In file included from /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__memory/shared_ptr.h:28: |
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__memory/compressed_pair.h:59:25: error: invalid appli |
59 | : sizeof(_ToPad) - __datasizeof_v<_ToPad>]; |
| ^~~~~~~~~~~~~~
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__memory/unique_ptr.h:153:3: note: in instantiation of |
153 | _LIBCPP_COMPRESSED_PAIR(pointer, __ptr_, deleter_type, __deleter_); |
| ^
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__memory/compressed_pair.h:66:68: note: expanded from |
66 | _LIBCPP_NO_UNIQUE_ADDRESS ::std::__compressed_pair_padding<T2> _LIBCPP_CONCAT3(__padding2_, __LINE__, _) |
| ^
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__config:34:36: note: expanded from macro '_LIBCPP_CON |
34 | # define _LIBCPP_CONCAT3(X, Y, Z) _LIBCPP_CONCAT(X, _LIBCPP_CONCAT(Y, Z)) |
| ^
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__config:33:34: note: expanded from macro '_LIBCPP_CON |
33 | # define _LIBCPP_CONCAT(_X, _Y) _LIBCPP_CONCAT_IMPL(_X, _Y) |
| ^
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/recipe-sysroot/usr/include/c++/v1/__config:32:39: note: expanded from macro '_LIBCPP_CON |
32 | # define _LIBCPP_CONCAT_IMPL(_X, _Y) _X##_Y |
| ^
|
<scratch space>:116:1: note: expanded from here |
116 | __padding2_153_ |
| ^
|
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mariadb/10.11.9/mariadb-10.11.9/extra/mariabackup/backup_copy.cc:1645:5: note: in instantiation of templ |
1645 | ds_ctxt_aria_log_dir_path(nullptr, ds_destroy); |
| ^
|
1 warning and 2 errors generated. |
make[2]: *** [extra/mariabackup/CMakeFiles/mariadb-backup.dir/build.make:300: extra/mariabackup/CMakeFiles/mariadb-backup.dir/backup_copy.cc.o] Error 1 |
make[1]: *** [CMakeFiles/Makefile2:5496: extra/mariabackup/CMakeFiles/mariadb-backup.dir/all] Error 2 |
make: *** [Makefile:166: all] Error 2 |