wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.34k stars 831 forks source link

WolfSSL FIPS Windows MSYS #8131

Closed volga629-1 closed 5 days ago

volga629-1 commented 1 week ago

Version

5.7.4 FIPS

Description

Hello Everyone, I am trying to compile WolfSSL on Windows MSYS and make -j4 quits, any help thank you.

Configuration summary for wolfssl version 5.7.4

   * Installation prefix:        /home/volga629/strongswan-5.9.14/wolfssl-5.7.4-gplv3-fips-ready/wolfssl-fips-build
   * System type:                w64-mingw32
   * Host CPU:                   x86_64
   * C Compiler:                 x86_64-w64-mingw32-gcc
   * C Flags:                    -DWOLFSSL_STATIC_RSA -DWOLFSSL_LOG_PRINTF -DWOLFSSL_PUBLIC_MP -DHAVE_EX_DATA -DFP_MAX_BITS=8192   -Wno-pragmas -Wall -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wstrict-prototypes -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv
   * C++ Compiler:
   * C++ Flags:
   * CPP Flags:
   * CCAS Flags:                 -DWOLFSSL_STATIC_RSA -DWOLFSSL_LOG_PRINTF -DWOLFSSL_PUBLIC_MP -DHAVE_EX_DATA -DFP_MAX_BITS=8192
   * LD Flags:                    -lws2_32
   * LIB Flags:                   -pie
   * Library Suffix:
   * Debug enabled:              no
   * Coverage enabled:
   * Warnings as failure:        no
   * make -j:                    9
   * VCS checkout:               no

   Features
   * Experimental settings:      Forbidden
   * FIPS:                       v2
   * Single threaded:            no
   * Filesystem:                 yes
   * OpenSSH Build:              no
   * OpenSSL Extra API:          yes
   * OpenSSL Coexist:            no
   * Old Names:                  yes
   * Max Strength Build:         no
   * Distro Build:               no
   * Reproducible Build:         yes
   * Side-channel Hardening:     yes
   * Single Precision Math:      no
   * SP implementation:          no
   * Fast Math:                  yes
   * Heap Math:                  no
   * Assembly Allowed:           yes
   * sniffer:                    no
   * snifftest:                  no
   * ARC4:                       no
   * AES:                        yes
   * AES-NI:                     no
   * AES-CBC:                    yes
   * AES-CBC length checks:      no
   * AES-GCM:                    yes
   * AES-GCM streaming:          no
   * AES-CCM:                    yes
   * AES-CTR:                    yes
   * AES-CFB:                    no
   * AES-OFB:                    no
   * AES-XTS:                    no
   * AES-XTS streaming:          no
   * AES-SIV:                    no
   * AES-EAX:                    no
   * AES Bitspliced:             no
   * AES Key Wrap:               no
   * ARIA:                       no
   * DES3:                       yes
   * DES3 TLS Suites:            no
   * Camellia:                   no
   * CUDA:                       no
   * SM4-ECB:                    no
   * SM4-CBC:                    no
   * SM4-CTR:                    no
   * SM4-GCM:                    no
   * SM4-CCM:                    no
   * NULL Cipher:                no
   * MD2:                        no
   * MD4:                        no
   * MD5:                        yes
   * RIPEMD:                     no
   * SHA:                        yes
   * SHA-224:                    yes
   * SHA-384:                    yes
   * SHA-512:                    yes
   * SHA3:                       yes
   * SHAKE128:                   no
   * SHAKE256:                   no
   * SM3:                        no
   * BLAKE2:                     no
   * BLAKE2S:                    no
   * SipHash:                    no
   * CMAC:                       yes
   * keygen:                     yes
   * acert:                      no
   * certgen:                    yes
   * certreq:                    yes
   * certext:                    yes
   * certgencache:               no
   * CHACHA:                     no
   * XCHACHA:                    no
   * Hash DRBG:                  yes
   * MmemUse Entropy:
   * (AKA: wolfEntropy):         no
   * PWDBASED:                   yes
   * Encrypted keys:             no
   * scrypt:                     no
   * wolfCrypt Only:             no
   * HKDF:                       yes
   * HPKE:                       no
   * X9.63 KDF:                  no
   * SRTP-KDF:                   no
   * PSK:                        no
   * Poly1305:                   no
   * LEANPSK:                    no
   * LEANTLS:                    no
   * RSA:                        yes
   * RSA-PSS:                    yes
   * DSA:                        no
   * DH:                         yes
   * DH Default Parameters:      yes
   * ECC:                        yes
   * ECC Custom Curves:          no
   * ECC Minimum Bits:           192
   * FPECC:                      no
   * ECC_ENCRYPT:                no
   * Brainpool:                  no
   * SM2:                        no
   * CURVE25519:                 yes
   * ED25519:                    yes
   * ED25519 streaming:          no
   * CURVE448:                   no
   * ED448:                      no
   * ED448 streaming:            no
   * LMS:                        no
   * LMS wolfSSL impl:
   * XMSS:                       no
   * XMSS wolfSSL impl:
   * KYBER:                      no
   * KYBER wolfSSL impl:         no
   * DILITHIUM:                  no
   * ECCSI                       no
   * SAKKE                       no
   * ASN:                        yes
   * Anonymous cipher:           no
   * CODING:                     yes
   * MEMORY:                     yes
   * I/O POOL:                   no
   * wolfSentry:                 no
   * LIGHTY:                     no
   * WPA Supplicant:             no
   * HAPROXY:                    no
   * STUNNEL:                    no
   * tcpdump:                    no
   * libssh2:                    no
   * ntp:                        no
   * rsyslog:                    no
   * Apache httpd:               no
   * NGINX:                      no
   * OpenResty:                  no
   * ASIO:                       no
   * LIBWEBSOCKETS:              no
   * Qt:                         no
   * Qt Unit Testing:            no
   * SIGNAL:                     no
   * chrony:                     no
   * strongSwan:                 yes
   * OpenLDAP:                   no
   * hitch:                      no
   * memcached:                  no
   * Mosquitto                   no
   * ERROR_STRINGS:              yes
   * DTLS:                       yes
   * DTLS v1.3:                  no
   * SCTP:                       no
   * SRTP:                       no
   * Indefinite Length:          no
   * Multicast:                  no
   * SSL v3.0 (Old):             no
   * TLS v1.0 (Old):             no
   * TLS v1.1 (Old):             no
   * TLS v1.2:                   yes
   * TLS v1.3:                   yes
   * RPK:                        no
   * Post-handshake Auth:        no
   * Early Data:                 no
   * QUIC:                       no
   * Send State in HRR Cookie:   undefined
   * OCSP:                       yes
   * OCSP Stapling:              no
   * OCSP Stapling v2:           no
   * CRL:                        yes
   * CRL-MONITOR:                no
   * Persistent session cache:   no
   * Persistent cert    cache:   no
   * Atomic User Record Layer:   no
   * Public Key Callbacks:       no
   * libxmss:                    no
   * liblms:                     no
   * liboqs:                     no
   * Whitewood netRandom:        no
   * Server Name Indication:     yes
   * ALPN:                       no
   * Maximum Fragment Length:    no
   * Trusted CA Indication:      no
   * Truncated HMAC:             no
   * Supported Elliptic Curves:  yes
   * FFDHE only in client:       no
   * Session Ticket:             no
   * Extended Master Secret:     yes
   * Renegotiation Indication:   no
   * Secure Renegotiation:       yes
   * Fallback SCSV:              no
   * Keying Material Exporter:   no
   * All TLS Extensions:         no
   * S/MIME:                     no
   * PKCS#7:                     no
   * PKCS#8:                     yes
   * PKCS#11:                    no
   * PKCS#12:                    yes
   * wolfSSH:                    no
   * wolfEngine:                 no
   * wolfTPM:                    no
   * wolfCLU:                    no
   * wolfSCEP:                   no
   * Secure Remote Password:     no
   * Small Stack:                no
   * Linux Kernel Module:        no
   * valgrind unit tests:        no
   * LIBZ:                       no
   * Examples:                   no
   * Crypt tests:                yes
   * Stack sizes in tests:       no
   * Heap stats in tests:        no
   * Asynchronous Crypto:        no
   * Asynchronous Crypto (sim):  no
   * Cavium Nitrox:              no
   * Cavium Octeon (Sync):       no
   * Intel Quick Assist:         no
   * ARM ASM:                    no
   * ARM ASM SHA512/SHA3 Crypto  no
   * ARM ASM SM3/SM4 Crypto      no
   * RISC-V ASM                  no
   * Write duplicate:            no
   * Xilinx Hardware Acc.:       no
   * Inline Code:                yes
   * Linux AF_ALG:               no
   * Linux KCAPI:                no
   * Linux devcrypto:            no
   * PK callbacks:               no
   * Crypto callbacks:           no
   * i.MX CAAM:                  no
   * IoT-Safe:                   no
   * IoT-Safe HWRNG:             no
   * NXP SE050:                  no
   * Maxim Integrated MAXQ10XX:  no
   * PSA:                        no
   * System CA certs:            yes
   * Dual alg cert support:      no
   * ERR Queues per Thread:      yes
   * rwlock:                     no
   * keylog export:              no
   * AutoSAR :                   no

