You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug conda-build fails on MacOS 15.1.1 running on Apple ARM (Python 3.11.11)
To Reproduce
Following the instructions for building a local installation with conda as in README.md on branch main, the step condo build condo.recipe runs for a while and fails. Example output include missing symbols and many uses of "placehold_":
export PREFIX=/Users/robert/Documents/mambaforge/envs/pyRTE/conda-bld/pyrte_rrtmgp_1737578614018/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_
export SRC_DIR=/Users/robert/Documents/mambaforge/envs/pyRTE/conda-bld/pyrte_rrtmgp_1737578614018/test_tmp
import: 'pyrte_rrtmgp'
import: 'pyrte_rrtmgp'
+ pyrte_rrtmgp run_tests
Running tests...
Tests failed!
============================= test session starts ==============================
platform darwin -- Python 3.11.11, pytest-8.3.4, pluggy-1.5.0
rootdir: /Users/robert/Documents/mambaforge/envs/pyRTE/conda-bld/pyrte_rrtmgp_1737578614018
collected 0 items / 9 errors
==================================== ERRORS ====================================
_ ERROR collecting _test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.11/site-packages/pyrte_rrtmgp/tests/lw_solver_test/2stream_test/lw_solver_2stream_test.py _
ImportError while importing test module '$PREFIX/lib/python3.11/site-packages/pyrte_rrtmgp/tests/lw_solver_test/2stream_test/lw_solver_2stream_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.11/site-packages/pyrte_rrtmgp/tests/lw_solver_test/2stream_test/lw_solver_2stream_test.py:8: in <module>
import pyrte_rrtmgp.pyrte_rrtmgp as py
E ImportError: dlopen($PREFIX/lib/python3.11/site-packages/pyrte_rrtmgp/pyrte_rrtmgp.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_rrtmgp_compute_Planck_source'
Expected behavior
I was hoping for a working installation :-)
Software Versions:
OS:MacOS 15.1.1, Apple ARM
Whatever is fetched by conda?
The text was updated successfully, but these errors were encountered:
This looks like an issue with the linking of the libraries, I had something similar in the past with my M1 Mac, I solved it adding some conditions to the CMakeList, but it may be breaking other installers.
if (${LINUX})
target_link_libraries(${TARGET_NAME}PUBLIC gfortran)
elseif(APPLE)
# On macOS, explicitly link against gfortran runtime if(APPLE_ARM)
target_link_directories(${TARGET_NAME}PUBLIC /opt/homebrew/lib/gcc/current)
else()
target_link_directories(${TARGET_NAME}PUBLIC /usr/local/lib/gcc/current)
endif()
target_link_libraries(${TARGET_NAME}PUBLIC gfortran)
endif()
I could not reproduce it in my machine I used Miniconda3-py311_24.5.0-0-MacOSX-arm64 and the build and install worked. It is also working in the CI. Tomorrow I will try to use the exact version of mambaforge that you are using to see if I can reproduce it.
@sehnem It seems plausible that conda build is missing the paths to some directories, but that can't be the only problem: the last line of the error log I copied above reads: E ImportError: dlopen($PREFIX/lib/python3.11/site-packages/pyrte_rrtmgp/pyrte_rrtmgp.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_rrtmgp_compute_Planck_source'
Describe the bug
conda-build
fails on MacOS 15.1.1 running on Apple ARM (Python 3.11.11)To Reproduce
Following the instructions for building a local installation with
conda
as inREADME.md
on branchmain
, the stepcondo build condo.recipe
runs for a while and fails. Example output include missing symbols and many uses of "placehold_":Expected behavior
I was hoping for a working installation :-)
Software Versions:
conda
?The text was updated successfully, but these errors were encountered: