Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.8.1 Regression: Windows x86_64 fails in linking step #275

Closed
gregcotten opened this issue Oct 14, 2024 · 2 comments · Fixed by #279
Closed

3.8.1 Regression: Windows x86_64 fails in linking step #275

gregcotten opened this issue Oct 14, 2024 · 2 comments · Fixed by #279

Comments

@gregcotten
Copy link

gregcotten commented Oct 14, 2024

Of course when Windows arm64 linking is fixed (with the 3.8.1 release), Windows x86_64 breaks!

Regression Information

  • Breaking version: 3.8.1
  • Last working version: 3.8.0

Regression Description

A big wall of linker errors:

lld-link: error: undefined symbol: CCryptoBoringSSL_ChaCha20_ctr32_avx2 >>> referenced by C:\\path\\to\\project\\.build\\x86_64-unknown-windows-msvc\\debug\\CCryptoBoringSSL.build\\crypto\\chacha\\chacha.c.o:(ChaCha20_ctr32)

lld-link: error: undefined symbol: CCryptoBoringSSL_ChaCha20_ctr32_ssse3_4x

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\chacha\chacha.c.o:(ChaCha20_ctr32)

lld-link: error: undefined symbol: CCryptoBoringSSL_ChaCha20_ctr32_ssse3

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\chacha\chacha.c.o:(ChaCha20_ctr32)

lld-link: error: undefined symbol: CCryptoBoringSSL_ChaCha20_ctr32_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\chacha\chacha.c.o:(ChaCha20_ctr32)

lld-link: error: undefined symbol: CCryptoBoringSSL_chacha20_poly1305_seal_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\cipher_extra\e_chacha20poly1305.c.o:(CCryptoBoringSSL_chacha20_poly1305_seal)

lld-link: error: undefined symbol: CCryptoBoringSSL_chacha20_poly1305_seal_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\cipher_extra\e_chacha20poly1305.c.o:(CCryptoBoringSSL_chacha20_poly1305_seal)

lld-link: error: undefined symbol: CCryptoBoringSSL_chacha20_poly1305_open_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\cipher_extra\e_chacha20poly1305.c.o:(CCryptoBoringSSL_chacha20_poly1305_open)

lld-link: error: undefined symbol: CCryptoBoringSSL_chacha20_poly1305_open_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\cipher_extra\e_chacha20poly1305.c.o:(CCryptoBoringSSL_chacha20_poly1305_open)

lld-link: error: undefined symbol: CCryptoBoringSSL_aes_hw_encrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_encrypt)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_ctr_set_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_ctr_set_key)
referenced 1 more times

lld-link: error: undefined symbol: CCryptoBoringSSL_vpaes_encrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_encrypt)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_ctr_set_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_ctr_set_key)
referenced 1 more times

lld-link: error: undefined symbol: CCryptoBoringSSL_aes_hw_decrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_decrypt)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_vpaes_decrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_decrypt)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_vpaes_set_encrypt_key

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_set_encrypt_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_ctr_set_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_aes_hw_set_encrypt_key_alt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_hw_set_encrypt_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_aes_hw_set_encrypt_key_base

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_hw_set_encrypt_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_vpaes_set_decrypt_key

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_set_decrypt_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_aes_hw_encrypt_key_to_decrypt_key

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_hw_set_decrypt_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_aes_hw_ctr32_encrypt_blocks

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_ctr128_encrypt)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_ctr_set_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_vpaes_ctr32_encrypt_blocks

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_ctr128_encrypt)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_aes_ctr_set_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_aes_hw_cbc_encrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_AES_cbc_encrypt)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_scatter5

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_BN_mod_exp_mont_consttime)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_BN_mod_exp_mont_consttime)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_BN_mod_exp_mont_consttime)
referenced 3 more times

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_gather5

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_BN_mod_exp_mont_consttime)

lld-link: error: undefined symbol: CCryptoBoringSSL_rsaz_1024_norm2red_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)

lld-link: error: undefined symbol: CCryptoBoringSSL_rsaz_1024_mul_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced 5 more times

lld-link: error: undefined symbol: CCryptoBoringSSL_rsaz_1024_scatter5_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced 5 more times

lld-link: error: undefined symbol: CCryptoBoringSSL_rsaz_1024_sqr_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced 4 more times

lld-link: error: undefined symbol: CCryptoBoringSSL_rsaz_1024_gather5_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)
referenced 1 more times

lld-link: error: undefined symbol: CCryptoBoringSSL_rsaz_1024_red2norm_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_RSAZ_1024_mod_exp_avx2)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_sqr8x_mont

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_bn_mul_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_mulx4x_mont

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_bn_mul_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_mul4x_mont

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_bn_mul_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_mul_mont_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_bn_mul_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_mulx4x_mont_gather5

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(bn_mul_mont_gather5)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_mul4x_mont_gather5

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(bn_mul_mont_gather5)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_mul_mont_gather5_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(bn_mul_mont_gather5)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_powerx5

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(bn_power5)

