algbio / ggcat

Compacted and colored de Bruijn graph construction and querying
MIT License
72 stars 10 forks source link

GGCAT installation fails when compiling ggcat-api #41

Closed TimRouze closed 7 months ago

TimRouze commented 7 months ago

Hi,

I wanted to try out ggcat, during installation i get the following error:

Compiling ggcat-api v0.1.0 (/home/Prog/fulgor/external/ggcat/crates/api)
error: could not write output to /home/Prog/fulgor/external/ggcat/target/release/deps/ggcat_cpp_bindings-8701aaa82dc571a8.ggcat_assembler_minimizer_bucketing-8434959e806de058.ggcat_assembler_minimizer_bucketing.4e5595e557a91e17-cgu.04.rcgu.o.rcgu.o: File name too long

error: could not compile `ggcat-cpp-bindings` (lib) due to 1 previous error
make[3]: *** [Makefile:15: lib/libggcat_cpp_bindings.a] Error 101
make[2]: *** [CMakeFiles/ggcat_cpp_api.dir/build.make:70: CMakeFiles/ggcat_cpp_api] Error 2
make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/ggcat_cpp_api.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

This error appeared during the installation of fulgor but I get the same error when trying to install ggcat alone:

Compiling ggcat_cmdline v0.1.0 (/home/Prog/ggcat/crates/cmdline)
error: could not write output to /home/Prog/ggcat/target/release/deps/ggcat-b6d2d6c2a91228c2.ggcat_assembler_minimizer_bucketing-e11f3962450e6c80.ggcat_assembler_minimizer_bucketing.e9bbab0fcd303136-cgu.02.rcgu.o.rcgu.o: File name too long

error: could not compile `ggcat_cmdline` (bin "ggcat") due to previous error
error: failed to compile `ggcat_cmdline v0.1.0 (/home/Prog/ggcat/crates/cmdline)`, intermediate artifacts can be found at `/home/Prog/ggcat/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

@malfoy and @kamimrcht have had the same issue. We suspect that this error only occurs on encrypted computers.

Guilucand commented 7 months ago

Hi, it seems there is no default option for cargo to make filenames shorter, but since the problematic filename is only 150 characters long (and it seems the max. allowed is 143 for encrypted fs) I renamed the dependency to reduce the size

TimRouze commented 7 months ago

It worked, thanks a lot!