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
When we go to use souffle later to compile and run queries, we get errors about missing types, e.g.
compiler error: cannot compile source file "./soufflezLREUj.cpp"
"/usr/bin/c++" "-march=native" "-g" "-stdlib=libc++" "-fopenmp=libomp" "-O2" "-g" "-DUSE_NCURSES" "-DUSE_LIBZ" "-DUSE_SQLITE" "-fopenmp" "-std=c++17" "-o/mate/soufflezLREUj" "./soufflezLREUj.cpp" "-I/usr/local/bin/../include" "-I/usr/local/bin/include" "-I/usr/local/bin/../include/souffle/swig" "-I/usr/local/bin/include/souffle/swig" "-I/tmp/souffle/src/include" "-L.out/build/llvm" "-lpthread" "-ldl" "/usr/lib/x86_64-linux-gnu/libsqlite3.so" "/usr/lib/x86_64-linux-gnu/libz.so" "/usr/lib/x86_64-linux-gnu/libncurses.so" "-lFunctors"
./soufflezLREUj.cpp:14295:1: error: unknown type name 'Logger'
Logger logger("@runtime;", 0);
^
./soufflezLREUj.cpp:14297:2: error: use of undeclared identifier 'Logger'; did you mean 'logger'?
Logger logger(R"_(@runtime;)_",iter);
^~~~~~
logger
./soufflezLREUj.cpp:14295:8: note: 'logger' declared here
Logger logger("@runtime;", 0);
^
./soufflezLREUj.cpp:30893:2: error: unknown type name 'Logger'
Logger logger(R"_(@t-nonrecursive-relation;the_empty_alloc_context;./interface.dl [202:7-202:30];)_",iter, [&](){return rel_1_the_empty_alloc_context->size();});
I think the problem is that souffle is trying to use that original (now non-existent) source directory that was created before the installation: -I/tmp/souffle/src/include.
Aside from not deleting the source directory, is there another easy fix for this you're aware of? Is this a bug in the CMake? Or are we not passing a flag to get the installation to put the include directories somewhere more permanent?
The text was updated successfully, but these errors were encountered:
pnwamk
changed the title
installing souffle does not place include directory in a central place
souffle-compile looking in original directory for includes
Mar 9, 2022
I think these lines are why the souffle-compile script that is generated is looking in our temporary directory and not in /usr/local/include (which I now see does contain the souffle include directory! we just need to get souffle-compile to look there instead, I think):
We are building souffle (2.2) in a temporary directory, installing, and then clearing away the source directory (for a docker image):
When we go to use souffle later to compile and run queries, we get errors about missing types, e.g.
I think the problem is that souffle is trying to use that original (now non-existent) source directory that was created before the installation:
-I/tmp/souffle/src/include
.Aside from not deleting the source directory, is there another easy fix for this you're aware of? Is this a bug in the CMake? Or are we not passing a flag to get the installation to put the include directories somewhere more permanent?
The text was updated successfully, but these errors were encountered: