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

Error building for macOS #482

Open
lobis opened this issue Sep 26, 2023 · 0 comments · May be fixed by #483
Open

Error building for macOS #482

lobis opened this issue Sep 26, 2023 · 0 comments · May be fixed by #483
Labels
cmake Related to CMake

Comments

@lobis
Copy link
Member

lobis commented Sep 26, 2023

I was unable to compile the REST-for-Physics framework on a macbook (M1).

There are some errors related to the TRestHits_Iterator class. Looks like these were warnings on previous version of (cmake, gcc, something like that) but now are errors.

I tried fixing some of them but I could not fix all (yet).

❯ g++ --version
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
❯ cmake --version
cmake version 3.27.6

CMake suite maintained and supported by Kitware (kitware.com/cmake).
❯ root-config --version
6.29.01
❯ uname -a
Darwin luis-macbook.local 22.6.0 Darwin Kernel Version 22.6.0: Fri Sep 15 13:41:30 PDT 2023; root:xnu-8796.141.3.700.8~1/RELEASE_ARM64_T8103 arm64

Sample error:

In file included from /Users/lobis/git/framework/source/libraries/detector/src/TRestDetectorHitsEvent.cxx:40:
In file included from /Users/lobis/git/framework/source/libraries/detector/inc/TRestDetectorHitsEvent.h:5:
In file included from /Users/lobis/opt/root/include/TAxis.h:24:
In file included from /Users/lobis/opt/root/include/TNamed.h:25:
In file included from /Users/lobis/opt/root/include/TObject.h:17:
In file included from /Users/lobis/opt/root/include/Rtypes.h:193:
In file included from /Users/lobis/opt/root/include/TGenericClassInfo.h:21:
In file included from /Users/lobis/opt/root/include/TSchemaHelper.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:576:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string_view:1025:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/algorithm:1757:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__algorithm/make_heap.h:15:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__algorithm/sift_down.h:44:34: error: no matching function for call to object of type '(lambda at /Users/lobis/git/framework/source/libraries/detector/src/TRestDetectorHitsEvent.cxx:143:19)'
    if ((__child + 1) < __len && __comp(*__child_i, *(__child_i + difference_type(1)))) {
@lobis lobis added the cmake Related to CMake label Sep 26, 2023
@lobis lobis linked a pull request Sep 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Related to CMake
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant