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

Build failure with Rust nightly at HEAD (570d7fe) #487

Closed
khimaros opened this issue Mar 18, 2019 · 5 comments
Closed

Build failure with Rust nightly at HEAD (570d7fe) #487

khimaros opened this issue Mar 18, 2019 · 5 comments
Labels
C: Bug Something isn't working

Comments

@khimaros
Copy link

$ rustc --version
rustc 1.35.0-nightly (7c19e1eed 2019-03-12)

$ cargo web deploy -p plume-front
[...]
   Compiling plume-front v0.1.0 (MASKED/plume-front)
error: proc macro panicked
  --> plume-front/src/main.rs:18:1
   |
18 | compile_i18n!();
   | ^^^^^^^^^^^^^^^^
   |
   = help: message: Couldn't update PO file: Os { code: 2, kind: NotFound, message: "No such file or directory" }
error: aborting due to previous error
error: Could not compile `plume-front`.
@khimaros khimaros added the C: Bug Something isn't working label Mar 18, 2019
@khimaros
Copy link
Author

I have a suspicion that this is due to not having 'gettext' package installed. If this is the case, will close this issue and report bug against gettext_macros crate for the unclear error message.

@khimaros
Copy link
Author

Closing. See Plume-org/gettext-macros#7

@khimaros
Copy link
Author

I was able to resolve the gettext failure, as mentioned above.

However, I'm now bumping into rust-lang/rust#58922 while installing the sqlite crate:

+ cargo install --no-default-features --features sqlite
warning: Using `cargo install` to install the binaries for the package in current working directory is deprecated, use `cargo install --path .` instead. Use `cargo build` if you want to simply build the package.
  Installing plume v0.2.0 (/var/build/depot/social/Plume)
   Compiling census v0.1.1
   Compiling htmlescape v0.3.1
   Compiling downcast v0.9.2
   Compiling byteorder v0.4.2
   Compiling bufstream v0.1.4
error[E0034]: multiple applicable items in scope
   --> /var/build/depot/.cargo/registry/src/github.com-1ecc6299db9ec823/downcast-0.9.2/src/lib.rs:120:38
    |
120 |     fn is_type(&self) -> bool { self.type_id() == TypeId::of::<T>() }
    |                                      ^^^^^^^ multiple `type_id` found
    |
note: candidate #1 is defined in the trait `Any`
   --> /var/build/depot/.cargo/registry/src/github.com-1ecc6299db9ec823/downcast-0.9.2/src/lib.rs:29:5
    |
29  |     fn type_id(&self) -> TypeId { TypeId::of::<Self>() }
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: to disambiguate the method call, write `Any::type_id(&self)` instead
note: candidate #2 is defined in the trait `std::any::Any`
    = help: to disambiguate the method call, write `std::any::Any::type_id(&self)` instead

error: aborting due to previous error

For more information about this error, try `rustc --explain E0034`.
error: Could not compile `downcast`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `plume v0.2.0 (/var/build/depot/social/Plume)`, intermediate artifacts can be found at `/var/build/depot/social/Plume/target`

Caused by:
  build failed

Is there a version of rustc/cargo which is known to work?

@khimaros khimaros reopened this Mar 18, 2019
@trinity-1686a
Copy link
Contributor

there is a compiler release tagged in ./rust-toolchain, it should have been used by cargo instead of your default one, I don't know why it did not

@khimaros
Copy link
Author

It looks like this was due to bad precedence in $PATH -- the rustup toolchain bin dir was in the $PATH explicitly and came before the cargo bin dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants