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

Installation error #400

Open
OneMoreProblem opened this issue May 19, 2022 · 1 comment
Open

Installation error #400

OneMoreProblem opened this issue May 19, 2022 · 1 comment

Comments

@OneMoreProblem
Copy link

OneMoreProblem commented May 19, 2022

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:

  • cmake version 3.22.1
  • OS: Ubuntu-22.04 wsl
  • Compiler: gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
@OneMoreProblem
Copy link
Author

OneMoreProblem commented May 19, 2022

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

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