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

CI fails due to cmake failure #650

Closed
Jasperav opened this issue May 14, 2022 · 4 comments
Closed

CI fails due to cmake failure #650

Jasperav opened this issue May 14, 2022 · 4 comments

Comments

@Jasperav
Copy link

Jasperav commented May 14, 2022

I recently updated my fork of this and now my CI fails with this error:

  running: "cmake" "/home/runner/.cargo/git/checkouts/prost-0f318a28dfb453a6/2c9d9c1/prost-build/third-party/protobuf/cmake" "-DCMAKE_INSTALL_PREFIX=/home/runner/work/xx/xx/server/target/debug/build/prost-build-744ea9bdfe2d1c67/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Debug"

  --- stderr
  CMake Error: The source directory "/home/runner/.cargo/git/checkouts/prost-0f318a28dfb453a6/2c9d9c1/prost-build/third-party/protobuf/cmake" does not exist.

How can I fix this?

The CI: https://github.com/Jasperav/prost/runs/6422877406?check_suite_focus=true

@LucioFranco
Copy link
Member

@Jasperav can you post the version of prost-build you are using?

@Jasperav
Copy link
Author

Jasperav commented May 17, 2022

@LucioFranco 10.1, the fork can be found here: https://github.com/Jasperav/prost/blob/master/prost-build/Cargo.toml. I made a few changes in the code, but not something that should directly hit the CI (although I did add another test, but other tests like clippy are also failing)

@LucioFranco
Copy link
Member

The fork is missing the git submodule of the protobuf repo. https://github.com/Jasperav/prost/tree/master/prost-build/third-party check this folder on the master branch of this repo.

@Jasperav
Copy link
Author

@LucioFranco Thanks for the reply, I got it working now!

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