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

cargo build cannot build the project #531

Closed
viirya opened this issue Jun 10, 2021 · 7 comments
Closed

cargo build cannot build the project #531

viirya opened this issue Jun 10, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@viirya
Copy link
Member

viirya commented Jun 10, 2021

Describe the bug
Cannot build the project from a clean checkout.

To Reproduce

  1. git clone the project
  2. cargo build

Then the error:

   ...
   Compiling serde_urlencoded v0.7.0
   Compiling h2 v0.3.3
   Compiling tower v0.4.7
   Compiling csv v1.1.6
error: failed to run custom build command for `etcd-client v0.6.3`

Caused by:
  process didn't exit successfully: `/projects/arrow-datafusion/target/debug/build/etcd-client-a91f6504da36f75f/build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-changed=proto
warning: build failed, waiting for other jobs to finish...
error: build failed

Expected behavior

cargo build should build the project according to the development document.

Additional context
MacOS 11.3

rustc 1.51.0
cargo 1.51.0

@viirya viirya added the bug Something isn't working label Jun 10, 2021
@viirya
Copy link
Member Author

viirya commented Jun 10, 2021

Reinstalled rust using rustup. Still see:

   ...
   Compiling arrow-flight v4.2.0
   Compiling ballista-core v0.5.0-SNAPSHOT (/projects/arrow-datafusion/ballista/rust/core)
   Compiling etcd-client v0.6.3
error: failed to run custom build command for `ballista-core v0.5.0-SNAPSHOT (/projects/arrow-datafusion/ballista/rust/core)`

Caused by:
  process didn't exit successfully: `/projects/arrow-datafusion/target/debug/build/ballista-core-9ab32c5dcad9ff02/build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=FORCE_REBUILD
  cargo:rerun-if-changed=proto/ballista.proto
warning: build failed, waiting for other jobs to finish...
error: build failed

@alamb
Copy link
Contributor

alamb commented Jun 10, 2021

There is a custom build script in ballista
https://github.com/apache/arrow-datafusion/blob/master/ballista/rust/core/build.rs

I wonder if this is related to needing protobuf installed?

@andygrove any thoughts?

@alamb alamb added the ballista label Jun 10, 2021
@viirya
Copy link
Member Author

viirya commented Jun 10, 2021

Oh, thanks for asking. I have protobuf installed.

@alamb
Copy link
Contributor

alamb commented Jun 10, 2021

🤔

@edrevo
Copy link
Contributor

edrevo commented Jun 11, 2021

Do you have the required libs installed? See https://github.com/apache/arrow-datafusion/blob/master/ballista/docs/dev-env.md

TL;DR

sudo apt-get install -y pkg-config libssl-dev cmake

@viirya
Copy link
Member Author

viirya commented Jun 11, 2021

On MacOS, I have cmake, pkg-config, openssl (bundled with dev) installed.

@viirya
Copy link
Member Author

viirya commented Jun 13, 2021

I uninstalled stable toolchain and install nightly toolchain using rustup. And it can build the project.

Still don't know what the issue here because no descriptive error (tried verbose, etc.) can be found. But at least I can play with this project now.

@viirya viirya closed this as completed Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants