Please don't hijack the arrow keys on web pages. People use them to scroll. Apologies for being off-topic.
Reason #687 to run with JS off.
Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
31–40 of 148 posts
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#32I wonder if Nix on macOS could become a better homebrew-killer by supporting Apple Silicon first. We already do aarch64-linux natively and some iOS cross compilation, so that should give us a head start.
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#33That's not needed though, I manually extracted brew to /opt/homebrew per https://docs.brew.sh/Installation , and it works just fine in the native terminal. file htop returns htop: Mach-O 64-bit executable arm64 So this version of brew is compiling native arm64 code.
It doesn’t look like it’s fully baked yet. https://github.com/Homebrew/brew/issues/7857
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#34Huh, so Apple is installing both the ARM and x86 version of apps, even on ARM computers. I guess that makes sense for portability, but I don't know if other parts of the root filesystem are one architecture only, such as the path to the kernel (unless that's a fat binary too?).
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#35Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#36a little more info on rosetta2 https://en.wikipedia.org/wiki/Rosetta_(software)#Rosetta_2
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#37Does Macports support Apple ARM? They have a Big Sur compatible version, so I'm inclined to think it can at least try compiling natively. https://www.macports.org/install.php
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#38I haven't kept up too much about how they did this. Is this ultimately just about faking uname(2) in the homebrew scripts? I would imagine Apple would make the mach-o loader transparently run rosetta when they see an x86 binary in response to execve(2). In other words, why doesn't it "just work"?
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#39Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#40Huh, so Apple is installing both the ARM and x86 version of apps, even on ARM computers. I guess that makes sense for portability, but I don't know if other parts of the root filesystem are one architecture only, such as the path to the kernel (unless that's a fat binary too?).
In the PPC -> x86 transition, the same hard drive could be used to boot both PPC and x86 Macs (e.g. via target disk mode or external HDDs)