randombit / botan

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

Can't generate amalgamation on OS X #35

Closed ruipacheco closed 9 years ago

ruipacheco commented 9 years ago

Downloaded and tar xvzf-ed Botan-1.11.10. Inside the directory I tried to generate the amalgamation and got the following error:

$ ./configure.py --gen-amalgamation
  INFO: Guessing target OS is darwin (use --os to set)
  INFO: Guessing to use compiler gcc (use --cc to set)
  INFO: Guessing target processor is a x86_64/x86_64 (use --cpu to set)
  INFO: Target is gcc-darwin-x86_64-x86_64
  INFO: Disabling assembly code, cannot use in amalgamation
  INFO: Skipping, by request only - bzip2 cvc lzma openssl sqlite3 zlib
  INFO: Skipping, dependency failure - dyn_engine sessions_sqlite
  INFO: Skipping, incompatible CPU - md4_x86_32 md5_x86_32 mp_x86_32 serpent_x86_32     sha1_x86_32 simd_altivec
  INFO: Skipping, incompatible OS - asm_x86_32 asm_x86_64 beos_stats cryptoapi_rng dyn_load     locking_allocator win32_stats
  INFO: Skipping, incompatible compiler - mp_x86_32_msvc
  INFO: Skipping, loaded only if needed by dependency - asm_engine mp_generic simd_scalar
  INFO: Skipping, uses assembly and --disable-asm set - sha1_x86_64
  INFO: Using MP module mp_x86_64
  INFO: Using SIMD module simd_sse2
  INFO: Loading modules adler32 aead aead_filt aes aes_isa_eng aes_ni aes_ssse3 algo_base  algo_factory alloc aont asn1 auto_rng base64 bcrypt benchmark bigint block blowfish boost camellia cascade cast cbc cbc_mac ccm cfb chacha clmul cmac codec_filt comb4p compression core_engine crc24 crc32 credentials cryptobox cryptobox_psk ctr datastor des dev_random dh dl_algo dl_group dlies dsa eax ec_gfp ec_group ecb ecc_key ecdh ecdsa egd elgamal eme_oaep eme_pkcs1 emsa1 emsa1_bsi emsa_pkcs1 emsa_pssr emsa_raw emsa_x931 engine entropy fd_unix filters fpe_fe1 gcm gost_28147 gost_3410 gost_3411 has160 hash hash_id hex hkdf hmac hmac_drbg hmac_rng hres_timer http_util idea idea_sse2 if_algo kasumi kdf kdf1 kdf2 keccak keypair libstate lion mac mars mce md2 md4 md5 mdx_hash mgf1 misty1 mode_pad modes mp mp_x86_64 noekeon noekeon_simd nr numbertheory ocb ofb oid_lookup openpgp par_hash passhash9 pbes2 pbkdf pbkdf1 pbkdf2 pem pk_pad prf_ssl3 prf_tls prf_x942 proc_walk pubkey rc2 rc4 rc5 rc6 rdrand rfc3394 rfc6979 rmd128 rmd160 rng rsa rw safer salsa20 seed selftest serpent serpent_simd sha1 sha1_sse2 sha2_32 sha2_64 simd simd_engine simd_sse2 siv skein srp6 ssl3mac stream system_rng tea threefish threefish_avx2 tiger tls tss twofish unix_procs utils whirlpool x509 x919_mac x931_rng xtea xtea_simd xts
  INFO: Assuming CPU is little endian
  INFO: Assuming unaligned memory access works
  INFO: Using symlink to link files into build directory (use --link-method to change)
  INFO: Writing amalgamation to botan_all.h and botan_all.cpp
  ERROR: No header guard found in ./src/lib/pubkey/mce/gf2m_rootfind_dcmp.h
randombit commented 9 years ago

Fixed in trunk. You can work around this in the release with --disable-modules=mce (assuming you aren't trying to use the new McEliece code)