IntelligentSoftwareSystems / Galois

Galois: C++ library for multi-core and multi-node parallelization
http://iss.ices.utexas.edu/?p=projects/galois
Other
311 stars 131 forks source link

Installation error #400

Open OneMoreProblem opened 2 years ago

OneMoreProblem commented 2 years ago

I try to install with

make install

and get message:

[ 93%] Building CXX object lonestar/scientific/cpu/longestedge/CMakeFiles/longestedgeTest.dir/test/TestMain.cpp.o
In file included from /usr/include/signal.h:328,
                 from /home/user/Galois/lonestar/scientific/cpu/longestedge/test/catch.hpp:7955,
                 from /home/6/Galois/lonestar/scientific/cpu/longestedge/test/TestMain.cpp:5:
/home/user/Galois/lonestar/scientific/cpu/longestedge/test/catch.hpp:10735:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
10735 |     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
      |                                                          ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /home/user/Galois/lonestar/scientific/cpu/longestedge/test/catch.hpp:7955,
                 from /home/user/Galois/lonestar/scientific/cpu/longestedge/test/TestMain.cpp:5:
/usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
  640 | extern long int sysconf (int __name) __THROW;
      |                 ^~~~~~~
In file included from /home/user/Galois/lonestar/scientific/cpu/longestedge/test/TestMain.cpp:5:
/home/user/Galois/lonestar/scientific/cpu/longestedge/test/catch.hpp:10794:45: error: size of array ‘altStackMem’ is not an integral constant-expression
10794 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
      |                                             ^~~~~~~~~~~~
make[2]: *** [lonestar/scientific/cpu/longestedge/CMakeFiles/longestedgeTest.dir/build.make:76: lonestar/scientific/cpu/longestedge/CMakeFiles/longestedgeTest.dir/test/TestMain.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3521: lonestar/scientific/cpu/longestedge/CMakeFiles/longestedgeTest.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

I think the error occur the same reason, is't it?

Platform information:

OneMoreProblem commented 2 years ago

Ok, i fixed it by changing /home/user/Galois/lonestar/scientific/cpu/longestedge/test/catch.hpp to new catch.hpp form here