Hello,
As per the title, compiling the C-SDK in Linux failed (ArchLinux, kernel 5.15.24-1-lts x86_64).
I also tried with cmake --build .
but got the same result.
You can find the trace below. Thanks!
#( 02/17/22@ 6:20PM )( fernando@animal ):~/Documents/vortex/ziti/ziti-sdk-c/build@main✔
make
[ 0%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/fs-poll.c.o
[ 1%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/idna.c.o
[ 1%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/inet.c.o
[ 2%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/random.c.o
[ 2%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/strscpy.c.o
[ 2%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/threadpool.c.o
[ 3%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/timer.c.o
[ 3%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/uv-common.c.o
[ 4%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/uv-data-getter-setters.c.o
[ 4%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/version.c.o
[ 4%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/async.c.o
[ 5%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/core.c.o
[ 5%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/dl.c.o
[ 6%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/fs.c.o
[ 6%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/getaddrinfo.c.o
[ 6%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/getnameinfo.c.o
[ 7%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/loop-watcher.c.o
[ 7%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/loop.c.o
[ 8%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/pipe.c.o
[ 8%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/poll.c.o
[ 8%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/process.c.o
[ 9%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/random-devurandom.c.o
[ 9%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/signal.c.o
[ 10%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/stream.c.o
[ 10%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/tcp.c.o
[ 11%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/thread.c.o
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/libuv-src/src/unix/thread.c: In function 'thread_stack_size':
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/libuv-src/src/unix/thread.c:194:24: warning: comparison of integer expressions of different signedness: 'rlim_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
194 | if (lim.rlim_cur >= PTHREAD_STACK_MIN)
| ^~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/libuv-src/src/unix/thread.c: In function 'uv_thread_create_ex':
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/libuv-src/src/unix/thread.c:242:20: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
242 | if (stack_size < PTHREAD_STACK_MIN)
| ^
[ 11%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/tty.c.o
[ 11%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/udp.c.o
[ 12%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/proctitle.c.o
[ 12%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/linux-core.c.o
[ 13%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/linux-inotify.c.o
[ 13%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/linux-syscalls.c.o
[ 13%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/procfs-exepath.c.o
[ 14%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/random-getrandom.c.o
[ 14%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/random-sysctl-linux.c.o
[ 15%] Building C object _deps/libuv-build/CMakeFiles/uv_a.dir/src/unix/sysinfo-loadavg.c.o
[ 15%] Linking C static library libuv_a.a
[ 15%] Built target uv_a
[ 16%] Building C object _deps/uv-mbed-build/deps/CMakeFiles/http-parser.dir/__/__/http_parser-src/http_parser.c.o
[ 16%] Built target http-parser
[ 16%] Building C object _deps/uv-mbed-build/deps/CMakeFiles/uv_link.dir/__/__/uv_link-src/src/uv_link_t.c.o
[ 17%] Building C object _deps/uv-mbed-build/deps/CMakeFiles/uv_link.dir/__/__/uv_link-src/src/uv_link_source_t.c.o
[ 17%] Building C object _deps/uv-mbed-build/deps/CMakeFiles/uv_link.dir/__/__/uv_link-src/src/uv_link_observer_t.c.o
[ 18%] Building C object _deps/uv-mbed-build/deps/CMakeFiles/uv_link.dir/__/__/uv_link-src/src/defaults.c.o
[ 18%] Built target uv_link
[ 18%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/aes.c.o
[ 19%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/aesni.c.o
[ 19%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/arc4.c.o
[ 19%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/aria.c.o
[ 20%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/asn1parse.c.o
[ 20%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/asn1write.c.o
[ 21%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/base64.c.o
[ 21%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/bignum.c.o
[ 21%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/blowfish.c.o
[ 22%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/camellia.c.o
[ 22%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/ccm.c.o
[ 23%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/chacha20.c.o
[ 23%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/chachapoly.c.o
[ 24%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/cipher.c.o
[ 24%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/cipher_wrap.c.o
[ 24%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/cmac.c.o
[ 25%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/ctr_drbg.c.o
[ 25%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/des.c.o
[ 26%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/dhm.c.o
[ 26%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/ecdh.c.o
[ 26%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/ecdsa.c.o
[ 27%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/ecjpake.c.o
[ 27%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/ecp.c.o
[ 28%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/ecp_curves.c.o
[ 28%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/entropy.c.o
[ 28%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/entropy_poll.c.o
[ 29%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/error.c.o
[ 29%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/gcm.c.o
[ 30%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/havege.c.o
[ 30%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/hkdf.c.o
[ 30%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/hmac_drbg.c.o
[ 31%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/md.c.o
[ 31%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/md2.c.o
[ 32%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/md4.c.o
[ 32%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/md5.c.o
[ 33%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/memory_buffer_alloc.c.o
[ 33%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/nist_kw.c.o
[ 33%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/oid.c.o
[ 34%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/padlock.c.o
[ 34%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/pem.c.o
[ 35%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/pk.c.o
[ 35%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/pk_wrap.c.o
[ 35%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/pkcs12.c.o
[ 36%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/pkcs5.c.o
[ 36%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/pkparse.c.o
[ 37%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/pkwrite.c.o
[ 37%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/platform.c.o
[ 37%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/platform_util.c.o
[ 38%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/poly1305.c.o
[ 38%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/psa_crypto.c.o
[ 39%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/psa_crypto_se.c.o
[ 39%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/psa_crypto_slot_management.c.o
[ 39%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/psa_crypto_storage.c.o
[ 40%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/psa_its_file.c.o
[ 40%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/ripemd160.c.o
[ 41%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/rsa.c.o
[ 41%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/rsa_internal.c.o
[ 41%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/sha1.c.o
[ 42%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/sha256.c.o
[ 42%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/sha512.c.o
[ 43%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/threading.c.o
[ 43%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/timing.c.o
[ 44%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/version.c.o
[ 44%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/version_features.c.o
[ 44%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/xtea.c.o
[ 45%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/__/3rdparty/everest/library/everest.c.o
[ 45%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/__/3rdparty/everest/library/x25519.c.o
[ 46%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedcrypto.dir/__/3rdparty/everest/library/Hacl_Curve25519_joined.c.o
[ 46%] Linking C static library libmbedcrypto.a
[ 46%] Built target mbedcrypto
[ 47%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/certs.c.o
[ 47%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/pkcs11.c.o
[ 48%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/x509.c.o
[ 48%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/x509_create.c.o
[ 49%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/x509_crl.c.o
[ 49%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/x509_crt.c.o
[ 49%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/x509_csr.c.o
[ 50%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/x509write_crt.c.o
[ 50%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedx509.dir/x509write_csr.c.o
[ 51%] Linking C static library libmbedx509.a
[ 51%] Built target mbedx509
[ 51%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/debug.c.o
[ 52%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/net_sockets.c.o
[ 52%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_cache.c.o
[ 53%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_ciphersuites.c.o
[ 53%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_cli.c.o
[ 53%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_cookie.c.o
[ 54%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_msg.c.o
[ 54%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_srv.c.o
[ 55%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_ticket.c.o
[ 55%] Building C object _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_tls.c.o
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:1730:41: error: argument 2 of type 'unsigned char[36]' with mismatched bound [-Werror=array-parameter=]
1730 | unsigned char hash[36],
| ~~~~~~~~~~~~~~^~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:690:63: note: previously declared as 'unsigned char *'
690 | static void ssl_calc_verify_tls( const mbedtls_ssl_context *, unsigned char *, size_t * );
| ^~~~~~~~~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:1762:48: error: argument 2 of type 'unsigned char[32]' with mismatched bound [-Werror=array-parameter=]
1762 | unsigned char hash[32],
| ~~~~~~~~~~~~~~^~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:697:69: note: previously declared as 'unsigned char *'
697 | static void ssl_calc_verify_tls_sha256( const mbedtls_ssl_context *,unsigned char *, size_t * );
| ^~~~~~~~~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:1811:48: error: argument 2 of type 'unsigned char[48]' with mismatched bound [-Werror=array-parameter=]
1811 | unsigned char hash[48],
| ~~~~~~~~~~~~~~^~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:703:70: note: previously declared as 'unsigned char *'
703 | static void ssl_calc_verify_tls_sha384( const mbedtls_ssl_context *, unsigned char *, size_t * );
| ^~~~~~~~~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c: In function 'ssl_calc_verify_tls_sha384':
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:1845:5: error: 'mbedtls_sha512_finish_ret' accessing 64 bytes in a region of size 48 [-Werror=stringop-overflow=]
1845 | mbedtls_sha512_finish_ret( &sha512, hash );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:1845:5: note: referencing argument 2 of type 'unsigned char *'
In file included from /home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/include/mbedtls/ssl_internal.h:53,
from /home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:47:
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/include/mbedtls/sha512.h:147:5: note: in a call to function 'mbedtls_sha512_finish_ret'
147 | int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c: In function 'ssl_calc_finished_tls_sha384':
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:3266:5: error: 'mbedtls_sha512_finish_ret' accessing 64 bytes in a region of size 48 [-Werror=stringop-overflow=]
3266 | mbedtls_sha512_finish_ret( &sha512, padbuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:3266:5: note: referencing argument 2 of type 'unsigned char *'
In file included from /home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/include/mbedtls/ssl_internal.h:53,
from /home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/library/ssl_tls.c:47:
/home/fernando/Documents/vortex/ziti/ziti-sdk-c/build/_deps/mbedtls-src/include/mbedtls/sha512.h:147:5: note: in a call to function 'mbedtls_sha512_finish_ret'
147 | int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [_deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/build.make:202: _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/ssl_tls.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:611: _deps/mbedtls-build/library/CMakeFiles/mbedtls.dir/all] Error 2
make: *** [Makefile:166: all] Error 2