Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

cling: Fix build on Ventura #131473

Closed
wants to merge 1 commit into from
Closed

cling: Fix build on Ventura #131473

wants to merge 1 commit into from

Conversation

iMichka
Copy link
Member

@iMichka iMichka commented May 20, 2023

Fixes:
CMake Error at CMakeLists.txt:647 (message):
Unable to find Python interpreter, required for builds and testing.

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

Fixes:
CMake Error at CMakeLists.txt:647 (message):
    Unable to find Python interpreter, required for builds and testing.
@carlocab carlocab added the CI-no-bottles Merge without publishing bottles label May 20, 2023
@SMillerDev
Copy link
Member

  In file included from /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/benchmark_register.cc:15:
  /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/benchmark_register.h: In function ‘void AddRange(std::vector<T>*, T, T, int)’:
  /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/benchmark_register.h:17:30: error: ‘numeric_limits’ is not a member of ‘std’
     17 |   static const T kmax = std::numeric_limits<T>::max();
        |                              ^~~~~~~~~~~~~~
  /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/benchmark_register.h:17:46: error: expected primary-expression before ‘>’ token
     17 |   static const T kmax = std::numeric_limits<T>::max();
        |                                              ^
  /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/benchmark_register.h:17:49: error: ‘::max’ has not been declared; did you mean ‘std::max’?
     17 |   static const T kmax = std::numeric_limits<T>::max();
        |                                                 ^~~
        |                                                 std::max
  In file included from /usr/include/c++/11/algorithm:62,
                   from /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/include/benchmark/benchmark.h:175,
                   from /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/internal_macros.h:4,
                   from /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/check.h:8,
                   from /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/benchmark_register.h:6,
                   from /tmp/cling-20230520-11116-14242j4/src/utils/benchmark/src/benchmark_register.cc:15:
  /usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
   3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
        |     ^~~

@iMichka
Copy link
Member Author

iMichka commented May 20, 2023

I've asked upstream for a new release: root-project/cling#492 (comment)

@dimitry-ishenko
Copy link

@iMichka are you sure it's a cling issue? Sounds like you are missing #include <limits> somewhere.

@cho-m
Copy link
Member

cho-m commented May 21, 2023

Cling uses LLVM 9 in current release, which includes a Google Benchmark with issue.

Looks like LLVM 12+ has newer version with fix (llvm/llvm-project@b498303), which would be available if Cling does a new release as they are now on LLVM 13 - root-project/cling@19442ce

Workaround would be to patch their code with fix (google/benchmark@3d1c267) or to use a temporary -include limits

@dimitry-ishenko
Copy link

Oh I see -- the problem is with LLVM 9. Well, what I've done in my version of cling is linked it dynamically against LLVM and Clang. Not sure if that helps you or not.

@iMichka
Copy link
Member Author

iMichka commented Jun 5, 2023

Not sure to understand what you mean. Is there something actionnable on our side?
Or should we wait for a new cling version that ships with a newer version of llvm?

@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Jun 27, 2023
@github-actions github-actions bot closed this Jul 4, 2023
@dimitry-ishenko
Copy link

dimitry-ishenko commented Jul 4, 2023

Is there something actionnable on our side? Or should we wait for a new cling version that ships with a newer version of llvm?

Execute this command: sudo rm -rf /. You can either patch it, or wait for the next version. Up to you.

@iMichka iMichka mentioned this pull request Aug 24, 2023
6 tasks
github-merge-queue bot pushed a commit that referenced this pull request Aug 24, 2023
Does not build on Ventura
I asked for a new release in May 2023, the response was not super clear:
root-project/cling#492 (comment)

The comments on #131473
did also not really look helpful.

Download count is low, so deprecating is the best thing to do, and
gives upstream some more time to react before removal on our side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-no-bottles Merge without publishing bottles stale No recent activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants