M1 chip, this error message seems backwards; no arm64 version of valgrind-macos-devel?
Ryan Carsten Schmidt
ryandesign at macports.org
Sun Jun 22 20:31:26 UTC 2025
On Jun 22, 2025, at 02:52, Kenneth Wolcott wrote:
>
> sudo port -v -s install valgrind-macos-devel
> Error: Cannot install valgrind-macos-devel for the arch 'x86_64' because
> Error: its dependency libtool is only installed for the arch 'arm64'
The message is correct, not backwards. It tells you valgrind-macos-devel is available for x86_64 but not for arm64.
To use this on your arm64 Mac, MacPorts will need to install all of valgrind-macos-devel's dependencies with the universal variant.
> Error: and does not have a universal variant.
MacPorts is claiming it cannot do this because the dependency libtool doesn't have a universal variant.
I can't understand that. There's nothing in the libtool port that should prevent it from having the default universal variant. IIRC we previously had such a problem where the portindexes on the server were missing the universal variant. However I just checked them and all of them show a universal variant for libtool.
Make sure your port definitions and MacPorts are up to date:
sudo port selfupdate
sudo port install valgrind-macos-devel
If no change, try installing libtool with the universal variant explicitly:
sudo port clean libtool
sudo port install libtool +universal
If that works, it wouldn't explain why MacPorts thought the variant was missing but might at least allow you to install the port you want to use.
More information about the macports-users
mailing list