P-H-C / phc-winner-argon2

The password hash Argon2, winner of PHC
Other
4.78k stars 406 forks source link

'make' with MinGW fails on Windows O.S. #365

Closed vault-thirteen closed 10 months ago

vault-thirteen commented 10 months ago

mingw32-make

The system cannot find the path specified.
Building without optimizations
process_begin: CreateProcess(NULL, pwd, ...) failed.
mingw32-make: Makefile:64: pipe: Bad file descriptor
process_begin: CreateProcess(NULL, uname -s, ...) failed.
mingw32-make: Makefile:65: pipe: Bad file descriptor
process_begin: CreateProcess(NULL, uname -m, ...) failed.
mingw32-make: Makefile:66: pipe: Bad file descriptor
sed '/^##.*$/d; s#@PREFIX@#/usr#g; s#@EXTRA_LIBS@##g; s#@UPSTREAM_VER@#ZERO#g; s#@HOST_MULTIARCH@#lib#g; s#@INCLUDE@#include#g;' < 'libargon2.pc.in' > 'libargon2.pc'
The system cannot find the file specified.
mingw32-make: *** [Makefile:210: libargon2.pc] Error 1
vault-thirteen commented 10 months ago

MSYS2 does not have this problem.

$ make


Building with optimizations for native
cc -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native -shared -Wl,--out-implib,libargon2.dll.a   src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c src/encoding.c src/opt.c -o libargon2.dll
cc -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native   -c -o src/opt.o src/opt.c
ar rcs libargon2.a src/argon2.o src/core.o src/blake2/blake2b.o src/thread.o src/encoding.o src/opt.o
sed '/^##.*$/d; s#@PREFIX@#/usr#g; s#@EXTRA_LIBS@##g; s#@UPSTREAM_VER@#ZERO#g; s#@HOST_MULTIARCH@#lib#g; s#@INCLUDE@#include#g;' < 'libargon2.pc.in' > 'libargon2.pc'


MinGW is broken.