---
./configure flags: --host=x86_64-w64-mingw32 --enable-keygen --enable-rsapss --enable-dtls --enable-certgen --enable-certreq --enable-certext --enable-sessioncerts --enable-crl --enable-ocsp --enable-secure-renegotiation --enable-strongswan 'CFLAGS=-DWOLFSSL_STATIC_RSA -DWOLFSSL_LOG_PRINTF -DWOLFSSL_PUBLIC_MP -DHAVE_EX_DATA -DFP_MAX_BITS=8192' --enable-ed25519 --enable-curve25519 --enable-fips=v2 --prefix=/home/volga629/strongswan-5.9.14/wolfssl-5.7.4-gplv3-fips-ready/wolfssl-fips-build --enable-ecc --disable-fpecc --disable-aligndata --disable-static --disable-jni --disable-crl-monitor --disable-examples host_alias=x86_64-w64-mingw32
---
Note: Make sure your application includes "wolfssl/options.h" before any other wolfSSL headers.
      You can define "WOLFSSL_USE_OPTIONS_H" in your application to include this automatically.

volg629@desktop MSYS ~/strongswan-5.9.14/wolfssl-5.7.4-gplv3-fips-ready
$ make -j4
make -j9  all-recursive
make[1]: Entering directory '/home/volga629/strongswan-5.9.14/wolfssl-5.7.4-gplv3-fips-ready'
make[1]: warning: -j9 forced in submake: resetting jobserver mode.
make[2]: Entering directory '/home/volga629/strongswan-5.9.14/wolfssl-5.7.4-gplv3-fips-ready'
make[2]: warning: -j9 forced in submake: resetting jobserver mode.
  CC       wolfcrypt/src/src_libwolfssl_la-fips.lo
  CC       wolfcrypt/src/src_libwolfssl_la-fips_test.lo
  CC       src/libwolfssl_la-crl.lo
  CC       src/libwolfssl_la-dtls.lo
  CC       wolfcrypt/test/test.o
wolfcrypt/src/fips.c:33: warning: ignoring '#pragma code_seg ' [-Wunknown-pragmas]
   33 |     #pragma code_seg(".fipsA$o")
      |
wolfcrypt/src/fips.c:34: warning: ignoring '#pragma const_seg ' [-Wunknown-pragmas]
   34 |     #pragma const_seg(".fipsB$o")
      |
wolfcrypt/test/test.c:941:29: wolfcrypt/src/fips.c:138:error:  static declaration of 'warning: wc_AesNewignoring '' follows non-static declaration
  941 | static WC_MAYBE_UNUSED Aes*                 wc_AesNewwolfcrypt/src/fips_test.c:58:' [(void* heap, int thisDevId, int *result_code)
      |                              -Wunknown-pragmas^~~~~~~~~warning: ]
  138 |     #pragma section(".CRT$XCU",read)
      |

ignoring 'In file included from                                              :
-Wunknown-pragmas./wolfssl/wolfcrypt/aes.h:731:18:]
   58 | #pragma code_seg(".fipsA$p")
      |
 note: wolfcrypt/src/fips_test.c:59:previous declaration of ' wc_AesNewwarning: ' with type 'ignoring 'Aes *(void *, int,  int *)#pragma const_seg '
  731 | WOLFSSL_API Aes* ' [wc_AesNew-Wunknown-pragmas(void* heap, int devId, int *result_code);
      |                  ]
   59 | #pragma const_seg(".fipsB$p")
      |
^~~~~~~~~
wolfcrypt/test/test.c:961:28: error: static declaration of 'wc_AesDelete' follows non-static declaration
  961 | static WC_MAYBE_UNUSED int wc_AesDelete(Aes *aes, Aes** aes_p)
      |                            ^~~~~~~~~~~~
./wolfssl/wolfcrypt/aes.h:732:17: note: previous declaration of 'wc_AesDelete' with type 'int(Aes *, Aes **)'
  732 | WOLFSSL_API int wc_AesDelete(Aes* aes, Aes** aes_p);
      |                 ^~~~~~~~~~~~
wolfcrypt/test/test.c:974:32: error: static declaration of 'wc_NewRsaKey' follows non-static declaration
  974 | static WC_MAYBE_UNUSED RsaKey* wc_NewRsaKey(void* heap, int thisDevId, int *result_code)
      |                                ^~~~~~~~~~~~
In file included from wolfcrypt/test/test.c:273:
./wolfssl/wolfcrypt/rsa.h:299:21: note: previous declaration of 'wc_NewRsaKey' with type 'RsaKey *(void *, int,  int *)'
  299 | WOLFSSL_API RsaKey* wc_NewRsaKey(void* heap, int devId, int *result_code);
      |                     ^~~~~~~~~~~~
wolfcrypt/test/test.c:994:28: error: static declaration of 'wc_DeleteRsaKey' follows non-static declaration
  994 | static WC_MAYBE_UNUSED int wc_DeleteRsaKey(RsaKey* key, RsaKey** key_p)
      |                            ^~~~~~~~~~~~~~~
./wolfssl/wolfcrypt/rsa.h:300:18: note: previous declaration of 'wc_DeleteRsaKey' with type 'int(RsaKey *, RsaKey **)'
  300 | WOLFSSL_API int  wc_DeleteRsaKey(RsaKey* key, RsaKey** key_p);
      |                  wolfcrypt/src/fips_test.c:^~~~~~~~~~~~~~~ In function '
