When I build argon2 on macOS 10.15 Catalina (19A602) it produces a binary but the binary does not work - it always exits with a segmentation fault when trying to produce a hash. Running make test also fails. My shell is zsh, and I have Apple's current command line tools installed . Here are the steps I took:
% make
Building with optimizations for native
cc -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c src/encoding.c src/opt.c src/run.c -o argon2
No error is thrown during build, and the argon2 binary is created as expected. Running tests:
% make test
Building with optimizations for native
cc -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native -Wextra -Wno-type-limits src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c src/encoding.c src/opt.c src/test.c -o testcase
ld: can't write output file: testcase for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [test] Error 1
If I try and produce a hash using the produced argon2 binary:
When I build argon2 on macOS 10.15 Catalina (19A602) it produces a binary but the binary does not work - it always exits with a segmentation fault when trying to produce a hash. Running make test also fails. My shell is zsh, and I have Apple's current command line tools installed . Here are the steps I took:
No error is thrown during build, and the argon2 binary is created as expected. Running tests:
If I try and produce a hash using the produced argon2 binary:
That's it!