-
Notifications
You must be signed in to change notification settings - Fork 415
Build Failure with PR #1869 #1877
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
Comments
Probably the submodule update step is not working correctly. You may run |
In alternative, cloning with the following should also solve the problem: |
@acomodi - To avoid submodule issues, VtR generally uses git-subtree, see https://docs.verilogtorouting.org/en/latest/dev/developing/?highlight=subtrees#adding-a-new-subtree Any reason we didn't use subtrees for cap'n'proto here? |
Fixed by #1880 ? |
Uh oh!
There was an error while loading. Please reload this page.
Since the "capnproto" library is now added as a submodule, when we do a clone onto the VTR repo, the "capnproto" related files
are not downloaded locally. This ends up breaking the build since the "libs/EXTERNAL/capnproto" directory is empty.
Expected Behaviour
During the build procedure the "capnproto" repo should be cloned, so that the relevant files are present locally.
or
During the initial VTR repo clone, the "capnproto" repository should also be downloaded locally.
Current Behaviour
After I do a clone onto the VTR repo, the "libs/EXTERNAL/capnproto" directory is empty by default. Then when I try to build VTR, I get the following error:
`CMake Error at libs/EXTERNAL/CMakeLists.txt:43 (add_subdirectory):
The source directory
does not contain a CMakeLists.txt file.
CMake Error at libs/EXTERNAL/CMakeLists.txt:47 (target_include_directories):
Cannot specify include directories for target "kj" which is not built by
this project.
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-undef
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-undef - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-non-virtual-dtor
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-non-virtual-dtor - Success
CMake Error at libs/libvtrcapnproto/CMakeLists.txt:29 (capnp_generate_cpp):
Unknown CMake command "capnp_generate_cpp".
-- Configuring incomplete, errors occurred!
See also "/home/srivat97/Research_Project/Test/build/CMakeFiles/CMakeOutput.log".
make: *** [Makefile:128: clean] Error 1`
Possible Solution
What I have been doing to get the build working is the following:
git submodule init
git submodule update
Steps to Reproduce
git clone https://github.com/verilog-to-routing/vtr-verilog-to-routing.git
Context
Your Environment
The text was updated successfully, but these errors were encountered: