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

fatal error: ../external/pthash/include/pthash.hpp: No such file or directory #8

Open
enricorox opened this issue Dec 22, 2023 · 1 comment

Comments

@enricorox
Copy link

Hi!
I found errors while running compile.sh that prevented make from finishing compilation.
Specifically, it seems that ../external/pthash/include/pthash.hpp does not exists.

Scanning dependencies of target sdsl
In file included from /tmp/ESSColor/lib/sshash/include/util.hpp:8,
                 from /tmp/ESSColor/lib/sshash/include/dictionary.hpp:3,
                 from /tmp/ESSColor/lib/sshash/include/dictionary.cpp:1:
/tmp/ESSColor/lib/sshash/include/hash_util.hpp:3:10: fatal error: ../external/pthash/include/pthash.hpp: No such file or directory
    3 | #include "../external/pthash/include/pthash.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /tmp/ESSColor/lib/sshash/include/util.hpp:8,
                 from /tmp/ESSColor/lib/sshash/include/dictionary.hpp:3,
                 from /tmp/ESSColor/lib/sshash/include/dump.cpp:1:
/tmp/ESSColor/lib/sshash/include/hash_util.hpp:3:10: fatal error: ../external/pthash/include/pthash.hpp: No such file or directory
    3 | #include "../external/pthash/include/pthash.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/ESSColor/lib/sshash/include/util.hpp:8,
                 from /tmp/ESSColor/lib/sshash/include/dictionary.hpp:3,
                 from /tmp/ESSColor/lib/sshash/include/info.cpp:1:
/tmp/ESSColor/lib/sshash/include/hash_util.hpp:3:10: fatal error: ../external/pthash/include/pthash.hpp: No such file or directory
    3 | #include "../external/pthash/include/pthash.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
make[2]: *** [lib/sshash/CMakeFiles/sshash_static.dir/build.make:95: lib/sshash/CMakeFiles/sshash_static.dir/include/dictionary.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/sshash/CMakeFiles/sshash_static.dir/build.make:108: lib/sshash/CMakeFiles/sshash_static.dir/include/info.cpp.o] Error 1
make[2]: *** [lib/sshash/CMakeFiles/sshash_static.dir/build.make:121: lib/sshash/CMakeFiles/sshash_static.dir/include/dump.cpp.o] Error 1
[ 57%] Building CXX object lib/sdsl/lib/CMakeFiles/sdsl.dir/bits.cpp.o
[ 57%] Building CXX object lib/sdsl/lib/CMakeFiles/sdsl.dir/bp_support_algorithm.cpp.o
[ 57%] Building CXX object lib/sdsl/lib/CMakeFiles/sdsl.dir/coder_elias_delta.cpp.o
[ 61%] Building CXX object lib/sdsl/lib/CMakeFiles/sdsl.dir/coder_elias_gamma.cpp.o
In file included from /tmp/ESSColor/lib/sshash/include/util.hpp:8,
                 from /tmp/ESSColor/lib/sshash/include/dictionary.hpp:3,
                 from /tmp/ESSColor/lib/sshash/include/statistics.cpp:1:
/tmp/ESSColor/lib/sshash/include/hash_util.hpp:3:10: fatal error: ../external/pthash/include/pthash.hpp: No such file or directory
    3 | #include "../external/pthash/include/pthash.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[ 61%] Building CXX object lib/sdsl/lib/CMakeFiles/sdsl.dir/coder_fibonacci.cpp.o
make[2]: *** [lib/sshash/CMakeFiles/sshash_static.dir/build.make:134: lib/sshash/CMakeFiles/sshash_static.dir/include/statistics.cpp.o] Error 1
[ 61%] Building CXX object lib/sdsl/lib/CMakeFiles/sdsl.dir/config.cpp.o
[ 61%] Building CXX object lib/sdsl/lib/CMakeFiles/sdsl.dir/construct_config.cpp.o
In file included from /tmp/ESSColor/lib/sshash/include/builder/../util.hpp:8,
                 from /tmp/ESSColor/lib/sshash/include/builder/../dictionary.hpp:3,
                 from /tmp/ESSColor/lib/sshash/include/builder/build.cpp:1:
/tmp/ESSColor/lib/sshash/include/builder/../hash_util.hpp:3:10: fatal error: ../external/pthash/include/pthash.hpp: No such file or directory
    3 | #include "../external/pthash/include/pthash.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [lib/sshash/CMakeFiles/sshash_static.dir/build.make:147: lib/sshash/CMakeFiles/sshash_static.dir/include/builder/build.cpp.o] Error 1
@enricorox
Copy link
Author

The problem is the missing recursive cloning of sshash.

A git submodule update --init --recursive in the sshash directory solved the problem!

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