ECDSA_KnownAnswerTest':
wolfcrypt/src/fips_test.c:1288:9: warning: implicit declaration of function 'wc_ecc_sign_set_k'; did you mean 'wc_ecc_sig_size'? [-Wimplicit-function-declaration]
 1288 |         wc_ecc_sign_set_kwolfcrypt/src/fips.c:165:25:(k, (word32)sizeof(k), ecc);
      |
      |         '
' undeclared here (not in a function)
  165 | static char base16_hash[wolfcrypt/src/fips_test.c:1288:9:FIPS_IN_CORE_DIGEST_SIZE *2+1]; /* calculated hash */
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
wc_ecc_sign_set_kwolfcrypt/src/fips.c:870:1:' [ -Wnested-externswarning: ]
'allocate' attribute directive ignored [-Wattributeswolfcrypt/src/fips_test.c:]
  870 |  At top level:
INITIALIZER                               (fipsEntry)
      |  ^~~~~~~~~~~warning:
ignoring '#pragma warning ' [-Wunknown-pragmas]
 1929 |     #pragma warning(push)
      |
wolfcrypt/src/fips_test.c:1930:wolfcrypt/src/fips.c:932:13:  warning: warning: ignoring '                           #pragma warning DllMain' [   -Wunknown-pragmas-Wmissing-prototypes]
 1930 |     #pragma warning(disable:4054 4305 4311)
      |
]
  932 | BOOL WINAPI                                                ( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved )
      |                                  ^~~~~~~':

