Rosetta Arm64 M1 libxcrun.dylib.aot fail - macos

so I am having issues with Rosetta, and whenever I want to do any install or use a makefile, I get this error:
rosetta error: /var/db/oah/c642c66595f5050af26db8f86497ea83caff7cea5a9bcb2361ffa81d0e090b58/e3dffc0922c5d9c2da11a427e8274cb75a79f184276373ffc39b65cfa67f4141/libxcrun.dylib.aot: attachment of code signature supplement failed: 1
I am using the newest MacBook Pro M1. Installed using the softwareupdate --install-rosetta.
I can't find anything about it using google, what could be wrong here?

Related

The chromium binary is not available for arm64

I am using rush and trying to run rush install in a project I cloned from one of my company's repositories. But, it fails by throwing the following error:
The chromium binary is not available for arm64:
If you are on Ubuntu, you can install with:
apt-get install chromium-browser
Note: I'm using iTerm2 terminal for all this running on an Apple Macbook Pro having Monterey as the OS, powered by the Apple M1 Pro chip.
PS I tried to look for answers o'er the web and found this post but the answer doesn't seem to work for me.
As mentioned previously, this is due to the new M1 chips. I've been able to resolve the issue by using node v15. Could try nvm use 15 from the command line in your project directory.

clang: error: invalid version number in '-mmacosx-version-min=11.2'

I am currently on Mac OSX Big Sur 11.2.3. Whenever I run the command:
g++-10 -o project0 project0.cpp -lm -fopenmp
I get the following error:
clang: error: invalid version number in '-mmacosx-version-min=11.2'
I realized that this may be due to the fact that I'm on Big Sur 11.2.3 but I was told that this should not be an issue. I've tried many things already such as reinstalling gcc doing brew install gcc and so forth to no avail. At this point, I'm very unsure on what to do. Any help would be very much appreciated!
I ran into the same problem while trying to install fiona. You are correct it is due to Big Sur, as you can see in this article
Follow it and it should sort out the issue. Note, I had to uninstall Command Line tools and re-install it as outlined in this answer.
I ran into a similar issue when I tried to compile a library with clang-9 on an up-to-date system, with clang-9 installed via homebrew:
clang-9: error: invalid version number in '-mmacosx-version-min=12.6'
Updating xcode command line tools doesn't help here, since I actually want / have to use the old compiler. Setting the following environment variable for the build solved the issue:
export SYSTEM_VERSION_COMPAT=1

Installing Unreal Engine on OSX Mojave

So I'm trying to clone the Unreal Engine from GitHub and setup on OSX Mojave and when running the GenerateProjectFiles.command file as part of the setup, I get the following error:
ERROR: UnrealBuildTool Exception: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs
I do have a folder called MacOSX.sdk in a different directory, but when I try to create a symlink to it in the directory that Unreal is searching for, I get this following error instead:
ERROR: UnrealBuildTool Exception: Unable to find installed MacOS SDK on remote agent.
It seems like I'm missing the correct version of the MacOSX.sdk that Unreal needs but I'm not sure what that is. I know you get it when you install XCode, but I have both XCode 10.1 and XCode 9.4 with command line tools installed and still no luck.
What am I missing here?
I have same issue and find a measure for my case.
sudo xcode-select --reset
from here
you need the correct version of xcode with the specific version of unreal.
for unreal engine 4.24 or earlier, you need to install xcode 11 from here:Download xcode 11.for 4.25 or later, use xcode 12 or later if you haven't installed.
if not use sudo xcode-select --reset

cannot run gdb on mac's terminal even after codesign

I'm trying to install gdb on my Mac. I downloaded it with brew and code signed it according to the instructions on https://sourceware.org/gdb/wiki/BuildingOnDarwin
However, when I run gdb in the terminal, it still doesn't work and output the following error message:
dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.6.dylib
Referenced from: /usr/local/bin/gdb
Reason: image not found
Trace/BPT trap: 5
Does anyone know what it means? My Mac version is 10.11.5, by the way
I ran into the same issue on macOS 10.11.6, I'm guessing (and this is just speculation; I don't actually know how Homebrew works) that Homebrew installed a pre-compiled version of gdb which depended on a library that existed on the machine it was compiled with, but did not exist on my machine.
At any rate, I was able to get a working version of gdb by downloading & unzipping version 7.12 (8.1 failed to compile on my machine) from http://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz, then compiling & installing with (IIRC) the commands:
./configure
make
sudo make install
I blogged about this and the subsequent steps (getting the executable code-signed so that macOS would allow it to debug other processes, etc) here: http://prust.github.io/posts/2018-02-24-interactively-debugging-c-in-sublime-text-3.html
I get this problem too. And I find solution in https://qiita.com/yoshixj/items/698d94337ca447e9b9de
Since we don't have /usr/local/opt/mpfr/lib/libmpfr.6.dylib
we can simply install it. Use this command:
brew install gawk
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc
I had the same error message when running gdb after installing it from Homebrew (gdb v8.1) on a Mac OS X El Capitan v10.11.6. However, installing it via Homebrew using its Python binary solved the issue:
brew install gdb --with-python
Beaware that this may take some time, since you'd be compiling gdb from scratch. After it's done, you still need to create a certificate and codesign gdb.

Set up g++ on OS X

I just updated to OS X Mavericks and it seems it messed up my whole compiler setup. Not only do I have to reinstall a JDK in order to use a Java compiler, I get the following error when I'm trying to compile C/C++ using GCC/G++:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.1/4.7.2/../../../../include/c++/4.7.2/cwchar:46:19: fatal error: wchar.h: No such file or directory
Not sure what to think other than upgrading messed it up. My question is: how do I set up g++ to compile on OS X? If it's already set up, what is the problem here?
If I can provide more information, please let me know.
Note: I've installed gcc 4.7 using homebrew, but it doesn't seem to work. When I use g++-4.7 code.cpp specifically, I get the same error.
Installing the Command Line Tools (OS X Mavericks) for Xcode - Late October 2013 solved it for me. Here is the link:
OSX: Xcode Downloads
The often mentioned xcode-select --install command kept saying it cannot find the requested software.
To clarify: You need to already have gcc-4.7 installed using Homebrew. The update to the latest version of CMD Tools only fixes compatibility issues caused by upgrading from Mountain Lion to Mavericks.

Resources