internetstandards / Internet.nl

Internet standards compliance test suite
https://internet.nl
174 stars 37 forks source link

Can't build on MacOS M1 #1513

Open DavidLobster opened 2 weeks ago

DavidLobster commented 2 weeks ago

During "make build" I get the following error on MacOS M1: gcc: error: unrecognized command-line option '-m64'

make[1]: Entering directory '/src/vendor/nassl/openssl-1.0.2e/crypto' /usr/bin/perl ../util/mkbuildinf.pl "gcc -I. -I.. -I../include -I/src/vendor/nassl/zlib-1.2.13 -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -fPIC -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM" "linux-x86_64" >buildinf.h gcc -I. -I.. -I../include -I/src/vendor/nassl/zlib-1.2.13 -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -fPIC -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -c -o cryptlib.o cryptlib.c gcc: error: unrecognized command-line option '-m64' make[1]: Leaving directory '/src/vendor/nassl/openssl-1.0.2e/crypto' make[1]: [: cryptlib.o] Error 1 make: [Makefile:291: build_crypto] Error 1 ===BUILDING ZLIB=== ===BUILDING LEGACY OPENSSL=== Traceback (most recent call last): File "/src/vendor/nassl/build_from_scratch.py", line 298, in main() File "/src/vendor/nassl/build_from_scratch.py", line 271, in main build_legacy_openssl() File "/src/vendor/nassl/build_from_scratch.py", line 218, in build_legacy_openssl perform_build_task('LEGACY OPENSSL', openssl_config.build_steps, LEGACY_OPENSSL_PATH) File "/src/vendor/nassl/build_from_scratch.py", line 201, in perform_build_task subprocess.check_call(command, shell=True, cwd=cwd) File "/usr/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'make build_libs' returned non-zero exit status 2.

mxsasha commented 2 weeks ago

The current main branch isn’t well supported on Mac OS X. You can try the experimental sslyze branch, it has fixes for this (along with a TLS code rewrite).

DavidLobster commented 2 weeks ago

Thank you very much! This works for me. Although I still had to add --platform linux/amd64 after docker run in the Makefile