m3sserschmitt / enigma4

Onion Routing App
MIT License
0 stars 0 forks source link

Build fails with clang/aarch64 on `libcryptography` #6

Open barracuda156 opened 9 months ago

barracuda156 commented 9 months ago
In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/src/aes.cc:1:
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:12:6: error: expected expression
    [[deprecated("It might be removed in further releases;")]] BYTES iv;
     ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:12:64: error: a type specifier is required for all declarations
    [[deprecated("It might be removed in further releases;")]] BYTES iv;
                                                               ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:12:69: error: expected ';' at end of declaration list
    [[deprecated("It might be removed in further releases;")]] BYTES iv;
                                                                    ^
                                                                    ;
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:19:6: error: expected expression
    [[deprecated("It might be removed in further releases;")]]bool encrinit;
     ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:19:63: error: expected member name or ';' after declaration specifiers
    [[deprecated("It might be removed in further releases;")]]bool encrinit;
                                                              ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:20:6: error: expected expression
    [[deprecated("It might be removed in further releases;")]]bool decrinit;
     ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:20:63: error: expected member name or ';' after declaration specifiers
    [[deprecated("It might be removed in further releases;")]]bool decrinit;
                                                              ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:22:6: error: expected expression
    [[deprecated("It might be removed in further releases;")]] bool iv_autoset;
     ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:22:64: error: expected member name or ';' after declaration specifiers
    [[deprecated("It might be removed in further releases;")]] bool iv_autoset;
                                                               ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:23:6: error: expected expression
    [[deprecated("It might be removed in further releases;")]] bool iv_append;
     ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes_types.hh:23:64: error: expected member name or ';' after declaration specifiers
    [[deprecated("It might be removed in further releases;")]] bool iv_append;
                                                               ^
In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/src/aes.cc:2:
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes.hh:42:4: error: expected expression
  [[deprecated("This function might be removed in further releases;")]] void AES_iv_autoset(bool autoset, AES_CRYPTO ctx);
   ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes.hh:42:73: error: expected unqualified-id
  [[deprecated("This function might be removed in further releases;")]] void AES_iv_autoset(bool autoset, AES_CRYPTO ctx);
                                                                        ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes.hh:50:4: error: expected expression
  [[deprecated("This function might be removed in further releases;")]] void AES_iv_append(bool append, AES_CRYPTO ctx);
   ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes.hh:50:73: error: expected unqualified-id
  [[deprecated("This function might be removed in further releases;")]] void AES_iv_append(bool append, AES_CRYPTO ctx);
                                                                        ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes.hh:59:4: error: expected expression
  [[deprecated("This function might be removed in further releases;")]] int AES_setup_iv(const BYTE *iv, SIZE ivlen, AES_CRYPTO ctx);
   ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes.hh:59:73: error: expected unqualified-id
  [[deprecated("This function might be removed in further releases;")]] int AES_setup_iv(const BYTE *iv, SIZE ivlen, AES_CRYPTO ctx);
                                                                        ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes.hh:97:4: error: expected expression
  [[deprecated("This function might be removed in further releases. Use AES_init_ctx instead.")]] int AES_init(const BYTE *passphrase, SIZE passlen, const BYTE *salt, int rounds, CRYPTO_OP op, AES_CRYPTO ctx);
   ^
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_security_enigma4/enigma4/work/enigma4-e53879f73b439d318f0171cffd4c63719aa270d5/libcryptography/include/cryptography/aes.hh:97:99: error: expected unqualified-id
  [[deprecated("This function might be removed in further releases. Use AES_init_ctx instead.")]] int AES_init(const BYTE *passphrase, SIZE passlen, const BYTE *salt, int rounds, CRYPTO_OP op, AES_CRYPTO ctx);
                                                                                                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

Etc.

barracuda156 commented 6 months ago

Well, with std=c++17 it compiles fine. Related: https://stackoverflow.com/questions/67279660/how-can-i-solve-the-error-expected-expression