wolfcrypt/src/fips_test.c:1993:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1993 |     if ((unsigned long)stxt > (unsigned long)chktxt ||
      |         ^
wolfcrypt/src/fips_test.c:1993:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1993 |     if ((unsigned long)stxt > (unsigned long)chktxt ||
      |                               ^
wolfcrypt/src/fips_test.c:1994:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1994 |         (unsigned long)etxt < (unsigned long)chktxt) {
      |         ^
wolfcrypt/src/fips_test.c:1994:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1994 |         (unsigned long)etxt < (unsigned long)chktxt) {
      |                               ^
wolfcrypt/src/fips_test.c:2005:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2005 |     if ((unsigned long)sro > (unsigned long)chkro ||
      |         ^
wolfcrypt/src/fips_test.c:2005:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2005 |     if ((unsigned long)sro > (unsigned long)chkro ||
      |                              ^
wolfcrypt/src/fips_test.c:2006:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2006 |         (unsigned long)ero < (unsigned long)chkro) {
      |         ^
wolfcrypt/src/fips_test.c:2006:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2006 |         (unsigned long)ero < (unsigned long)chkro) {
      |                              ^
wolfcrypt/src/fips.c: In function 'wolfcrypt/src/fips_test.c:wc_RsaSSL_Sign_fips In function '':
DoInCoreCheck':
wolfcrypt/src/fips_test.c:2025:19:wolfcrypt/src/fips.c:3621:26:  error: 'FIPS_IN_CORE_DIGEST_SIZE' undeclared (first use in this function); did you mean '       FIPS_HMAC_DIGEST_SZ '?
 2025 |     byte     hash[WC_RSA_FIPS_SIG_MINFIPS_IN_CORE_DIGEST_SIZE' undeclared (first use in this function)
 3621 |     if (ret > 0 && ret < ];
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~WC_RSA_FIPS_SIG_MIN
      |                   ) {
      |                                             ^~~~~~~~~~~~~~~~~~~

wolfcrypt/src/fips_test.c:2025:19: wolfcrypt/src/fips.c:3621:26:note:  each undeclared identifier is reported only once for each function it appears in
note: each undeclared identifier is reported only once for each function it appears in
wolfcrypt/src/fips_test.c:2026:26: error: 'FIPS_IN_CORE_KEY_SZ' undeclared (first use in this function); did you mean 'FIPS_HMAC_KEY_SZ'?
 2026 |     byte     binCoreKey [FIPS_IN_CORE_KEY_SZ];
      |                          ^~~~~~~~~~~~~~~~~~~
      |                          FIPS_HMAC_KEY_SZ
wolfcrypt/src/fips.c: In function 'wc_RsaPSS_Sign_fips':
wolfcrypt/src/fips.c:3686:26: error: 'WC_RSA_FIPS_SIG_MIN' undeclared (first use in this function)
 3686 |     if (ret > 0 && ret < WC_RSA_FIPS_SIG_MIN) {
      |                          ^~~~~~~~~~~~~~~~~~~
wolfcrypt/src/fips_test.c:2027:26: error: 'FIPS_IN_CORE_VERIFY_SZ' undeclared (first use in this function)
 2027 |     byte     binVerify  [FIPS_IN_CORE_VERIFY_SZ];
      |                          ^~~~~~~~~~~~~~~~~~~~~~
wolfcrypt/src/fips_test.c:2045:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2045 |     if ((unsigned long) last <= (unsigned long) first)
      |         ^
wolfcrypt/src/fips_test.c:2045:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2045 |     if ((unsigned long) last <= (unsigned long) first)
      |                                 ^
wolfcrypt/src/fips_test.c:2049:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2049 |     if ((unsigned long) end <= (unsigned long) start)
      |         ^
wolfcrypt/src/fips_test.c:2049:32: warning: cast from pointer to integer of different size [wolfcrypt/src/fips.c:-Wpointer-to-int-cast In function ']
 2049 |     if ((unsigned long) end <=                       ':
unsigned long) start)
      |                                ^
wolfcrypt/src/fips.c:3717:26: error: 'WC_RSA_FIPS_SIG_MIN' undeclared (first use in this function)
 3717 |     if (ret > 0 && ret < WC_RSA_FIPS_SIG_MIN) {
      |                          ^~~~~~~~~~~~~~~~~~~
wolfcrypt/src/fips_test.c:2054:44:wolfcrypt/src/fips.c:  In function 'error: wc_MakeRsaKey_fips'':
wolfCrypt_FIPS_AES_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2054 |     if (wolfCrypt_FIPS_sanity(first, last, wolfcrypt/src/fips.c:3933:16:wolfCrypt_FIPS_AES_sanity ,
      |                                            error: ^~~~~~~~~~~~~~~~~~~~~~~~~'
      |                                            WC_RSA_FIPS_GEN_MINwolfCrypt_FIPS_sanity' undeclared (first use in this function)
 3933 |     if (size <
WC_RSA_FIPS_GEN_MIN)
      |                ^~~~~~~~~~~~~~~~~~~
wolfcrypt/src/fips.c: In function 'wc_ecc_make_key_fips':
wolfcrypt/src/fips.c:4092:19: error: 'WC_ECC_FIPS_GEN_MIN' undeclared (first use in this function)
 4092 |     if (keysize < WC_ECC_FIPS_GEN_MIN)
      |                   ^~~~~~~~~~~~~~~~~~~
wolfcrypt/src/fips_test.c:2055:43: error: 'wolfCrypt_FIPS_aes_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2055 |                               start, end, wolfCrypt_FIPS_aes_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips.c: In function 'wc_ecc_make_key_ex_fips':
wolfcrypt/src/fips.c:4110:19: error: 'WC_ECC_FIPS_GEN_MIN' undeclared (first use in this function)
 4110 |     if (keysize < WC_ECC_FIPS_GEN_MIN) {
      |                   ^~~~~~~~~~~~~~~~~~~
wolfcrypt/src/fips_test.c:2060:44: error: 'wolfCrypt_FIPS_CMAC_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2060 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_CMAC_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips.c: In function 'wc_ecc_make_key_ex2_fips':
wolfcrypt/src/fips.c:4238:19: error: 'WC_ECC_FIPS_GEN_MIN' undeclared (first use in this function)
 4238 |     if (keysize < WC_ECC_FIPS_GEN_MIN)
      |                   ^~~~~~~~~~~~~~~~~~~
wolfcrypt/src/fips_test.c:2061:43: error: 'wolfCrypt_FIPS_cmac_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2061 |                               start, end, wolfCrypt_FIPS_cmac_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2068:44: error: 'wolfCrypt_FIPS_DH_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2068 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_DH_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips.c: In function 'wolfCrypt_GetCoreHash_fips':
wolfcrypt/src/fips.c:1084:1: warning: control reaches end of non-void function [-Wreturn-type]
 1084 | }
      | ^
wolfcrypt/src/fips.c: In function 'wolfCrypt_GetRawComputedHash_fips':
wolfcrypt/src/fips.c:1091:1: warning: control reaches end of non-void function [-Wreturn-type]
 1091 | }
      | ^
wolfcrypt/src/fips.c:wolfcrypt/src/fips_test.c:2069:43: At top level:
                                                                                                                                   '                                '?
 2069 |                               start, end, ' defined but not used [                                            ,
      |                                           ]
  165 | static char ^~~~~~~~~~~~~~~~~~~~~~~~~~~base16_hash
      |                                           [FIPS_IN_CORE_DIGEST_SIZE*2+1]; /* calculated hash */
      |             wolfCrypt_FIPS_sanity

wolfcrypt/src/fips_test.c:2075:44: error: 'wolfCrypt_FIPS_ECC_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2075 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_ECC_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
  CC       wolfcrypt/benchmark/benchmark.o
wolfcrypt/src/fips_test.c:2076:43: error: 'wolfCrypt_FIPS_ecc_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2076 |                               start, end, wolfCrypt_FIPS_ecc_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity  CC       wolfcrypt/src/src_libwolfssl_la-wolfcrypt_first.lo

  CC       wolfcrypt/src/src_libwolfssl_la-hmac.lo
wolfcrypt/src/fips_test.c:2082:44:make[2]: *** [Makefile:7328: wolfcrypt/src/src_libwolfssl_la-fips.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC       wolfcrypt/src/src_libwolfssl_la-random.lo
 error: 'wolfCrypt_FIPS_ED25519_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2082 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_ED25519_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2083:43: error: 'wolfCrypt_FIPS_ed25519_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2083 |                               start, end, wolfCrypt_FIPS_ed25519_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2095:44: error: 'wolfCrypt_FIPS_HMAC_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2095 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_HMAC_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2096:43: error: 'wolfCrypt_FIPS_hmac_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2096 |                               start, end, wolfCrypt_FIPS_hmac_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2101:44: error: 'wolfCrypt_FIPS_KDF_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2101 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_KDF_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2102:43: error: 'wolfCrypt_FIPS_kdf_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2102 |                               start, end, wolfCrypt_FIPS_kdf_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2108:44: error: 'wolfCrypt_FIPS_PBKDF_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2108 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_PBKDF_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2109:43: error: 'wolfCrypt_FIPS_pbkdf_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2109 |                               start, end, wolfCrypt_FIPS_pbkdf_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2115:44: error: 'wolfCrypt_FIPS_DRBG_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2115 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_DRBG_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2116:43: error: 'wolfCrypt_FIPS_drbg_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2116 |                               start, end, wolfCrypt_FIPS_drbg_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2122:44: error: 'wolfCrypt_FIPS_RSA_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2122 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_RSA_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2123:43: error: 'wolfCrypt_FIPS_rsa_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2123 |                               start, end, wolfCrypt_FIPS_rsa_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2129:44: error: 'wolfCrypt_FIPS_SHA_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2129 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_SHA_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2130:43: error: 'wolfCrypt_FIPS_sha_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2130 |                               start, end, wolfCrypt_FIPS_sha_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/wolfcrypt_first.c:34: warning: ignoring '#pragma code_seg ' [-Wunknown-pragmas]
   34 |     #pragma code_seg(".fipsA$a")
      |
wolfcrypt/src/wolfcrypt_first.c:35: warning: ignoring '#pragma const_seg ' [-Wunknown-pragmas]
   35 |     #pragma const_seg(".fipsB$a")
      |
wolfcrypt/src/fips_test.c:2136:44: error: 'wolfCrypt_FIPS_SHA256_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2136 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_SHA256_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2137:43: error: 'wolfCrypt_FIPS_sha256_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2137 |                               start, end, wolfCrypt_FIPS_sha256_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2143:44: error: 'wolfCrypt_FIPS_SHA512_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2143 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_SHA512_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2144:43: error: 'wolfCrypt_FIPS_sha512_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2144 |                               start, end, wolfCrypt_FIPS_sha512_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2150:44: error: 'wolfCrypt_FIPS_SHA3_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2150 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_SHA3_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2151:43: error: 'wolfCrypt_FIPS_sha3_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2151 |                               start, end, wolfCrypt_FIPS_sha3_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2156:44: error: 'wolfCrypt_FIPS_FT_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2156 |     if (wolfCrypt_FIPS_sanity(first, last, wolfCrypt_FIPS_FT_sanity,
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                            wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2157:43: error: 'wolfCrypt_FIPS_ft_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2157 |                               start, end, wolfCrypt_FIPS_ft_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2162:43: error: 'wolfCrypt_FIPS_f_ro_sanity' undeclared (first use in this function); did you mean 'wolfCrypt_FIPS_sanity'?
 2162 |                               start, end, wolfCrypt_FIPS_f_ro_sanity,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           wolfCrypt_FIPS_sanity
wolfcrypt/src/fips_test.c:2168:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2168 |     code_sz = (unsigned long)last - (unsigned long)first;
      |               ^
wolfcrypt/src/fips_test.c:2168:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2168 |     code_sz = (unsigned long)last - (unsigned long)first;
      |                                     ^
wolfcrypt/src/fips_test.c:2169:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2169 |     data_sz = (unsigned long)end - (unsigned long)start;
      |               ^
wolfcrypt/src/fips_test.c:2169:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2169 |     data_sz = (unsigned long)end - (unsigned long)start;
      |                                    ^
wolfcrypt/src/fips_test.c:2189:37: error: 'FIPS_IN_CORE_HASH_TYPE' undeclared (first use in this function); did you mean 'FIPS_ECC_HASH_TYPE'?
 2189 |     ret = wc_HmacSetKey_fips(&hmac, FIPS_IN_CORE_HASH_TYPE,
      |                                     ^~~~~~~~~~~~~~~~~~~~~~
      |                                     FIPS_ECC_HASH_TYPE
wolfcrypt/src/fips_test.c:2199:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2199 |         data_sz = (unsigned long)verifyCore - (unsigned long)start;
      |                   ^
wolfcrypt/src/fips_test.c:2199:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2199 |         data_sz = (unsigned long)verifyCore - (unsigned long)start;
      |                                               ^
wolfcrypt/src/fips_test.c:2203:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2203 |         data_sz = (unsigned long)end - (unsigned long)start;
      |                   ^
wolfcrypt/src/fips_test.c:2203:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2203 |         data_sz = (unsigned long)end - (unsigned long)start;
      |                                        ^
wolfcrypt/src/fips_test.c:2027:14: warning: unused variable 'binVerify' [-Wunused-variable]
 2027 |     byte     binVerify  [FIPS_IN_CORE_VERIFY_SZ];
      |              ^~~~~~~~~
wolfcrypt/src/fips_test.c:2026:14: warning: unused variable 'binCoreKey' [-Wunused-variable]
 2026 |     byte     binCoreKey [FIPS_IN_CORE_KEY_SZ];
      |              ^~~~~~~~~~
wolfcrypt/src/fips_test.c:2025:14: warning: unused variable 'hash' [-Wunused-variable]
 2025 |     byte     hash[FIPS_IN_CORE_DIGEST_SIZE];
      |              ^~~~
wolfcrypt/src/fips_test.c: At top level:
wolfcrypt/src/fips_test.c:2234: warning: ignoring '#pragma warning ' [                                         ]
 2234 |     #pragma warning(pop)
      |
 warning: ignoring '#pragma code_seg ' [-Wunknown-pragmas]
   38 |         #pragma code_seg(".fipsA$g")
      |
wolfcrypt/src/hmac.c:39: warning: ignoring '#pragma const_seg ' [-Wunknown-pragmas]
   39 |         #pragma const_seg(".fipsB$g")
      |
make[2]: *** [Makefile:7335: wolfcrypt/src/src_libwolfssl_la-fips_test.lo] Error 1
wolfcrypt/src/random.c:53: warning: ignoring '#pragma code_seg ' [-Wunknown-pragmas]
   53 |         #pragma code_seg(".fipsA$i")
      |
wolfcrypt/src/random.c:54: warning: ignoring '#pragma const_seg ' [-Wunknown-pragmas]
   54 |         #pragma const_seg(".fipsB$i")
      |
make[2]: *** [Makefile:7213: wolfcrypt/test/test.o] Error 1
make[2]: Leaving directory '/home/volga629/strongswan-5.9.14/wolfssl-5.7.4-gplv3-fips-ready'
make[1]: *** [Makefile:9026: all-recursive] Error 1
make[1]: Leaving directory '/home/volga629/strongswan-5.9.14/wolfssl-5.7.4-gplv3-fips-ready'
make: *** [Makefile:5376: all] Error 2
anhu commented 6 days ago

Hi @volga629-1

According to your configure script output, this is how you executed the configure script:

./configure flags: --host=x86_64-w64-mingw32 --enable-keygen --enable-rsapss --enable-dtls --enable-certgen --enable-certreq --enable-certext --enable-sessioncerts --enable-crl --enable-ocsp --enable-secure-renegotiation --enable-strongswan 'CFLAGS=-DWOLFSSL_STATIC_RSA -DWOLFSSL_LOG_PRINTF -DWOLFSSL_PUBLIC_MP -DHAVE_EX_DATA -DFP_MAX_BITS=8192' --enable-ed25519 --enable-curve25519 --enable-fips=v2 --prefix=/home/volga629/strongswan-5.9.14/wolfssl-5.7.4-gplv3-fips-ready/wolfssl-fips-build --enable-ecc --disable-fpecc --disable-aligndata --disable-static --disable-jni --disable-crl-monitor --disable-examples host_alias=x86_64-w64-mingw32

I noticed --enable-fips=v2 but you are using a fips-ready source package, so you need to replace that with --enable-fips=ready

Warm regards, Anthony

volga629-1 commented 5 days ago

Thank you for reply, getting closer Currently get this error

with options

 ./configure --host=x86_64-w64-mingw32 --enable-reproducible-build --enable-keygen --enable-rsapss \
            --enable-certgen --enable-certreq --enable-certext \
            --enable-sessioncerts --enable-crl --enable-ocsp \
            --enable-tls13 --enable-dtls \
            --enable-secure-renegotiation --enable-strongswan  CPPFLAGS="-I/usr/include" CFLAGS="-DWOLFSSL_NO_ATOMICS -DWOLFSSL_LOG_PRINTF -DWOLFSSL_PUBLIC_MP -DHAVE_EX_DATA" \
            --enable-ed25519 --enable-curve25519 --enable-fips=ready  --prefix=$(pwd)/wolfssl-fips-build \
            --enable-ecc \
            --disable-fpecc \
            --disable-aligndata \
            --disable-static \
            --disable-jni \
            --disable-crl-monitor\
            --disable-examples 
configure:42436: Generating user options header...
configure:42550: checking for wolfssl/openssl/aes.h
configure:42550: x86_64-w64-mingw32-gcc -c -DWOLFSSL_NO_ATOMICS -DWOLFSSL_LOG_PRINTF -DWOLFSSL_PUBLIC_MP -DHAVE_EX_DATA   -Wno-pragmas -Wall -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wstrict-prototypes -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -DHAVE_CONFIG_H -I. -I. -I/usr/include conftest.c >&5
In file included from ./wolfssl/wolfcrypt/types.h:35,
                 from ./wolfssl/wolfcrypt/aes.h:37,
                 from ./wolfssl/openssl/aes.h:35,
                 from conftest.c:63:
./wolfssl/wolfcrypt/wc_port.h:870:20: error: field 's' has incomplete type
  870 |         XSTAT_TYPE s;
      |                    ^
In file included from ./wolfssl/wolfcrypt/wc_port.h:1167:
C:/msys64/usr/include/sys/time.h:373: warning: "timerclear" redefined
  373 | #define timerclear(tvp)         ((tvp)->tv_sec = (tvp)->tv_usec = 0)
      |
In file included from C:/msys64/mingw64/include/winsock2.h:52,
                 from ./wolfssl/wolfcrypt/wc_port.h:81:
C:/msys64/mingw64/include/_timeval.h:20: note: this is the location of the previous definition
   20 | #define timerclear(tvp)         (tvp)->tv_sec = (tvp)->tv_usec = 0
      |
C:/msys64/usr/include/sys/time.h:375: warning: "timercmp" redefined
  375 | #define timercmp(tvp, uvp, cmp)                                 \
      |
C:/msys64/mingw64/include/_timeval.h:17: note: this is the location of the previous definition
   17 | #define timercmp(tvp,uvp,cmp)                                   \
      |
In file included from ./wolfssl/wolfcrypt/wc_port.h:1332:
C:/msys64/usr/include/stdatomic.h:201:17: error: unknown type name 'int_least8_t'
  201 | typedef _Atomic(int_least8_t)           atomic_int_least8_t;
      |                 ^~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:202:17: error: unknown type name 'uint_least8_t'
  202 | typedef _Atomic(uint_least8_t)          atomic_uint_least8_t;
      |                 ^~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:203:17: error: unknown type name 'int_least16_t'
  203 | typedef _Atomic(int_least16_t)          atomic_int_least16_t;
      |                 ^~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:204:17: error: unknown type name 'uint_least16_t'
  204 | typedef _Atomic(uint_least16_t)         atomic_uint_least16_t;
      |                 ^~~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:205:17: error: unknown type name 'int_least32_t'
  205 | typedef _Atomic(int_least32_t)          atomic_int_least32_t;
      |                 ^~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:206:17: error: unknown type name 'uint_least32_t'
  206 | typedef _Atomic(uint_least32_t)         atomic_uint_least32_t;
      |                 ^~~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:207:17: error: unknown type name 'int_least64_t'
  207 | typedef _Atomic(int_least64_t)          atomic_int_least64_t;
      |                 ^~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:208:17: error: unknown type name 'uint_least64_t'
  208 | typedef _Atomic(uint_least64_t)         atomic_uint_least64_t;
      |                 ^~~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:209:17: error: unknown type name 'int_fast8_t'
  209 | typedef _Atomic(int_fast8_t)            atomic_int_fast8_t;
      |                 ^~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:210:17: error: unknown type name 'uint_fast8_t'
  210 | typedef _Atomic(uint_fast8_t)           atomic_uint_fast8_t;
      |                 ^~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:211:17: error: unknown type name 'int_fast16_t'
  211 | typedef _Atomic(int_fast16_t)           atomic_int_fast16_t;
      |                 ^~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:212:17: error: unknown type name 'uint_fast16_t'
  212 | typedef _Atomic(uint_fast16_t)          atomic_uint_fast16_t;
      |                 ^~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:213:17: error: unknown type name 'int_fast32_t'
  213 | typedef _Atomic(int_fast32_t)           atomic_int_fast32_t;
      |                 ^~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:214:17: error: unknown type name 'uint_fast32_t'
  214 | typedef _Atomic(uint_fast32_t)          atomic_uint_fast32_t;
      |                 ^~~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:215:17: error: unknown type name 'int_fast64_t'
  215 | typedef _Atomic(int_fast64_t)           atomic_int_fast64_t;
      |                 ^~~~~~~~~~~~
C:/msys64/usr/include/stdatomic.h:216:17: error: unknown type name 'uint_fast64_t'
  216 | typedef _Atomic(uint_fast64_t)          atomic_uint_fast64_t;
      |                 ^~~~~~~~~~~~~
configure:42550: $? = 1
configure: failed program was:
anhu commented 5 days ago

Hi, please use visual studio. That is the best method for building wolfSSL on windows.

volga629-1 commented 5 days ago

Visual Studio is simplified the process. Thank you. I was be able to build DLL.