Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on MacOS M1 #1513

Open
DavidLobster opened this issue Oct 1, 2024 · 2 comments
Open

Can't build on MacOS M1 #1513

DavidLobster opened this issue Oct 1, 2024 · 2 comments

Comments

@DavidLobster
Copy link

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
Copy link
Collaborator

mxsasha commented Oct 1, 2024 via email

@DavidLobster
Copy link
Author

DavidLobster commented Oct 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants