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

Cannot build on arm64 #224

Open
panthuncia opened this issue Oct 22, 2023 · 1 comment
Open

Cannot build on arm64 #224

panthuncia opened this issue Oct 22, 2023 · 1 comment
Labels
bug Something isn't working build build issues

Comments

@panthuncia
Copy link

panthuncia commented Oct 22, 2023

Running 'cargo install zeronsd' results in:

Updating crates.io index
  Installing zeronsd v0.5.0
    Updating crates.io index
   Compiling proc-macro2 v1.0.69
  
   ...(cut for space)

   Compiling progenitor v0.4.0
   Compiling zerotier-one-api v1.1.0
error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /home/sailbot/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zerotier-one-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
   --> /home/sailbot/.cargo/registry/src/index.crates.io-6f17d22bba15001f/progenitor-impl-0.4.0/src/lib.rs:175:12
    |
175 |     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 `progenitor::Generator` in the current scope
 --> /home/sailbot/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zerotier-one-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-one-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-installLxFDzE`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

ZeroNSD version: 0.5.0

Platform:
Orange Pi 5+
http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html

Environment:
OS: Ubuntu 22.04 LTS (https://github.com/Joshua-Riek/ubuntu-rockchip)
Rust version:

rustc 1.73.0 (cc66ad468 2023-10-03)
binary: rustc
commit-hash: cc66ad468955717ab92600c770da8c1601a4ff33
commit-date: 2023-10-03
host: aarch64-unknown-linux-gnu
release: 1.73.0
LLVM version: 17.0.2
@panthuncia
Copy link
Author

v0.4.3 builds correctly.

@laduke laduke added bug Something isn't working build build issues labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build build issues
Projects
None yet
Development

No branches or pull requests

2 participants