Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6.13
-
None
-
None
-
Ubuntu 22.04 LTS
Description
Trying to compile just the AWS KMS plugin (aws_key_management) on Ubuntu 22.04 w/ all dependencies installed.
I have followed all instructions: I have all dependencies ready in the environment using "apt build-dep mariadb-server-10.6" and have git-cloned the 10.6 branch of MariaDB server to a folder called "server" in the homedir.
The cmake step "cmake -DPLUGIN_AWS_KEY_MANAGEMENT=DYNAMIC -DAWS_SDK_EXTERNAL_PROJECT=1 -DNOT_FOR_DISTRIBUTION=1 ../server/" succeeds without errors, but the "make aws_key_management" fails with:
[ 48%] Building C object tests/CMakeFiles/aws-c-common-tests.dir/byte_buf_test.c.o |
/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps/build/src/AwsCCommon/tests/byte_buf_test.c: In function 's_test_buffer_advance': |
/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps/build/src/AwsCCommon/tests/byte_buf_test.c:236:35: error: 'arr' may be used uninitialized [-Werror=maybe-uninitialized] |
236 | struct aws_byte_buf src_buf = aws_byte_buf_from_empty_array(arr, sizeof(arr)); |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
In file included from /home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps/build/src/AwsCCommon/tests/byte_buf_test.c:16: |
/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps/build/src/AwsCCommon/include/aws/common/byte_buf.h:507:36: note: by argument 1 of type 'const void *' to 'aws_byte_buf_from_empty_array' declared here |
507 | AWS_COMMON_API struct aws_byte_buf aws_byte_buf_from_empty_array(const void *bytes, size_t capacity); |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps/build/src/AwsCCommon/tests/byte_buf_test.c:235:13: note: 'arr' declared here |
235 | uint8_t arr[16]; |
| ^~~
|
cc1: all warnings being treated as errors
|
gmake[9]: *** [tests/CMakeFiles/aws-c-common-tests.dir/build.make:146: tests/CMakeFiles/aws-c-common-tests.dir/byte_buf_test.c.o] Error 1 |
gmake[9]: Leaving directory '/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps/build/src/AwsCCommon-build' |
gmake[8]: *** [CMakeFiles/Makefile2:910: tests/CMakeFiles/aws-c-common-tests.dir/all] Error 2 |
gmake[8]: Leaving directory '/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps/build/src/AwsCCommon-build' |
gmake[7]: Leaving directory '/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps/build/src/AwsCCommon-build' |
gmake[7]: *** [Makefile:146: all] Error 2 |
gmake[6]: Leaving directory '/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps' |
gmake[6]: *** [CMakeFiles/AwsCCommon.dir/build.make:86: build/src/AwsCCommon-stamp/AwsCCommon-build] Error 2 |
gmake[5]: *** [CMakeFiles/Makefile2:87: CMakeFiles/AwsCCommon.dir/all] Error 2 |
gmake[5]: Leaving directory '/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps' |
gmake[4]: Leaving directory '/home/local/user/build-mariadb/extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-build/.deps' |
gmake[4]: *** [Makefile:91: all] Error 2 |
CMake Error at CMakeLists.txt:224 (message): |
Failed to build third-party libraries.
|
|
|
-- Configuring incomplete, errors occurred!
|
make[3]: *** [extra/aws_sdk/CMakeFiles/aws_sdk_cpp.dir/build.make:93: extra/aws_sdk/aws_sdk_cpp-prefix/src/aws_sdk_cpp-stamp/aws_sdk_cpp-configure] Error 1 |
make[2]: *** [CMakeFiles/Makefile2:10717: extra/aws_sdk/CMakeFiles/aws_sdk_cpp.dir/all] Error 2 |
make[1]: *** [CMakeFiles/Makefile2:8237: plugin/aws_key_management/CMakeFiles/aws_key_management.dir/rule] Error 2 |
make: *** [Makefile:2825: aws_key_management] Error 2 |
We have tried changing to try a few other different versions of the AWS SDK by altering the GIT_TAG in "server/extra/aws_sdk/CMakelists.txt" in case the chosen "1.8.29" is bugged but we cannot find one that works - they either fail at the same step or at another.
Any other ideas?