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

Cannot find source file: ... external/install/src/rapmap/RapMapFileSystem.cpp #119

Open
yurivict opened this issue Aug 26, 2022 · 1 comment

Comments

@yurivict
Copy link

configure fails with the message:

CMake Error at src/CMakeLists.txt:79 (add_library):
  Cannot find source file:

    /disk-samsung/freebsd-ports/biology/sailfish/work/sailfish-0.10.1-3-g0c88dda/external/install/src/rapmap/RapMapFileSystem.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at src/CMakeLists.txt:79 (add_library):
  No SOURCES given to target: sailfish_core

This repository doesn't contain external/install/src/rapmap/RapMapFileSystem.cpp and there are no git submodules.

@LiCanhui-Huyi
Copy link

@yurivict
I have encountered the same problem. Whether you have solved it or not, I think my answer can help people who encounter this problem in the future. This problem is because when running "cmake ..", one of the commands is to download a github file with curl. Some networks can not connect to github smoothly. When the download fails, it will continue to run. When you run "cmake .." again, you will not run the curl command again, so you will directly report this error every time you run.
resolvent:
Because I forgot which file the curl command is in, I deleted and recreated the build folder. Then run "camke .." again. Then you will see the output of curl. The line above this should be his command. Then use "grep - rn The CurlCommand", and you will know which line of the file this command is in and the URL where curl downloads the file. You can download the URL manually through a network that can access github. Then replace the curl command in the file with the cp command. Of course, remember to delete the curl option.
There are several similar curl commands in the process of "camke ..", which can be solved in the same way.

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

2 participants