Skip to content

Build fails for MacOS using conda-forge toolchain #162

@awvwgk

Description

@awvwgk

Build fails for RadialTraitsType in grid factory with Clang 19 (without MPI, without Cuda, with OpenMP).

[4/101] Building CXX object src/CMakeFiles/gauxc.dir/grid_factory.cxx.o
FAILED: [code=1] src/CMakeFiles/gauxc.dir/grid_factory.cxx.o 
$BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang++ -DBLAS_IS_LP64=1 -DEXCHCXX_HAS_CONFIG_H=1 -DMPI_NO_CPPBIND -DUSING_Libxc -D_FORTIFY_SOURCE=2 -Dgauxc_EXPORTS -I$SRC_DIR/include -I$SRC_DIR/_build/include -I$SRC_DIR/src -I$SRC_DIR/src/runtime_environment -I$SRC_DIR/src/xc_integrator/local_work_driver/host/rys/include -I$SRC_DIR/src/xc_integrator/local_work_driver/host/obara_saika/include -I$SRC_DIR/src/xc_integrator/local_work_driver -I$SRC_DIR/src/xc_integrator/shell_batched -I$SRC_DIR/src/xc_integrator/replicated -I$SRC_DIR/src/xc_integrator -I$SRC_DIR/src/load_balancer -I$SRC_DIR/src/reduction_driver -I$SRC_DIR/_build/_deps/integratorxx-src/include -I$SRC_DIR/_build/_deps/highfive-src/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/gauxc-1.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -O3 -DNDEBUG -isysroot /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.13 -fPIC -Wall -Wextra -Wpedantic -Wnon-virtual-dtor -Werror=non-virtual-dtor -Wshadow -Wno-missing-braces -fopenmp=libomp -MD -MT src/CMakeFiles/gauxc.dir/grid_factory.cxx.o -MF src/CMakeFiles/gauxc.dir/grid_factory.cxx.o.d -o src/CMakeFiles/gauxc.dir/grid_factory.cxx.o -c $SRC_DIR/src/grid_factory.cxx
In file included from $SRC_DIR/src/grid_factory.cxx:12:
In file included from $SRC_DIR/include/gauxc/grid_factory.hpp:13:
In file included from $SRC_DIR/include/gauxc/grid.hpp:15:
In file included from $SRC_DIR/include/gauxc/types.hpp:16:
$SRC_DIR/_build/_deps/integratorxx-src/include/integratorxx/batch/spherical_micro_batcher.hpp:537:10: warning: variable 'refine_iter' set but not used [-Wunused-but-set-variable]
  537 |   size_t refine_iter = 0;
      |          ^
In file included from $SRC_DIR/src/grid_factory.cxx:15:
In file included from $SRC_DIR/_build/_deps/integratorxx-src/include/integratorxx/quadratures/radial/muraknowles.hpp:4:
$SRC_DIR/_build/_deps/integratorxx-src/include/integratorxx/quadratures/radial/radial_transform.hpp:35:62: error: no matching constructor for initialization of 'IntegratorXX::MuraKnowlesRadialTraits'
   35 |   RadialTransformQuadrature(const RadialTraitsType& traits = RadialTraitsType()) :
      |                                                              ^
$BUILD_PREFIX/bin/../include/c++/v1/__type_traits/is_constructible.h:50:87: note: in instantiation of default function argument expression for 'RadialTransformQuadrature<IntegratorXX::UniformTrapezoid<double, double>, IntegratorXX::MuraKnowlesRadialTraits>' required here
   50 | struct _LIBCPP_TEMPLATE_VIS is_default_constructible : public integral_constant<bool, __is_constructible(_Tp)> {};
      |                                                                                       ^
conda info
     active environment : base
    active env location : /Users/runner/miniforge3
            shell level : 1
       user config file : /Users/runner/.condarc
 populated config files : /Users/runner/miniforge3/.condarc
                          /Users/runner/.condarc
          conda version : 25.9.1
    conda-build version : 25.9.0
         python version : 3.12.12.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=25.9.1=0
                          __osx=13.7.6=0
                          __unix=0=0
       base environment : /Users/runner/miniforge3  (writable)
      conda av data dir : /Users/runner/miniforge3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/runner/miniforge3/pkgs
                          /Users/runner/.conda/pkgs
       envs directories : /Users/runner/miniforge3/envs
                          /Users/runner/.conda/envs
               platform : osx-64
             user-agent : conda/25.9.1 requests/2.32.5 CPython/3.12.12 Darwin/22.6.0 OSX/13.7.6 solver/libmamba conda-libmamba-solver/25.4.0 libmambapy/2.3.3
                UID:GID : 501:20
             netrc file : None
           offline mode : False
