so my issue is that when I run the terminal on a MacBook Pro M1, after installing the miniforge3 & Conda, whenever I run the terminal the first thing that appears is this:
Last login: Thu Jul 1 15:36:59 on ttys000
ERROR: CONDA_BUILD_SYSROOT or SDKROOT has to be set for cross-compiling
activate_clang:67: read-only file system: /meson_cross_file.txt
activate_clang:68: read-only file system: /meson_cross_file.txt
activate_clang:69: read-only file system: /meson_cross_file.txt
activate_clang:70: read-only file system: /meson_cross_file.txt
activate_clang:71: read-only file system: /meson_cross_file.txt
Googling the error shows nothing that is able to help me or I simply get the "no results" message. How do I set it right?
I run into the same scenario with miniforge, Apple Silicon (M1) when performing the following:
The activate script involved is being built as thus:
I believe this is due to Conda-Forge's feedstock continuous integration not having access to Apple Silicon as they build the lovely binaries we all use (they are using Intel/AMD arches to build Arm64; i.e. cross compiling). Which then is set and propagates to those actually using said hardware.
Unfortunately, this creates an always true activation:
While not a fix, you can set BUILD_PREFIX to some writable area just before the activation event:
But, I would sooner just ignore this message. BUILD_PREFIX is really only used during
conda build
operations (as far as I know).