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

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

Open
Kunlun-Zhu opened this issue May 30, 2022 · 3 comments
Open

Comments

@Kunlun-Zhu
Copy link

Kunlun-Zhu commented May 30, 2022

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
Copy link
Author

the cmake version is 3.22.1

@snapfinger
Copy link

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
Copy link

novahow commented Aug 22, 2022

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

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

3 participants