Versions
build:
    - libev 4.33 h10d778d_2
    - ncurses 6.5 h0622a9a_3
    - sigtool 0.1.3 h88f4db0_0
    - libxml2-16 2.15.1 h0ad03eb_0
    - libiconv 1.18 h57a12c2_2
    - llvm-tools 19.1.7 hb0207f0_2
    - krb5 1.21.3 h37d8d59_0
    - rhash 1.4.6 h6e16a3a_1
    - libllvm19 19.1.7 h56e7563_2
    - compiler-rt 19.1.7 he914875_1
    - cctools_osx-64 1024.3 llvm19_1_h3b512aa_9
    - openssl 3.6.0 h230baf5_0
    - clangxx_osx-64 19.1.7 h7e5c614_25
    - libexpat 2.7.1 h21dd04a_0
    - tapi 1300.6.5 h390ca13_0
    - c-ares 1.34.5 hf13058a_0
    - clang_impl_osx-64 19.1.7 hc73cdc9_25
    - libuv 1.51.0 h58003a5_1
    - libedit 3.1.20250104 pl5321ha958ccf_0
    - cmake 3.31.8 h29fc008_0
    - libcxx 21.1.5 h3d58e20_0
    - ld64_osx-64 955.13 llvm19_1_h466f870_9
    - bzip2 1.0.8 h500dc9f_8
    - clang-19 19.1.7 default_hc369343_5
    - clang_osx-64 19.1.7 h7e5c614_25
    - zstd 1.5.7 h8210216_2
    - llvm-openmp 19.1.7 ha54dae1_1
    - liblzma 5.8.1 hd471939_2
    - ninja 1.13.1 h0ba0a54_0
    - libcurl 8.17.0 h7dd4100_0
    - libnghttp2 1.67.0 h3338091_0
    - libxml2 2.15.1 h23bb396_0
    - libclang-cpp19.1 19.1.7 default_hc369343_5
    - clangxx 19.1.7 default_h1c12a56_5
    - compiler-rt_osx-64 19.1.7 h138dee1_1
    - llvm-tools-19 19.1.7 h879f4bc_2
    - clangxx_impl_osx-64 19.1.7 hb295874_25
    - libzlib 1.3.1 hd23fc13_2
    - libcxx-devel 19.1.7 h7c275be_1
    - clang 19.1.7 default_h1323312_5
    - ca-certificates 2025.10.5 hbd8a1cb_0
    - libssh2 1.11.1 hed3591d_0
    - macosx_deployment_target_osx-64 10.13 hbc8f3bb_2
host:     
    - gau2grid 2.0.8 h6e16a3a_0
    - c-ares 1.34.5 hf13058a_0
    - ca-certificates 2025.10.5 hbd8a1cb_0
    - libcxx 21.1.5 h3d58e20_0
    - libev 4.33 h10d778d_2
    - libxc-c 7.0.0 cpu_he2412a9_6
    - libzlib 1.3.1 hd23fc13_2
    - llvm-openmp 21.1.5 h472b3d1_0
    - ncurses 6.5 h0622a9a_3
    - exchcxx 1.0.0 heffb93a_0
    - libaec 1.1.4 ha6bc127_0
    - libedit 3.1.20250104 pl5321ha958ccf_0
    - libgfortran5 15.2.0 h336fb69_1
    - openssl 3.6.0 h230baf5_0
    - zstd 1.5.7 h8210216_2
    - krb5 1.21.3 h37d8d59_0
    - libgfortran 15.2.0 h306097a_1
    - libnghttp2 1.67.0 h3338091_0
    - libssh2 1.11.1 hed3591d_0
    - libblas 3.9.0 11_h972e302_netlib
    - libcurl 8.17.0 h7dd4100_0
    - hdf5 1.14.6 nompi_hc8237f9_103
CMake configuration
+ cmake -B _build -G Ninja -DGAUXC_ENABLE_HOST=ON -DGAUXC_ENABLE_CUDA=OFF -DGAUXC_ENABLE_HIP=OFF -DGAUXC_ENABLE_MPI=OFF -DGAUXC_ENABLE_OPENMP=ON -DGAUXC_ENABLE_GAU2GRID=ON -DGAUXC_ENABLE_HDF5=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_AR=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-ar -DCMAKE_CXX_COMPILER_AR=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-ar -DCMAKE_C_COMPILER_AR=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-ar -DCMAKE_RANLIB=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-ranlib -DCMAKE_C_COMPILER_RANLIB=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-ranlib -DCMAKE_LINKER=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-ld -DCMAKE_STRIP=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-strip -DCMAKE_INSTALL_NAME_TOOL=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-install_name_tool -DCMAKE_LIBTOOL=/Users/runner/bld/gauxc_1762861730919/_build_env/bin/x86_64-apple-darwin13.4.0-libtool -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_SYSROOT=/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_FIND_APPBUNDLE=LAST -DCMAKE_INSTALL_PREFIX=/Users/runner/bld/gauxc_1762861730919/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_ -DCMAKE_INSTALL_LIBDIR=lib '-DCMAKE_PROGRAM_PATH=/Users/runner/bld/gauxc_1762861730919/_build_env/bin;/Users/runner/bld/gauxc_1762861730919/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin' -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
-- The C compiler identification is Clang 19.1.7
-- The CXX compiler identification is Clang 19.1.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: $BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: $BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at /Users/runner/bld/gauxc_1762861730919/_build_env/share/cmake-3.31/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(linalg-cmake-modules) is deprecated, call
  FetchContent_MakeAvailable(linalg-cmake-modules) instead.  Policy CMP0169
  can be set to OLD to allow FetchContent_Populate(linalg-cmake-modules) to
  be called directly for now, but the ability to call it with declared
  details will be removed completely in a future version.
Call Stack (most recent call first):
  cmake/gauxc-linalg-modules.cmake:9 (FetchContent_Populate)
  CMakeLists.txt:11 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- GauXC Enabling OpenMP
-- Found OpenMP_C: -fopenmp=libomp (found version "5.1")
-- Found OpenMP_CXX: -fopenmp=libomp (found version "5.1")
-- Found OpenMP: TRUE (found version "5.1")
-- GauXC Disabling MPI
-- Could not find IntegratorXX... Building
-- INTEGRATORXX REPO = https://github.com/wavefunction91/IntegratorXX.git
-- INTEGRATORXX REV  = cf2917c64916583cef1081011beab3085b66e352
-- Performing Test INTEGRATORXX_HAS_NO_MISSING_BRACES
-- Performing Test INTEGRATORXX_HAS_NO_MISSING_BRACES - Success
-- Performing Test GAUXC_CXX_HAS_WALL
-- Performing Test GAUXC_CXX_HAS_WALL - Success
-- Performing Test GAUXC_CXX_HAS_WEXTRA
-- Performing Test GAUXC_CXX_HAS_WEXTRA - Success
-- Performing Test GAUXC_CXX_HAS_WPEDANTIC
-- Performing Test GAUXC_CXX_HAS_WPEDANTIC - Success
-- Performing Test GAUXC_CXX_HAS_WNON_VIRTUAL_DTOR
-- Performing Test GAUXC_CXX_HAS_WNON_VIRTUAL_DTOR - Success
-- Performing Test GAUXC_CXX_HAS_WSHADOW
-- Performing Test GAUXC_CXX_HAS_WSHADOW - Success
-- BLAS_LIBRARIES Not Given: Will Perform Search
-- Performing Test COMPILER_RECOGNIZES_ACCELERATE
-- Performing Test COMPILER_RECOGNIZES_ACCELERATE - Success
-- Found Accelerate: -framework Accelerate
-- Performing Test BLAS_LOWER_UNDERSCORE
-- Performing Test BLAS_LOWER_UNDERSCORE -- found
-- Found BLAS: TRUE
-- Discovered BLAS is LP64
-- Found HDF5: $PREFIX/lib/libhdf5.dylib;$PREFIX/lib/libcrypto.dylib;$PREFIX/lib/libcurl.dylib;/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib/libpthread.tbd;$PREFIX/lib/libsz.dylib;/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib/libz.tbd;/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib/libdl.tbd;/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib/libm.tbd (found version "1.14.6")
-- Enabling HDF5 Bindings
-- HighFive REPO = https://github.com/BlueBrain/HighFive.git
-- HighFive REV  = 805f0e13d09b47c4b01d40682621904aa3b31bb8  
CMake Deprecation Warning at _build/_deps/highfive-src/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Building GauXC Tests
CMake Deprecation Warning at _build/_deps/catch2-src/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Warning (dev) at /Users/runner/bld/gauxc_1762861730919/_build_env/share/cmake-3.31/Modules/FetchContent.cmake:1373 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  cmake/gauxc-eigen3.cmake:8 (FetchContent_Declare)
  tests/CMakeLists.txt:41 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /Users/runner/bld/gauxc_1762861730919/_build_env/share/cmake-3.31/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(eigen3) is deprecated, call
  FetchContent_MakeAvailable(eigen3) instead.  Policy CMP0169 can be set to
  OLD to allow FetchContent_Populate(eigen3) to be called directly for now,
  but the ability to call it with declared details will be removed completely
  in a future version.
Call Stack (most recent call first):
  cmake/gauxc-eigen3.cmake:15 (FetchContent_Populate)
  tests/CMakeLists.txt:41 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find Eigen3 (missing: Eigen3_DIR)
-- Could Not Find Eigen3... Building
-- EIGEN3 REPO = https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
-- Could not find Cereal... Building
-- CEREAL REPO = https://github.com/USCiLab/cereal.git
-- CEREAL REV  = v1.3.0
CMake Warning (dev) at /Users/runner/bld/gauxc_1762861730919/_build_env/share/cmake-3.31/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(cereal) is deprecated, call
  FetchContent_MakeAvailable(cereal) instead.  Policy CMP0169 can be set to
  OLD to allow FetchContent_Populate(cereal) to be called directly for now,
  but the ability to call it with declared details will be removed completely
  in a future version.
Call Stack (most recent call first):
  cmake/BuildFindCereal.cmake:18 (FetchContent_Populate)
  cmake/gauxc-cereal.cmake:1 (include)
  tests/CMakeLists.txt:42 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done (36.9s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_LIBTOOL


-- Generating done (0.1s)
-- Build files have been written to: $SRC_DIR/_build

Run: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1389370&view=logs&j=dff6ff7b-316b-540a-5923-739df25f7012&t=2582809e-c3dc-5a5f-d883-fd3c8f9139aa

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions