Skip to content

CI: verify build on Darwin - #423

Open
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:261030_darwin_CI
Open

678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:261030_darwin_CI

Conversation

@678098

@678098 678098 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Other projects that use ntf-core might be built on Darwin so it is useful to automatically verify that ntf-core builds on Darwin.

@678098

678098 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

ntf-core fails to build in blazingmq

https://github.com/bloomberg/blazingmq/actions/runs/41098893052/job/124211764624

[457/492] Building CXX object CMakeFiles/ntctls.dir/groups/ntc/ntctls/ntctls_plugin.cpp.o
FAILED: [code=1] CMakeFiles/ntctls.dir/groups/ntc/ntctls/ntctls_plugin.cpp.o 
/usr/bin/c++ -DBDE_BUILD_TARGET_CPP17 -DBDE_BUILD_TARGET_EXC -DBDE_BUILD_TARGET_MT -DBDE_BUILD_TARGET_OPT -DNDEBUG -D_BSD_SOURCE -D_DARWIN_C_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_THREAD_SAFE -I/Users/runner/work/blazingmq/blazingmq/build/ntf/Darwin/opt_64_cpp17 -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntcscm -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntsscm -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntscfg -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntsa -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntsi -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntsd -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntsu -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntsb -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntso -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/nts/ntsf -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntccfg -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntca -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntci -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntcs -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntcq -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntcd -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntcdns -I/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctlc -isystem /Users/runner/work/blazingmq/blazingmq/include -isystem /opt/homebrew/include -w   -m64 -fno-strict-aliasing  -O2 -DNDEBUG -std=c++17 -arch arm64 -O2 -g0 -pipe -pthread -fPIC -fexceptions -fno-strict-aliasing -fno-omit-frame-pointer -fdiagnostics-show-option -Wall -Wextra -Wpedantic -MD -MT CMakeFiles/ntctls.dir/groups/ntc/ntctls/ntctls_plugin.cpp.o -MF CMakeFiles/ntctls.dir/groups/ntc/ntctls/ntctls_plugin.cpp.o.d -o CMakeFiles/ntctls.dir/groups/ntc/ntctls/ntctls_plugin.cpp.o -c /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3877:26: error: cannot initialize a variable of type 'X509_NAME_ENTRY *' (aka 'X509_name_entry_st *') with an rvalue of type 'const X509_NAME_ENTRY *' (aka 'const X509_name_entry_st *')
 3877 |         X509_NAME_ENTRY* entry =
      |                          ^
 3878 |             X509_NAME_get_entry(name, static_cast<int>(i));
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3895:22: error: cannot initialize a variable of type 'ASN1_STRING *' (aka 'asn1_string_st *') with an rvalue of type 'const ASN1_STRING *' (aka 'const asn1_string_st *')
 3895 |         ASN1_STRING* entry_value = X509_NAME_ENTRY_get_data(entry);
      |                      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3897:58: error: member access into incomplete type 'ASN1_STRING' (aka 'asn1_string_st')
 3897 |         const unsigned char* entryValueData = entry_value->data;
      |                                                          ^
/opt/homebrew/include/openssl/types.h:58:16: note: forward declaration of 'asn1_string_st'
   58 | typedef struct asn1_string_st ASN1_INTEGER;
      |                ^
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3898:58: error: member access into incomplete type 'ASN1_STRING' (aka 'asn1_string_st')
 3898 |         const int            entryValueSize = entry_value->length;
      |                                                          ^
/opt/homebrew/include/openssl/types.h:58:16: note: forward declaration of 'asn1_string_st'
   58 | typedef struct asn1_string_st ASN1_INTEGER;
      |                ^
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3971:12: error: cannot initialize return object of type 'X509_EXTENSION *' (aka 'X509_extension_st *') with an rvalue of type 'const X509_EXTENSION *' (aka 'const X509_extension_st *')
 3971 |     return X509_get_ext(x509, rc);
      |            ^~~~~~~~~~~~~~~~~~~~~~
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:7123:46: error: cannot initialize a parameter of type 'X509_NAME *' (aka 'X509_name_st *') with an rvalue of type 'const X509_NAME *' (aka 'const X509_name_st *')
 7123 |     Impl::parseDistinguishedName(&d_subject, X509_get_subject_name(x509));
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3866:30: note: passing argument to parameter 'name' here
 3866 |     X509_NAME*               name)
      |                              ^
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:7124:45: error: cannot initialize a parameter of type 'X509_NAME *' (aka 'X509_name_st *') with an rvalue of type 'const X509_NAME *' (aka 'const X509_name_st *')
 7124 |     Impl::parseDistinguishedName(&d_issuer, X509_get_issuer_name(x509));
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3866:30: note: passing argument to parameter 'name' here
 3866 |     X509_NAME*               name)
      |                              ^
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:7301:34: error: cannot initialize a parameter of type 'X509_NAME *' (aka 'X509_name_st *') with an rvalue of type 'const X509_NAME *' (aka 'const X509_name_st *')
 7301 |                                  X509_get_subject_name(d_x509.get()));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3866:30: note: passing argument to parameter 'name' here
 3866 |     X509_NAME*               name)
      |                              ^
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:7303:34: error: cannot initialize a parameter of type 'X509_NAME *' (aka 'X509_name_st *') with an rvalue of type 'const X509_NAME *' (aka 'const X509_name_st *')
 7303 |                                  X509_get_issuer_name(d_x509.get()));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3866:30: note: passing argument to parameter 'name' here
 3866 |     X509_NAME*               name)
      |                              ^
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:7501:34: error: cannot initialize a parameter of type 'X509_NAME *' (aka 'X509_name_st *') with an rvalue of type 'const X509_NAME *' (aka 'const X509_name_st *')
 7501 |                                  X509_get_subject_name(d_x509.get()));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3866:30: note: passing argument to parameter 'name' here
 3866 |     X509_NAME*               name)
      |                              ^
Error: /Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:7503:34: error: cannot initialize a parameter of type 'X509_NAME *' (aka 'X509_name_st *') with an rvalue of type 'const X509_NAME *' (aka 'const X509_name_st *')
 7503 |                                  X509_get_issuer_name(d_x509.get()));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/runner/work/blazingmq/blazingmq/thirdparty/ntf-core/groups/ntc/ntctls/ntctls_plugin.cpp:3866:30: note: passing argument to parameter 'name' here
 3866 |     X509_NAME*               name)
      |                              ^
11 errors generated.

Other projects that use ntf-core might be built on Darwin so it is useful
to verify that ntf-core builds on Darwin automatically.

Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
--debug \
--without-warnings \
--without-warnings-as-errors \
--from-continuous-integration

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--unity flag is tested in Linux build already, this build configuration attempts to build ntf-core in separate files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant