You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the code in binder and I get the next error (in my local machine I get the same)
I execute this:
# build and imports
import sys
import os
import seaborn as sns
from pandas import DataFrame
pathToCsaranshPP = ".."
sys.path.append(pathToCsaranshPP)
from csaranshpp import getDefaultConfig, writeResultsToJSON
buildDir = os.path.join(pathToCsaranshPP, "_build")
libPath = os.path.join(buildDir, "libcsaransh-pp_shared.so") # path to csaransh library
!mkdir ../_build
!cd ../_build && cmake .. && cmake --build .
if (not os.path.exists(buildDir) or not os.path.exists(libPath)):
print("Library not found. Might be due to build errors in cmake.")
print("If built successfully, specify correct build directory & lib file (so / dlib / dlib) above.")
And this is the error:
mkdir: cannot create directory ‘../_build’: File exists
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jovyan/csaransh_pp/_build
[ 3%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/AddOffset.cpp.o
[ 6%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/cluster2features.cpp.o
[ 9%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/printJson.cpp.o
[ 12%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/infoReader.cpp.o
[ 15%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/reader.cpp.o
[ 18%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/results.cpp.o
[ 21%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/xyz2defects.cpp.o
[ 25%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/xyzReader.cpp.o
[ 28%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/optimizeOrigin.cpp.o
[ 31%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/NextExpected.cpp.o
[ 34%] Building CXX object CMakeFiles/csaransh-pp_lib.dir/src/helper.cpp.o
[ 37%] Linking CXX static library libcsaransh-pp_lib.a
[ 37%] Built target csaransh-pp_lib
Consolidate compiler generated dependencies of target csaransh-pp_shared
[ 78%] Built target csaransh-pp_shared
[ 81%] Building CXX object CMakeFiles/csaransh-pp.dir/src/main.cpp.o
[ 84%] Linking CXX executable csaransh-pp
[ 84%] Built target csaransh-pp
[ 87%] Building CXX object CMakeFiles/csaransh-pp_test.dir/test/catchUnitTests.cpp.o
In file included from /usr/include/signal.h:328,
from /home/jovyan/csaransh_pp/third_party/catch.hpp:6113,
from /home/jovyan/csaransh_pp/test/catchUnitTests.cpp:2:
/home/jovyan/csaransh_pp/third_party/catch.hpp:8749:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
8749 | constexpr static 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/jovyan/csaransh_pp/third_party/catch.hpp:6113,
from /home/jovyan/csaransh_pp/test/catchUnitTests.cpp:2:
/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/jovyan/csaransh_pp/test/catchUnitTests.cpp:2:
/home/jovyan/csaransh_pp/third_party/catch.hpp:8808:45: error: size of array ‘altStackMem’ is not an integral constant-expression
8808 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
| ^~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/csaransh-pp_test.dir/build.make:76: CMakeFiles/csaransh-pp_test.dir/test/catchUnitTests.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:196: CMakeFiles/csaransh-pp_test.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to run the code in binder and I get the next error (in my local machine I get the same)
I execute this:
And this is the error:
Thanks!
The text was updated successfully, but these errors were encountered: