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

Valgrind fails to compile Sierra 10.12.6 #18998

Closed
hasahmed opened this Issue Oct 4, 2017 · 19 comments

Comments

Projects
None yet
10 participants
@hasahmed

hasahmed commented Oct 4, 2017

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.

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 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.
  • 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?

To help us debug your issue please explain:

  • What you were trying to do (and why)
    Trying to install valgrind to inspect c++ memory usage/leaks

  • What happened (include command output)
    The command failed. Here is the output
    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.

  • What you expected to happen
    Expected valgrind to install and be usable

  • 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

  • Here is the output to brew doctor

Your system is ready to brew.

@JCount

This comment has been minimized.

Member

JCount commented Oct 4, 2017

What is the output of:

git -C $(brew --repo homebrew/core) status
@fxcoudert

This comment has been minimized.

Member

fxcoudert commented Oct 4, 2017

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.

@fxcoudert

This comment has been minimized.

Member

fxcoudert commented Oct 12, 2017

Closing for now, please add information requested. It appears that your Homebrew repo is at an old version. Try to brew update, possibly reinstall.

@fxcoudert fxcoudert closed this Oct 12, 2017

@hasahmed

This comment has been minimized.

hasahmed commented Oct 12, 2017

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")
@fxcoudert

This comment has been minimized.

Member

fxcoudert commented Oct 12, 2017

@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.

@hasahmed

This comment has been minimized.

hasahmed commented Oct 12, 2017

@fxcoudert It did indeed. Thank you.

@alejoamiras

This comment has been minimized.

alejoamiras commented Nov 29, 2017

Are we too far from having it on macOS high sierra ? This sucks 😢.

@hasahmed

This comment has been minimized.

hasahmed commented Dec 24, 2017

Any updates on having valgrind on High Sierra?

@ilovezfs

This comment has been minimized.

Contributor

ilovezfs commented Dec 24, 2017

Feel free to test brew install --HEAD valgrind and let us know how it goes.

@hasahmed

This comment has been minimized.

hasahmed commented Dec 25, 2017

Yeah I tried it. No luck

@ilovezfs

This comment has been minimized.

Contributor

ilovezfs commented Dec 25, 2017

Then you'll want to let upstream know about that. There's nothing we can do.

@alebcay

This comment has been minimized.

Member

alebcay commented Dec 27, 2017

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

@alebcay alebcay referenced this issue Jan 4, 2018

Closed

libdill 1.6 (new formula) #22168

4 of 4 tasks complete
@AlexanderYogurt

This comment has been minimized.

AlexanderYogurt commented Jan 30, 2018

Valgrind head also builds for me on High Sierra. Thank you!

@hasahmed

This comment has been minimized.

hasahmed commented Feb 7, 2018

still no luck for me. it won't even clone.

@hasahmed

This comment has been minimized.

hasahmed commented Feb 8, 2018

Scratch that. All good with --HEAD

@rodrigorandel

This comment has been minimized.

rodrigorandel commented Apr 10, 2018

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: df19f71
    Last commit: 5 hours ago
    Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
    Core tap HEAD: 66e94b1
    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

@GasimGasimzada

This comment has been minimized.

GasimGasimzada commented Apr 11, 2018

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

@rodrigorandel

This comment has been minimized.

rodrigorandel commented Apr 12, 2018

Great! Thank you @GasimGasimzada, it worked!

@xiaohk

This comment has been minimized.

xiaohk commented Apr 19, 2018

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?

@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.