Open hainv01 opened 8 months ago
In theory all brew should do is run exactly that makefile. It seems brew is not doing that and bricks the install along the way… I am not an expert on brew but maybe it is time to simply ship a signed compiled universal binary in the release to eliminate the compiling problems once and for all
Thought I'd chip in and say I'm having the same issue.
HOWEVER, I successfully installed borders
with brew
a couple of days ago on another Mac with very similar specs (same OS version, same architecture, also running yabai/shkd, etc).
The two things differing between these two machines are:
make
step, and I suspect it has to do with the gcc
compiler.OP, have you ever had other similar situations with your device?
Update: My problem was an outdated version of clang
Check your version with
$ clang -v
The latest available (as of 22.06.2024) is:
Homebrew clang version 18.1.7
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin
Steps to solve the issue:
Get the latest llvm
via brew
$ brew install llvm
Ensure the path to brew
's llvm
is first in $PATH
$ echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
Set LDFLAGS
and CPPFLAGS
(I set them in my .zshrc
)
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
[IF NECESSARY] Unset old LDFLAGS
and CPPFLAGS
. This was necessary for me, because turns out my clang
was extremely outdated due to having set llvm@12
as the default a long time ago.I had replaced the old LDFLAGS
and CPPFLAGS
in my .zshrc
with the new ones above
Reload your bash
/zsh
config
$ source .zshrc
Try to install once again
I was in the exact same situation, and the cause was that I had installed llvm@15 using brew. Reinstalling the latest version of llvm resolved the issue.
macOS 14.4 Able to build from source, fine with standard make command.
I can build from source: