Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
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 https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/Homebrew/caskroom/homebrew-cask/new. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update and retried your prior step?brew doctor, fixed all issues and retried your prior step?brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?To help us debug your issue please explain:
Updating Homebrew...
valgrind: This formula either does not compile or function as expected on macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.Step-by-step reproduction instructions (by running brew install commands)
brew install valgrind
brew gist-logs did not work. Here is the output to brew config
HOMEBREW_VERSION: 1.3.4-71-g57035b3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 57035b3ba4b8361c0e764575348607cc18b64ae7
Last commit: 4 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 9586b57eb1b2d9bed127d2259e649e16f8f0ae5a
Core tap last commit: 7 months ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.8.1 => /usr/local/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.24.0_1/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/hasankatie/.rvm/rubies/ruby-2.3.1/bin/ruby
Java: 1.8.0_91, 1.7.0_79
macOS: 10.12.6-x86_64
Xcode: 9.0
CLT: N/A
X11: 2.7.112 => /opt/X11
brew doctorYour system is ready to brew.
What is the output of:
git -C $(brew --repo homebrew/core) status
The error message given is not entirely accurate:
valgrind: This formula either does not compile or function as expected on macOS versions newer than El Capitan due to an upstream incompatibility.
It should say “newer than Sierra”, because valgrind does not yet support High Sierra: https://bugs.kde.org/show_bug.cgi?id=383811 That's actually what it does on a fresh Homebrew install.
Closing for now, please add information requested. It appears that your Homebrew repo is at an old version. Try to brew update, possibly reinstall.
here is the output of git -C $(brew --repo homebrew/core) status
On branch snake
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: Formula/snake.rb
no changes added to commit (use "git add" and/or "git commit -a")
@hasahmed you are on a branch, not on homebrew-core's latest version.
Please run: git -C $(brew --repo homebrew/core) checkout master
Then brew update. This should fix your problem.
@fxcoudert It did indeed. Thank you.
Are we too far from having it on macOS high sierra ? This sucks 😢.
Any updates on having valgrind on High Sierra?
Feel free to test brew install --HEAD valgrind and let us know how it goes.
Yeah I tried it. No luck
Then you'll want to let upstream know about that. There's nothing we can do.
Valgrind head builds for me on High Sierra now. See build output here.
Config details
~
• brew --config
HOMEBREW_VERSION: 1.4.1-16-g2259e36
ORIGIN: https://github.com/Homebrew/brew
HEAD: 2259e369eaa943d885605c8643819eeac00ab62e
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 566430084dc76b3fdd2c1eb69c37e0fb97d7d6ae
Core tap last commit: 10 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_VISUAL: /usr/bin/vim
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.15.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.3_1/bin/ruby
Java: 9.0.1
macOS: 10.13.2-x86_64
Xcode: 9.2
CLT: N/A
X11: 2.7.11 => /opt/X11
Environment details
~
• brew --env
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/super:/usr/bin:/bin:/usr/sbin:/sbin
Valgrind head also builds for me on High Sierra. Thank you!
still no luck for me. it won't even clone.
Scratch that. All good with --HEAD
I am not able to build it using --HEAD on macOS 10.13.4 and Clang 9.1 build 902. It fails on the _make_. Here is the log file.
03.make.log
brew --config
HOMEBREW_VERSION: 1.6.0-11-gdf19f71
ORIGIN: https://github.com/Homebrew/brew
HEAD: df19f7103cf724db2b490eb96f450b2d9d3ed633
Last commit: 5 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 66e94b17c696da0142b522cc7a03638cbaccb17a
Core tap last commit: 79 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEV_CMD_RUN: 1
CPU: quad-core 64-bit kabylake
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.1 build 902
Git: 2.15.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: N/A
macOS: 10.13.4-x86_64
CLT: 9.3.0.0.1.1521514116
Xcode: 9.3
XQuartz: N/A
brew --env
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/super:/usr/bin:/bin:/usr/sbin:/sbin
I know this is not a Homebrew solution but if you go to include/vki/vki_darwin.h and add the following:
https://gist.github.com/renesugar/cf87a9107ad73b40b8487c7c226f5084
make will work. I manually installed it using http://www.valgrind.org/docs/manual/dist.readme.html
Great! Thank you @GasimGasimzada, it worked!
I can build valgrind with HEAD, but it gives this error:
valgrind: tool 'memcheck' not installed (/usr/local/lib/valgrind/memcheck-amd64-darwin) (No such file or directory)
Anyone having the same issue?
Most helpful comment
Feel free to test
brew install --HEAD valgrindand let us know how it goes.