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
- Adding sel(unix) to mpi dependenceis As suggested in https://github.com/OceanParcels/parcels/issues/1299#issuecomment-1693635364 — committed to OceanParcels/parcels by erikvansebille 10 months ago
You can by using
sel(arch), for example:Is that what you want @erikvansebille ?
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?