homeberw を使って libgcrypt をインストールしようとした
==> Downloading https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.7.1.tar.bz2
Already downloaded: /Users/***/Library/Caches/Homebrew/libgcrypt-1.7.1.tar.bz2
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgcrypt/1.7.1 --disable-asm --with-libgpg-error-prefix=/usr/local/opt/libgpg-error
==> make
==> make install
==> make check
Last 15 lines from /Users/***/Library/Logs/Homebrew/libgcrypt/04.make:
HMAC_SHA3_384 20ms 10ms 20ms
HMAC_SHA3_512 10ms 20ms 10ms
/bin/sh: line 1: 71242 Segmentation fault: 11 GCRYPT_IN_REGRESSION_TEST=1 ${dir}$tst
FAIL: benchmark
/bin/sh: line 1: 71261 Segmentation fault: 11 GCRYPT_IN_REGRESSION_TEST=1 ${dir}$tst
FAIL: bench-slope
SKIP: hashtest-256g
======================================
4 of 25 tests failed
(1 test was not run)
Please report to http://bugs.gnupg.org
======================================
make[2]: *** [check-TESTS] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues
なんかテストにコケてインストールできない。
解決策
に従って、ワークアラウンドを施します。
結果
==> Downloading https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.7.1.tar.bz2
Already downloaded: /Users/***/Library/Caches/Homebrew/libgcrypt-1.7.1.tar.bz2
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgcrypt/1.7.1 --disable-asm --with-libgpg-error-prefix=/usr/local/opt/libgpg-error
==> make
==> make install
==> make check
🍺 /usr/local/Cellar/libgcrypt/1.7.1: 17 files, 1.5M, built in 3 minutes 12 seconds
🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺🍺