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

Abseil-cpp error in compilation #4

Open
ldeng-ustc opened this issue Dec 13, 2023 · 0 comments
Open

Abseil-cpp error in compilation #4

ldeng-ustc opened this issue Dec 13, 2023 · 0 comments

Comments

@ldeng-ustc
Copy link

I build RisGraph with gcc-11.4.0, and got error:

/home/ldeng/related_works/RisGraph/deps/abseil-cpp/absl/synchronization/internal/graphcycles.cc: I
n member function ‘void absl::lts_2020_02_25::synchronization_internal::GraphCycles::RemoveNode(vo
id*)’:
/home/ldeng/related_works/RisGraph/deps/abseil-cpp/absl/synchronization/internal/graphcycles.cc:45
1:26: error: ‘numeric_limits’ is not a member of ‘std’
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                          ^~~~~~~~~~~~~~
/home/ldeng/related_works/RisGraph/deps/abseil-cpp/absl/synchronization/internal/graphcycles.cc:45
1:49: error: expected primary-expression before ‘>’ token
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                                                 ^
/home/ldeng/related_works/RisGraph/deps/abseil-cpp/absl/synchronization/internal/graphcycles.cc:45
1:52: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                                                    ^~~
      |                                                    std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /home/ldeng/related_works/RisGraph/deps/abseil-cpp/absl/synchronization/inte
rnal/graphcycles.cc:38:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
make[2]: *** [deps/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/build.
make:76: deps/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/gr
aphcycles.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3633: deps/abseil-cpp/absl/synchronization/CMakeFiles/absl_grap
hcycles_internal.dir/all] Error 2

It seems to be a bug in old version abseil. I manully clone new LTS version of abseil-cpp and compile successfully. Maybe the abseil version that the repository depends on should be updated.

In addition, RisGraph also depends on libaio and boost::fiber (which in also depends on atomic, context, and filesystem in boost), maybe it should also be mentioned in the Readme.

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

No branches or pull requests

1 participant