libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.
https://www.libtom.net
Other
1.51k stars 449 forks source link

Unsupported flags for Apple #614

Closed barracuda156 closed 1 year ago

barracuda156 commented 1 year ago

This does not work :)

make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_libtomcrypt/libtomcrypt/work/libtomcrypt-1.18.2'
   * /usr/bin/gcc-4.2 src/ciphers/anubis.o
   * /usr/bin/gcc-4.2 src/ciphers/aes/aes.o
   * /usr/bin/gcc-4.2 src/ciphers/camellia.o
   * /usr/bin/gcc-4.2 src/ciphers/blowfish.o
   * /usr/bin/gcc-4.2 src/ciphers/cast5.o
cc1: error: unrecognized command line option "-Wno-type-limits"
cc1: error: unrecognized command line option "-Wno-nullability-completeness"
cc1: error: unrecognized command line option "-Wno-type-limits"
cc1: error: unrecognized command line option "-Wno-nullability-completeness"
cc1: error: unrecognized command line option "-Wno-type-limits"
cc1: error: unrecognized command line option "-Wno-nullability-completeness"
cc1: error: unrecognized command line option "-Wno-type-limits"
cc1: error: unrecognized command line option "-Wno-nullability-completeness"
cc1: error: unrecognized command line option "-Wno-type-limits"
cc1: error: unrecognized command line option "-Wno-nullability-completeness"
cc1: error: unrecognized command line option "-Wno-type-limits"
cc1: error: unrecognized command line option "-Wno-nullability-completeness"
make: *** [src/ciphers/aes/aes_enc.o] Error 1

If these are Clang-specific, there should be a condition on compiler used. If they are standard-specific, then a required minimum standard should be declared.

sjaeckel commented 1 year ago

That's nothing Apple specific. You seem to be using gcc-4.2 which is a very dated version of gcc we don't support anymore.

Please either edit the makefile manually for your case or use a more up-to-date version of gcc.