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

`brew install valgrind` fails but new version is available #23536

timotheecour opened this Issue Feb 1, 2018 · 9 comments


None yet
8 participants

timotheecour commented Feb 1, 2018

Please always follow these steps:

  • Confirmed this is a problem with brew installing one, specific Homebrew/homebrew-core formula (not cask or tap) and not every time you run brew? If it's a general brew problem please file this issue at If it's a brew cask problem please file this issue at If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • Ran brew update and retried your prior step?
  • Ran brew doctor, fixed all issues and retried your prior step?
  • Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?
brew install valgrind
valgrind: This formula either does not compile or function as expected on macOS
versions newer than Sierra due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.

brew gist-logs valgrind
Error: No logs.

NOTE: says:

Now the latest version Valgrind works on Mac OS. – Musen Jan 2 at 14:36

brew config
HOMEBREW_VERSION: 1.5.0-25-g34aa15b
HEAD: 34aa15b69f49b17862c7d0ea6c22692672cfc607
Last commit: 8 days ago
Core tap ORIGIN:
Core tap HEAD: 099a7a00a4e189b5344d8a665694763858e8064b
Core tap last commit: 7 hours ago
HOMEBREW_PREFIX: /Users/timothee/homebrew
HOMEBREW_REPOSITORY: /Users/timothee/homebrew
HOMEBREW_CELLAR: /Users/timothee/homebrew/Cellar
HOMEBREW_CELLAR: /Users/timothee/homebrew/Cellar
HOMEBREW_PREFIX: /Users/timothee/homebrew
HOMEBREW_REPOSITORY: /Users/timothee/homebrew
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.16.1 => /Users/timothee/homebrew/bin/git
Curl: 7.54.0 => /usr/bin/curl
Perl: /usr/bin/perl
Python: /Users/timothee/homebrew/opt/python/libexec/bin/python => /Users/timothee/homebrew/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Java: 9.0.1
macOS: 10.13.1-x86_64
Xcode: 9.2
X11: 2.7.11 => /opt/X11
brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

Warning: Your Homebrew's prefix is not /usr/local.
You can install Homebrew anywhere you want but some bottles (binary packages)
can only be used with a /usr/local prefix and some formulae (packages)
may not build correctly with a non-/usr/local prefix.

Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:

This comment has been minimized.


timotheecour commented Feb 1, 2018

workaround: brew install --HEAD valgrind
not sure why #18998 was closed; why not keep it open until brew install valgrind works?


==> Cloning
Cloning into '/Users/timothee/Library/Caches/Homebrew/valgrind--git'...
error: Failed to connect to port 443: Operation timed out (curl_result = 7, http_code = 0, sha1 = f844689f858d4bb744e59eadaaf984d3fd0b5b50)
error: Unable to find f844689f858d4bb744e59eadaaf984d3fd0b5b50 under
Cannot obtain needed commit f844689f858d4bb744e59eadaaf984d3fd0b5b50
while processing commit ff24dfeb576df628eec14e711050fc25698043b3.
error: fetch failed.
Error: Failed to download resource "valgrind"
Failure while executing: git clone --branch master /Users/timothee/Library/Caches/Homebrew/valgrind--git

maybe is flaky? takes ~120 seconds; sometimes works, sometimes times out; maybe we can increase timeout in brew formula? how?
after trying a few times it works. But we should still keep bug open until
brew install valgrind works without --HEAD


This comment has been minimized.


ilovezfs commented Feb 1, 2018

We don't keep issues or PRs open as placeholders.

@ilovezfs ilovezfs closed this Feb 1, 2018


This comment has been minimized.

bitboyz commented Feb 7, 2018

Get the following error 👎
screen shot 2018-02-06 at 10 07 02 pm


This comment has been minimized.

hasahmed commented Feb 7, 2018

@bitboyz I'm having the same issue


This comment has been minimized.

ElliotVilhelm commented Feb 18, 2018

same issue


This comment has been minimized.


ilovezfs commented Feb 18, 2018

There is also an http mirror for the repository set up at You can use it if you are behind a firewall and cannot tunnel through with socat. To clone from this mirror, do this:

git clone


This comment has been minimized.

seanwayland commented Mar 17, 2018

Same issue here with brew install --HEAD valgrind
error: Unable to find ec883e4975493e3ff724d99f728055cf57948c2b under


This comment has been minimized.

joshuakim314 commented Mar 22, 2018

having same issue :(


This comment has been minimized.

inumanag commented Mar 24, 2018

Workaround: do brew edit valgrind and replace with git:// in head section of the formula.

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.