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

Attempting to compile rust-teos watchtower plugin fails. #115

Closed
unsettledroell404 opened this issue Sep 4, 2022 · 2 comments
Closed

Attempting to compile rust-teos watchtower plugin fails. #115

unsettledroell404 opened this issue Sep 4, 2022 · 2 comments

Comments

@unsettledroell404
Copy link

I am trying to compile the CLN plugin for TEOS on an Intel NUC and it fails with the following error.

...
Compiling bitcoin v0.28.1
Compiling teos-common v0.0.1 (/data/cln/plugins-available/rust-teos/teos-common)
Compiling hyper-timeout v0.4.1
error: failed to run custom build command for teos-common v0.0.1 (/data/cln/plugins-available/rust-teos/teos-common)

Caused by:
process didn't exit successfully: /data/cln/plugins-available/rust-teos/target/release/build/teos-common-a198ce27a137d37e/build-script-build (exit status: 1)
--- stderr
error running rustfmt: Os { code: 2, kind: NotFound, message: "No such file or directory" }
warning: build failed, waiting for other jobs to finish...
error: failed to compile watchtower-plugin v0.1.0 (/data/cln/plugins-available/rust-teos/watchtower-plugin), intermediate artifacts can be found at /data/cln/plugins-available/rust-teos/target

Caused by:
build failed

@unsettledroell404
Copy link
Author

OK the solution was simpler than I thougt, rustfmt must be installed (apt install rustfmt).

@mariocynicys
Copy link
Collaborator

mariocynicys commented Sep 4, 2022

OK the solution was simpler than I thougt, rustfmt must be installed (apt install rustfmt).

Aha, this is due to tonic-build's dependency on rustfmt. This was fixed in this PR (landed in v0.7).

PS. Also better use rustup to install rustfmt.

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