Step 46/51 : RUN cmake3 --build aws-nitro-enclaves-sdk-c/build --target install
---> Running in 9650115a1d96
[1/19] Building C object CMakeFiles/aws-nitro-enclaves-sdk-c.dir/source/cms.c.o
FAILED: CMakeFiles/aws-nitro-enclaves-sdk-c.dir/source/cms.c.o
/usr/bin/cc -DAWS_USE_EPOLL -DDEBUG_BUILD -DHAVE_SYSCONF -DUSE_VSOCK -I../include -Wall -Werror -Wstrict-prototypes -Wextra -pedantic -Wno-long-long -fPIC -pthread -D_ADX_ -DS2N_HAVE_EXECINFO -std=gnu99 -MD -MT CMakeFiles/aws-nitro-enclaves-sdk-c.dir/source/cms.c.o -MF CMakeFiles/aws-nitro-enclaves-sdk-c.dir/source/cms.c.o.d -o CMakeFiles/aws-nitro-enclaves-sdk-c.dir/source/cms.c.o -c ../source/cms.c
../source/cms.c: In function 'aws_cms_parse_enveloped_data':
../source/cms.c:67:10: error: too many arguments to function 'CBS_get_any_ber_asn1_element'
if (!CBS_get_any_ber_asn1_element(&cms, NULL, &tag, &tag_size, NULL) || /* ASN1_SEQ */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../source/cms.c:10:0:
/usr/include/openssl/bytestring.h:258:20: note: declared here
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS out,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source/cms.c:78:10: error: too many arguments to function 'CBS_get_any_ber_asn1_element'
if (!CBS_get_any_ber_asn1_element(&cms, NULL, &tag, &tag_size, NULL) || / ASN1_ENUM */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../source/cms.c:10:0:
/usr/include/openssl/bytestring.h:258:20: note: declared here
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS out,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source/cms.c:79:10: error: too many arguments to function 'CBS_get_any_ber_asn1_element'
!CBS_get_any_ber_asn1_element(&cms, NULL, &tag, &tag_size, NULL) || (tag != CBS_ASN1_SEQUENCE) || / ASN1_SEQ */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../source/cms.c:10:0:
/usr/include/openssl/bytestring.h:258:20: note: declared here
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source/cms.c:92:10: error: too many arguments to function 'CBS_get_any_ber_asn1_element'
if (!CBS_get_any_ber_asn1_element(&cms, &enveloped_data, &tag, &tag_size, NULL) || tag != CBS_ASN1_SET) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../source/cms.c:10:0:
/usr/include/openssl/bytestring.h:258:20: note: declared here
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source/cms.c:140:10: error: too many arguments to function 'CBS_get_any_ber_asn1_element'
if (!CBS_get_any_ber_asn1_element(&cms, NULL, &tag, &tag_size, NULL) || (tag != CBS_ASN1_SEQUENCE) ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../source/cms.c:10:0:
/usr/include/openssl/bytestring.h:258:20: note: declared here
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source/cms.c:154:10: error: too many arguments to function 'CBS_get_any_ber_asn1_element'
if (!CBS_get_any_ber_asn1_element(&cms, &content_encryption_algo, &tag, &tag_size, NULL) ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../source/cms.c:10:0:
/usr/include/openssl/bytestring.h:258:20: note: declared here
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS out,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source/cms.c:177:10: error: too many arguments to function 'CBS_get_any_ber_asn1_element'
if (!CBS_get_any_ber_asn1_element(&cms, NULL, &tag, &tag_size, NULL)) { / ASN1_ENUM */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../source/cms.c:10:0:
/usr/include/openssl/bytestring.h:258:20: note: declared here
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source/cms.c:189:12: error: too many arguments to function 'CBS_get_any_ber_asn1_element'
while (CBS_get_any_ber_asn1_element(&cms, &wrapped_encrypted_content, &tag, &tag_size, NULL) == 1 &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../source/cms.c:10:0:
/usr/include/openssl/bytestring.h:258:20: note: declared here
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2/19] Building C object CMakeFiles/aws-nitro-enclaves-sdk-c.dir/source/attestation.c.o
[3/19] Building C object CMakeFiles/aws-nitro-enclaves-sdk-c.dir/source/kms.c.o
ninja: build stopped: subcommand failed.
The command '/bin/sh -c cmake3 --build aws-nitro-enclaves-sdk-c/build --target install' returned a non-zero code: 1
I suggest updating this Dockerfile based on https://github.com/aws/aws-nitro-enclaves-sdk-c/blob/main/containers/Dockerfile.al2