lld-link: error: undefined symbol: CCryptoBoringSSL_bn_power5_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(bn_power5)

lld-link: error: undefined symbol: CCryptoBoringSSL_gcm_init_avx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_CRYPTO_ghash_init)

lld-link: error: undefined symbol: CCryptoBoringSSL_gcm_gmult_avx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_CRYPTO_ghash_init)

lld-link: error: undefined symbol: CCryptoBoringSSL_gcm_ghash_avx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_CRYPTO_ghash_init)

lld-link: error: undefined symbol: CCryptoBoringSSL_gcm_init_clmul

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_CRYPTO_ghash_init)

lld-link: error: undefined symbol: CCryptoBoringSSL_gcm_gmult_clmul

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_CRYPTO_ghash_init)

lld-link: error: undefined symbol: CCryptoBoringSSL_gcm_ghash_clmul

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_CRYPTO_ghash_init)

lld-link: error: undefined symbol: CCryptoBoringSSL_gcm_gmult_ssse3

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_CRYPTO_ghash_init)

lld-link: error: undefined symbol: CCryptoBoringSSL_gcm_ghash_ssse3

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_CRYPTO_ghash_init)

lld-link: error: undefined symbol: CCryptoBoringSSL_aesni_gcm_encrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(hw_gcm_encrypt)

lld-link: error: undefined symbol: CCryptoBoringSSL_aesni_gcm_decrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(hw_gcm_decrypt)

lld-link: error: undefined symbol: CCryptoBoringSSL_CRYPTO_rdrand_multiple8_buf

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(rdrand)

lld-link: error: undefined symbol: CCryptoBoringSSL_CRYPTO_rdrand

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(rdrand)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha1_block_data_order_hw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha1_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha1_block_data_order_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha1_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha1_block_data_order_avx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha1_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha1_block_data_order_ssse3

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha1_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha1_block_data_order_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha1_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha256_block_data_order_hw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha256_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha256_block_data_order_avx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha256_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha256_block_data_order_ssse3

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha256_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha256_block_data_order_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha256_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha512_block_data_order_avx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha512_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_sha512_block_data_order_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(sha512_block_data_order)

lld-link: error: undefined symbol: CCryptoBoringSSL_vpaes_cbc_encrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_init_key)

lld-link: error: undefined symbol: CCryptoBoringSSL_aes_hw_ecb_encrypt

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(aes_hw_ecb_cipher)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_neg

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(ecp_nistz256_point_mul_base)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(ecp_nistz256_point_mul_base)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(ecp_nistz256_points_mul_public)
referenced 3 more times

lld-link: error: undefined symbol: CCryptoBoringSSL_beeu_mod_inverse_vartime

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(ecp_nistz256_scalar_to_montgomery_inv_vartime)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_mul_mont_adx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_mul_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_mul_mont_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_mul_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_sqr_mont_adx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_sqr_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_sqr_mont_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_sqr_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_point_add_adx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_point_add)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_point_add_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_point_add)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_point_double_adx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_point_double)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_point_double_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_point_double)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_select_w5_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_select_w5)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_select_w5_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_select_w5)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_select_w7_avx2

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_select_w7)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_select_w7_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_select_w7)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_point_add_affine_adx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_point_add_affine)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_point_add_affine_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_point_add_affine)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_ord_sqr_mont_adx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_ord_sqr_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_ord_sqr_mont_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_ord_sqr_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_ord_mul_mont_adx

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_ord_mul_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_ecp_nistz256_ord_mul_mont_nohw

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\fipsmodule\bcm.c.o:(CCryptoBoringSSL_ecp_nistz256_ord_mul_mont)

lld-link: error: undefined symbol: CCryptoBoringSSL_md5_block_asm_data_order

referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\md5\md5.c.o:(CCryptoBoringSSL_MD5_Update)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\md5\md5.c.o:(CCryptoBoringSSL_MD5_Final)
referenced by C:\path\to\project\.build\x86_64-unknown-windows-msvc\debug\CCryptoBoringSSL.build\crypto\md5\md5.c.o:(CCryptoBoringSSL_MD5_Transform)

Swift Crypto version/commit hash

3.8.1 AND main / 21f7878

@gregcotten gregcotten changed the title Windows x86_64 fails in linking step with 3.8.1 3.8.1 Regression: Windows x86_64 fails in linking step Oct 14, 2024
@Lukasa
Copy link
Contributor

Lukasa commented Oct 15, 2024

Thanks @gregcotten, I'll take a look at this tomorrow.

@Lukasa
Copy link
Contributor

Lukasa commented Oct 16, 2024

Ok, I've diagnosed this issue. I'll put together a patch and see if I can convince myself that this is working appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants