Skip to content
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 does not seem to work on M1 Macs. #5

Closed
TheKnarf opened this issue Nov 16, 2021 · 4 comments
Closed

Valgrind does not seem to work on M1 Macs. #5

TheKnarf opened this issue Nov 16, 2021 · 4 comments

Comments

@TheKnarf
Copy link

$ brew tap LouisBrunner/valgrind

==> Tapping louisbrunner/valgrind
Cloning into '/opt/homebrew/Library/Taps/louisbrunner/homebrew-valgrind'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 18 (delta 5), reused 6 (delta 1), pack-reused 0
Receiving objects: 100% (18/18), 10.90 KiB | 3.63 MiB/s, done.
Resolving deltas: 100% (5/5), done.
Tapped 1 formula (14 files, 35.2KB).
$ brew install --HEAD LouisBrunner/valgrind/valgrind

==> Downloading https://ghcr.io/v2/homebrew/core/autoconf/manifests/2.71
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/autoconf/blobs/sha256:a3d366c98b0da7a0a4f352eef49af9d612ac7aea4ffe420d49ff12bd90007415
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a3d366c98b0da7a0a4f352eef49af9d612ac7aea4ffe420d49ff12bd90007415?se=2021-11-16T16%3A20%3A00Z&sig=g8DwxGoR0DTFjH8IMdn9KTco9LF6WdNbqZaCQF%2F%2BtqA%3D&sp=r&
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/automake/manifests/1.16.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/automake/blobs/sha256:f68481d06be7fa3f0a0881edb825a336e7f6548191c762d68bd817183b238f5a
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f68481d06be7fa3f0a0881edb825a336e7f6548191c762d68bd817183b238f5a?se=2021-11-16T16%3A20%3A00Z&sig=fNtpODCh0v8SuzWJCgnA9%2BwUVLrw7%2ByYINTgilfgsE4%3D&sp=r&
######################################################################## 100.0%
==> Cloning https://github.com/LouisBrunner/valgrind-macos.git
Cloning into '/Users/knarf/Library/Caches/Homebrew/valgrind--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> Installing valgrind from louisbrunner/valgrind
==> Installing dependencies for louisbrunner/valgrind/valgrind: autoconf and automake
==> Installing louisbrunner/valgrind/valgrind dependency: autoconf
==> Pouring autoconf--2.71.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/autoconf/2.71: 71 files, 3.2MB
==> Installing louisbrunner/valgrind/valgrind dependency: automake
==> Pouring automake--1.16.5.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/automake/1.16.5: 131 files, 3.5MB
==> Installing louisbrunner/valgrind/valgrind --HEAD
==> ./autogen.sh
==> ./configure --prefix=/opt/homebrew/Cellar/valgrind/HEAD-3568e0b --enable-only64bit --build=amd64-darwin
Last 15 lines from /Users/knarf/Library/Logs/Homebrew/valgrind/02.configure:
checking for perl... /usr/bin/perl
checking for gdb... /no/gdb/was/found/at/configure/time
checking dependency style of clang... none
checking for diff -u... yes
checking for xcrun... yes
checking for Xcode SDK and includes... /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk (includes: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include)
checking for a supported version of gcc... ok (Apple LLVM version 13.0.0)
checking build system type... x86_64-pc-darwin
checking host system type... x86_64-pc-darwin
checking for a supported CPU... ok (x86_64)
checking for a 64-bit only build... yes
checking for a 32-bit only build... no
checking for a supported OS... ok (darwin)
checking for the kernel version... unsupported (21.1.0)
configure: error: Valgrind works on Darwin 10.x-20.x (Mac OS X 10.6-10.11 and macOS 10.12-11.0)

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/louisbrunner/homebrew-valgrind/issues

These open issues may also help:
Trying to download valgrind on macOS Catalina 10.15.3 and getting 2 errors https://github.com/LouisBrunner/homebrew-valgrind/issues/4
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.
@GenieTim
Copy link

I get the same error on an Intel Mac with macOS 12.0.1.

@LouisBrunner
Copy link
Owner

M1 (and Big Sur and later) is unsupported at the moment LouisBrunner/valgrind-macos#19

@8-bit-owl
Copy link

Apparently, valgrind doesn't work with M1/M2 Macs coz they are ARM based. This --HEAD of this tool only supports intel based Macs.

@fightingplane
Copy link

what a pity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants