parcels: `ERROR: CONDA_BUILD_SYSROOT or SDKROOT has to be set for cross-compiling`

Thank you so much for adding osx-arm64 support in v2.4.0!

We tried creating a conda environment on an Apple M1: conda create -n test-env -c conda-forge parcels

conda activate test-env gives the following error:

ERROR: CONDA_BUILD_SYSROOT or SDKROOT has to be set for cross-compiling
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
activate_clang:72: read-only file system: /meson_cross_file.txt
activate_clang:73: read-only file system: /meson_cross_file.txt

We asked about this error here and they suggested that the parcels recipe might be wrong. They linked to https://github.com/conda-forge/parcels-feedstock/blob/main/recipe/meta.yaml#L38.

We thought maybe - clang_osx-arm64 needed to be added to the recipe, but we noticed that there’s already a commit that removed - clang_osx-arm64 after adding it.

Do you have any further guidance on this issue? Thanks again!

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 26 (19 by maintainers)

Commits related to this issue

Most upvoted comments

You will need to somehow tell the solver about different needs on different systems.

You can by using sel(arch), for example:

name: TEST
channels:
  - conda-forge
dependencies:
  - python>=3.8
  - sel(unix): mpich>=3.2.1  # will be installed only on not-windows
  - sel(win): colorama  # will be installed only on windows

Is that what you want @erikvansebille ?

Could your tests be picking up any compilers available in the CIs? If so, that won’t help end users, unless you amend the docs and tell them to install compilers from the system or with conda.

Well, this is for the Developers version of the environments, so we can expect them to have a compiler available (and will explain that in the documentation at https://docs.oceanparcels.org/en/latest/installation.html#installation-for-developers

‘Normal’ users would use the condo package at https://github.com/conda-forge/parcels-feedstock, so would not deal with these environment files anyways

Thanks for reporting, @hblumberg. Not sure that I have more guidance, but perhaps @willirath has experience with osx-arm64?