Strange Output from cask command - homebrew-cask

Today I installed cask via homebrew on my M1 Mac Mini, and wanted to check the version of cask that I had installed. I was not fully sure of the command to complete this, so I tried
cask --version
This gave me a long readout where there were several processes of compiling things in my directory. This may be a dumb question but did I do something that I was not intending to?

cask --version, as part of Homebrew/brew, was deprecated in Oct. 2018
Now, only brew --version should be enough.

Related

otool is referencing an old version of libffi

I'm trying to compile an R package (which compiles in Linux) on Mac OS 10.15.7.
I'm getting a weird problem right at the end of the installation, related to llvm-objdump-mp-7.0 referencing /opt/local/bin/libffi.7.dylib.
The problem seems to be with my Xcode/homebrew toolsets somehow being out of sync.
I can generate the problem with
$otool --version
llvm-otool(1): Apple Inc. version cctools-921
dyld: Library not loaded: /opt/local/lib/libffi.7.dylib
Referenced from: /opt/local/libexec/llvm-7.0/lib/libLLVM.dylib
Reason: image not found
fatal error: otool: fatal error in /opt/local/bin/llvm-objdump-mp-7.0
However,
$ ls /opt/local/lib/libffi*
/opt/local/lib/libffi.8.dylib /opt/local/lib/libffi.dylib
/opt/local/lib/libffi.a
I've run brew update followed by brew upgrade and brew reinstall libffi and brew reinstall llvm
I've upgraded my Xcode to 12.4, as well as installing the command line tools.
What am I missing?
I must have previously installed an older version of llvm which put its commands in /usr/local/bin, which then masked the system version of /usr/bin/otool.
The current llvm formula puts the updated tools in /usr/local/opt/llvm/bin so as to not mask the Xcode versions. However, the older versions were still living in /usr/local/bin.
The following commands seemed to fix me.
sudo rm /opt/local/bin/otool
sudo rm /opt/local/bin/llvm-otool
sudo rm /opt/local/bin/*-mp-7.0
otools is now properly finding the Xcode version, so I'm up and running again.

Is there a way to install Valgrind on Catalina?

Is there a way to install Valgrind on Catalina and have it run properly? If so, I would very much appreciate a step-by-step process.
I tried installing Valgrind with https://github.com/sowson/valgrind
but when I tested out helloWorld.cpp on the terminal, the console returned errors I should not have gotten.
I'm not sure if I committed an error on my part in the installation process of this version of Valgrind or if Valgrind itself is simply incompatible with Catalina OS.
I have also tried installing Valgrind via Homebrew, but I've had issues with that as well (github.com/Homebrew/homebrew-core/issues/36683).
Currently, no. The repo you link has an issue raised about Catalina compatibility. As you also show, the brew package has its own problems as well. Official valgrind only supports 10.12.
You'll just have to wait, or containerize it. Although if you containerize valgrind, you would likely need a compatible build container as well.
Ok. I've found a way to use Valgrind on Catalina. Here's a link to my guide for how https://github.com/john-yohan-park/Valgrind_Catalina
Works amazingly!! see https://github.com/LouisBrunner/valgrind-macos/issues/5.
Not Homebrew, you need to compile it from source, but it's not so difficult.
1. git clone https://github.com/LouisBrunner/valgrind-macos.git
2. cd valgrind
3. sudo ./autogen.sh
4. sudo ./configure --prefix=/where/you/want/it/installed --enable-only64bit
5. copy the [contents][1] to ./coregrind/m_mach/mach_basics.c
6. sudo make
7. sudo make install
enjoy!
This is how I just did it on Catalina 10.15.5:
brew remove valgrind # remove previous attempts at installing it (if any)
brew tap LouisBrunner/valgrind
brew install --HEAD LouisBrunner/valgrind/valgrind
Source: https://github.com/LouisBrunner/valgrind-macos

brew install gdb with python 3 does not build

I am unable to build gdb 8.2 in mac osx mojave 10.14.3 (with gcc 8.2) using python3.7.
python3 was installed using brew install python3 and is in the PATH.
Using brew edit gdb,
I have changed --with-python=/usr to /path/to/python3
Also, added ENV['CFLAGS']='-I/path/to/python3/include', ENV['CC']='gcc', ENV['CXX']='g++'.
I keep getting missing < Python.h > and < frameobject.h > related error even after including CFLAGS.
How can I fix this? Thanks for any help.
I know this is an old question. But I just ran into the same Problem and couldn't find a solution.
Have a look at the homebrew-core repository on GitHub. The commit bb8b6616e51672c8011435000476b24fa242a066 removed the --with-python option for some reason.
Revert that commit, change gdb version and all works fine.

`brew install infer` error while updating infer

I recently updated facebook infer on my work laptop, and am trying to update infer on my personal laptop. It installed without an issue on my work laptop, but I am getting an error (see below) on my personal laptop. Both have opam 1.2.2 and ocaml 4.03.0 installed. If I execute opam init --comp=VERSION, I see that everything is already up-to-date. Any ideas why brew install infer could be failing?
[User]-MacBook-Pro:~ [User]$ brew install infer
==> Using the sandbox
==> Downloading https://github.com/facebook/infer/releases/download/v0.9.2/infer
Already downloaded: /Users/[User]/Library/Caches/Homebrew/infer-0.9.2.tar.xz
==> ./build-infer.sh all --yes
Last 15 lines from /Users/[User]/Library/Logs/Homebrew/infer/01.build-infer.sh:
initializing opam...
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg
command on your system.
- you won't be able to use darcs repositories unless you install the darcs
command on your system.
[WARNING] Recommended external solver aspcud not found.
[ERROR] No OCaml compiler found in path. You should use:
opam init --comp=VERSION
[ERROR] Initialisation failed
OpamGlobals.Exit(66)
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues
These open issues may also help:
infer 0.9.3 https://github.com/Homebrew/homebrew-core/pull/5130
My work laptop is on OS X El Capitan Version 10.11.6, and my personal laptop is on macOS Sierra Version 10.12.
https://github.com/facebook/infer/issues/467
Resolved in Infer version 0.9.4.1

What environment or package should be setup before building the pnacl toolchain

[11/05 update]
The problem is solved hours after i posted it by myself. If you are looking for the answer, hope the following information helps.
------------------Original message--------------------
This question is going to be two parts:
What OS system should be used?
there are many choice for developing pnacl, but what is the best or stable one.
What package should be installed?
this question is referenced to the question I asked before, see this
Until now, I'm not able to build it successfully.
From my experience, I don't think this compilation error is come from pnacl it's self, since every compilation error I solved is by installing some package that I don't installed. And at least, there is a person who successfully installed it
ex : texinfo, clang, bison...
Here is the package I installed from the beginning(after ubuntu installed) till now :
g++
gcc-multilib
g++-multilib
libsdl1.2-dev
texinfo
libcrypto++-dev
libssl-dev
lib32ncurses5-dev m4
libelf-dev
bison
git
gitk
git-core
bision
clang
cmake
subversion
I solved this problem by installing
byacc
flex
gyp
then it starts to build successfully