randombit / botan

Cryptography Toolkit
https://botan.randombit.net
BSD 2-Clause "Simplified" License
2.59k stars 567 forks source link

Compile Botan error on Windows11 #3500

Closed UApocalypse closed 1 year ago

UApocalypse commented 1 year ago

I use the x86 native tools command prompt for visual studio 2019. More information

C:\Windows\System32>python D:\Botan-3.0.0\configure.py --cpu=x86_32 --link-method=hardlink
   INFO: D:\Botan-3.0.0\configure.py invoked with options "--cpu=x86_32 --link-method=hardlink"
   INFO: Configuring to build Botan 3.0.0 (revision git:51b06ca93d1998d19927699f78b8d67539148dde)
   INFO: Running under 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]
   INFO: Autodetected platform information: OS="Windows" machine="AMD64" proc="Intel64 Family 6 Model 165 Stepping 2, GenuineIntel"
   INFO: Guessing target OS is windows (use --os to set)
   INFO: Guessing to use compiler msvc (use --cc or CXX to set)
   INFO: Auto-detected compiler version 19.29
   INFO: Auto-detected compiler arch x86_32
   INFO: Target is msvc:19.29-windows-x86_32
   INFO: Assuming target x86_32 is little endian
   INFO: Skipping (dependency failure): asio certstor_sqlite3 sessions_sqlite3
   INFO: Skipping (incompatible CPU): aes_armv8 aes_power8 sha1_armv8 sha2_32_armv8 sha2_64_bmi2 sha3_bmi2 shacal2_armv8 sm4_armv8
   INFO: Skipping (incompatible OS): certstor_system_macos commoncrypto fd_unix getentropy
   INFO: Skipping (incompatible compiler): argon2_avx2 argon2_ssse3 chacha_avx2 serpent_avx2 sha2_32_bmi2 shacal2_avx2 simd_avx2
   INFO: Skipping (no enabled compression schemes): compression
   INFO: Skipping (requires external dependency): boost bzip2 lzma sqlite3 tpm zlib
   INFO: Loading modules: adler32 aead aes aes_ni aes_vperm argon2 argon2fmt aria asn1 auto_rng base base32 base58 base64 bcrypt bcrypt_pbkdf bigint blake2 blake2mac block blowfish camellia cascade cast128 cbc ccm certstor_flatfile certstor_sql certstor_system certstor_system_windows cfb chacha chacha20poly1305 chacha_rng chacha_simd32 checksum cmac comb4p cpuid crc24 crc32 cryptobox ctr curve25519 des dh dilithium dilithium_aes dilithium_common dl_algo dl_group dlies dsa dyn_load eax ec_group ec_h2c ecc_key ecdh ecdsa ecgdsa ecies eckcdsa ed25519 elgamal eme_oaep eme_pkcs1 eme_raw emsa_pkcs1 emsa_pssr emsa_raw emsa_x931 entropy ffi filters fpe_fe1 gcm ghash ghash_cpu ghash_vperm gmac gost_28147 gost_3410 gost_3411 hash hash_id hex hkdf hmac hmac_drbg hotp http_util idea idea_sse2 iso9796 kdf kdf1 kdf1_iso18033 kdf2 keccak keypair kyber kyber_90s kyber_common lion locking_allocator mac mce md4 md5 mdx_hash mem_pool mgf1 mode_pad modes mp nist_keywrap noekeon noekeon_simd numbertheory ocb ofb par_hash passhash9 pbes2 pbkdf pbkdf2 pem pgp_s2k pk_pad pkcs11 poly1305 poly_dbl prf_tls prf_x942 processor_rng psk_db pubkey raw_hash rc4 rdseed rfc3394 rfc6979 rmd160 rng roughtime rsa salsa20 scrypt seed serpent serpent_simd sessions_sql sha1 sha1_sse2 sha1_x86 sha2_32 sha2_32_x86 sha2_64 sha3 shacal2 shacal2_simd shacal2_x86 shake shake_cipher simd siphash siv skein sm2 sm3 sm4 socket sodium sp800_108 sp800_56a sp800_56c srp6 stateful_rng stream streebog system_rng thread_utils threefish_512 tls tls12 tls13 tls_cbc trunc_hash tss twofish utils uuid whirlpool win32_stats x509 x919_mac xmss xts zfec zfec_sse2 zfec_vperm
   INFO: Using hardlink to link files into build dir (use --link-method to change)
  ERROR: Error linking D:\Botan-3.0.0\src\lib\asn1\asn1_obj.h into build\include\botan: [WinError 17] 系统无法将文件移到不同的磁盘驱动器。: 'D:\\Botan-3.0.0\\src\\lib\\asn1\\asn1_obj.h' -> 'build\\include\\botan\\asn1_obj.h'
randombit commented 1 year ago

Sorry about that. This is an instance of #3498 you can avoid the problem by providing the additional option --link-method=copy, this will be fixed in the next release.

UApocalypse commented 1 year ago

Thank you for your fast and accurate help!❤