Skip to content

Compilation error with Apple Clang 17.0.0 #153

Description

@ryanmrichard

Per the title, building GauXC with Apple Clang 17.0.0 results in the compilation error:

[build] .../src/xc_integrator/integrator_util/spherical_harmonics.cxx:143:31: error: no member named 'sph_legendre' in namespace 'std'
[build]   143 |             double sph = std::sph_legendre(l, m, theta) * ratio;
[build]       |                          ~~~~~^

which looks like it was added in 66784a4. FWIW, I did try adding #include <cmath>, but that didn't solve the problem.

A quick Google search suggests that these functions were at one point an issue in normal LLVM (e.g., here), but that issue is quite old and seems to have been fixed now (as evidenced by GauXC's LLVM CI passing). I came up empty when looking for Apple Clang specifically.

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