DeepGraphLearning / graphvite

GraphVite: A General and High-performance Graph Embedding System
https://graphvite.io
Apache License 2.0
1.21k stars 151 forks source link

CMake Error when using 'cd build && cmake .. && make && cd -' command #101

Open Kunlun-Zhu opened 2 years ago

Kunlun-Zhu commented 2 years ago

Hi, when I tried to install from source by running the following command

cd build && cmake .. && make && cd -

I got the following error

[ 11%] Creating directories for 'faiss'
[ 22%] Performing download step (git clone) for 'faiss'
Cloning into 'faiss'...
fatal: invalid reference: master
CMake Error at /graphvite/build/faiss/tmp/faiss-gitclone.cmake:40 (message):
  Failed to checkout tag: 'master'

make[2]: *** [CMakeFiles/faiss.dir/build.make:97: faiss/src/faiss-stamp/faiss-download] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/faiss.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Any idea why would this happen? Thanks

Kunlun-Zhu commented 2 years ago

the cmake version is 3.22.1

snapfinger commented 2 years ago

I had a very similar error on ubuntu 18.04 with cmake 3.19.6 (p.s. I tried installing in this way because anaconda approach did not work either)

[ 11%] Creating directories for 'faiss'
[ 22%] Performing download step (git clone) for 'faiss'
Cloning into 'faiss'...
fatal: invalid reference: master
CMake Error at /my_project/code/Graph/graphvite/build/faiss/tmp/faiss-gitclone.cmake:40 (message):
  Failed to checkout tag: 'master'

CMakeFiles/faiss.dir/build.make:108: recipe for target 'faiss/src/faiss-stamp/faiss-download' failed
make[2]: *** [faiss/src/faiss-stamp/faiss-download] Error 1
CMakeFiles/Makefile2:114: recipe for target 'CMakeFiles/faiss.dir/all' failed
make[1]: *** [CMakeFiles/faiss.dir/all] Error 2
Makefile:102: recipe for target 'all' failed
make: *** [all] Error 2
novahow commented 2 years ago

image I guess it's because the repo's master branch is renamed as 'main', perhaps adding GIT_TAG in CMAKEList.txt will help