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

Fechado
5 anos atrás abertas por khimaros · 5 comentários
khimaros comentou 5 anos atrás (Migrado de github.com)
$ 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`.
  • Plume version: HEAD is now at 570d7fe Add markdown support for summary (#482)
  • Operating system: Debian Stretch (with Backports)
``` $ 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`. ``` - **Plume version:** HEAD is now at 570d7fe Add markdown support for summary (#482) - **Operating system:** Debian Stretch (with Backports)
khimaros comentou 5 anos atrás (Migrado de github.com)

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.

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 comentou 5 anos atrás (Migrado de github.com)
Closing. See https://github.com/Plume-org/gettext-macros/issues/7
khimaros comentou 5 anos atrás (Migrado de github.com)

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

However, I'm now bumping into https://github.com/rust-lang/rust/issues/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?

I was able to resolve the gettext failure, as mentioned above. However, I'm now bumping into https://github.com/rust-lang/rust/issues/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?
Proprietário

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

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 comentou 5 anos atrás (Migrado de github.com)

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.

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.
Acesse para participar desta conversação.
Sem marco
Sem responsável
2 participante(s)
Notificações
Data limite
A data limite é inválida ou está fora do intervalo. Por favor, use o formato 'dd/mm/aaaa'.

Data limite não informada.

Dependências

Nenhuma dependência definida.

Referência: Plume/Plume#487
Carregando…
Ainda não há conteúdo.