ScaffCC: CMake Error
Hello, I have installed all the prerequisites and tried using docker as well but cannot get past this step. I’m using Ubuntu 20.04.
CMake Error at utils/benchmark/src/CMakeLists.txt:19 (add_library): No SOURCES given to target: benchmark CMake Generate step failed. Build files cannot be regenerated correctly.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 17
I can’t quite figure out why the build system isn’t finding these items but add this in the same place you added the last flag:
-DLLVM_INCLUDE_TESTS=OFF
It’ll just ignore the path that’s triggering those warnings for now. Scaffold doesn’t use the
llvm-lit
for anything right now so you should be fine.If I had to guess, something is different between the
readdir
system call on your systems. Scaffold has only been thoroughly tested on Ubuntu 16.04 and macOS 10.14+ right now.You’re right that I think something is up with FILE(GLOB …) but that’s unfortunately not really something we can control, and that aspect of the build system is in the LLVM build set-up, which makes the error a bit more opaque. However, this part of the build system hasn’t been updated since we started using it in the main LLVM repository either. You might try to add
${CMAKE_CURRENT_SOURCE_DIR}
in front of the*.cc
sources if you want to try to get it to run. If there’s an issue under the hood with relative and absolute paths that might clear it up.But, I suspect this aspect of the project isn’t super related to what you’re working on and would recommend also trying the workaround to just disable this part of the build.
I’m not sure what the problem is, but a potential workaround, add this to the end of the command line invocation at line 58 of
build.sh
:-DLLVM_INCLUDE_BENCHMARKS=OFF