zerotier / zerotier/zerotier-rust-api

Failing compilation v1.1.0

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
8
Forks
6
PR merge metrics
No merged PRs in 30d

Description

How to reproduce:

Just follow DNS instructions on ZeroTier Docs running on updated Ubuntu 22 LTS. Failed on rust cargo compilation step.

Stack

   Compiling progenitor v0.6.0
   Compiling zerotier-central-api v1.1.0
error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zerotier-central-api-1.1.0/build.rs:7:25
    |
7   |     let mut generator = progenitor::Generator::new();
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `&GenerationSettings` is missing
    |
note: associated function defined here
   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/progenitor-impl-0.6.0/src/lib.rs:210:12
    |
210 |     pub fn new(settings: &GenerationSettings) -> Self {
    |            ^^^
help: provide the argument
    |
7   |     let mut generator = progenitor::Generator::new(/* &GenerationSettings */);
    |                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0599]: no method named `generate_text` found for struct `Generator` in the current scope
 --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zerotier-central-api-1.1.0/build.rs:9:29
  |
9 |     let content = generator.generate_text(&spec).unwrap();
  |                             ^^^^^^^^^^^^^ help: there is a method with a similar name: `generate_tokens`

Some errors have detailed explanations: E0061, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `zerotier-central-api` (build script) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `zeronsd v0.5.0`, intermediate artifacts can be found at `/tmp/cargo-installc6xS5D`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Stack picture

Screenshot 2024-03-22 at 18 19 13

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by following the ZeroTier Docs DNS instructions on updated Ubuntu 22 LTS and running the cargo compilation. Start with the build.rs reported in the zerotier-central-api 1.1.0 registry path and compare its progenitor Generator calls with the compiler errors; done means zeronsd v0.5.0 compiles successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.