Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

autotools (macos-latest) fails #164

Open
scharlton2 opened this issue Jul 8, 2024 · 2 comments
Open

autotools (macos-latest) fails #164

scharlton2 opened this issue Jul 8, 2024 · 2 comments

Comments

@scharlton2
Copy link
Contributor

https://github.com/usgs-coupled/phreeqcrm/actions/runs/9847891651/job/27188961938

Run env CC='cc' CXX='c++ -std=c++11' make -f autotools.mk autotools_test && ./autotools_test
env CC='cc' CXX='c++ -std=c++11' make -f autotools.mk autotools_test && ./autotools_test
shell: /bin/bash -e {0}
env:
BUILD_TYPE: Release
VER_STRING: 3.8.0-16917
c++ -std=c++11 -c -o AdvectBMI_cpp.o AdvectBMI_cpp.cpp
cc -c -o Advect_c.o Advect_c.c
c++ -std=c++11 -c -o Advect_cpp.o Advect_cpp.cpp
cc -c -o Gas_c.o Gas_c.c
c++ -std=c++11 -c -o Gas_cpp.o Gas_cpp.cpp
c++ -std=c++11 -c -o main.o main.cpp
cc -c -o SimpleAdvect_c.o SimpleAdvect_c.c
c++ -std=c++11 -c -o SimpleAdvect_cpp.o SimpleAdvect_cpp.cpp
cc -c -o Species_c.o Species_c.c
c++ -std=c++11 -c -o Species_cpp.o Species_cpp.cpp
c++ -std=c++11 -c -o WriteYAMLFile_cpp.o WriteYAMLFile_cpp.cpp
c++ -std=c++11 -o autotools_test AdvectBMI_cpp.o Advect_c.o Advect_cpp.o Gas_c.o Gas_cpp.o main.o SimpleAdvect_c.o SimpleAdvect_cpp.o Species_c.o Species_cpp.o WriteYAMLFile_cpp.o -L/usr/local/lib -lphreeqcrm -lyaml-cpp
ld: library 'yaml-cpp' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [autotools_test] Error 1
Error: Process completed with exit code 2.

@p-ortega
Copy link

p-ortega commented Aug 6, 2024

Hi @scharlton2

I'm having trouble installing the python bindings (pypy distro 0.0.6) on macOS, proly related to this.

I'm getting the following error:

Building wheel for phreeqcrm (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [35 lines of output]
*** scikit-build-core 0.9.10 using CMake 3.30.1 (wheel)
*** Configuring CMake...
loading initial cache file /var/folders/zn/hj183dg15s713b47j2wlhwzw0000gn/T/tmps1o5yri_/build/CMakeInit.txt
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- The C compiler identification is AppleClang 15.0.0.15000309
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:37 (find_package):
By not providing "Findyaml-cpp.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "yaml-cpp",
but CMake did not find one.

    Could not find a package configuration file provided by "yaml-cpp" with any
    of the following names:
  
      yaml-cppConfig.cmake
      yaml-cpp-config.cmake
  
    Add the installation prefix of "yaml-cpp" to CMAKE_PREFIX_PATH or set
    "yaml-cpp_DIR" to a directory containing one of the above files.  If
    "yaml-cpp" provides a separate development package or SDK, be sure it has
    been installed.
  
  
  -- Configuring incomplete, errors occurred!
  
  *** CMake configuration failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for phreeqcrm
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (phreeqcrm)

@scharlton2
Copy link
Contributor Author

@p-ortega Sorry, just saw this. Hopefully you already figured something out.

You might just try running pip install phreeqcrm again. I'm not sure when we added macOS arm support.

The current version is 0.0.10 and should be available for your mac (both ARM64 and x86-64).

If you want to build it yourself you'll need to install or build yaml-cpp from https://github.com/jbeder/yaml-cpp.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants