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 fails on armv7: error[E0308]: mismatched types #83

Open
yurivict opened this issue Nov 27, 2022 · 1 comment
Open

Build fails on armv7: error[E0308]: mismatched types #83

yurivict opened this issue Nov 27, 2022 · 1 comment

Comments

@yurivict
Copy link

   Compiling dotenv v0.15.0
     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=dotenv CARGO_MANIFEST_DIR=/wrkdirs/usr/ports/deskutils/just/work/just-1.6.0/cargo-crates/dotenv-0.15.0 CARGO_PKG_AUTHORS='Noemi Lapresta <[email protected]>:Craig Hills <[email protected]>:Mike Piccolo <[email protected]>:Alice Maz <[email protected]>:Sean Griffin <[email protected]>:Adam Sharp <[email protected]>:Arpad Borsos <[email protected]>' CARGO_PKG_DESCRIPTION='A `dotenv` implementation for Rust' CARGO_PKG_HOMEPAGE='https://github.com/dotenv-rs/dotenv' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=dotenv CARGO_PKG_REPOSITORY='https://github.com/dotenv-rs/dotenv' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.15.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=15 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/wrkdirs/usr/ports/deskutils/just/work/target/release/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name dotenv --edition=2018 /wrkdirs/usr/po
 rts/deskutils/just/work/just-1.6.0/cargo-crates/dotenv-0.15.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C metadata=6c5e365bdf4ca6c0 -C extra-filename=-6c5e365bdf4ca6c0 --out-dir /wrkdirs/usr/ports/deskutils/just/work/target/armv7-unknown-freebsd/release/deps --target armv7-unknown-freebsd -C linker=cc -L dependency=/wrkdirs/usr/ports/deskutils/just/work/target/armv7-unknown-freebsd/release/deps -L dependency=/wrkdirs/usr/ports/deskutils/just/work/target/release/deps --cap-lints warn -C link-arg=-fstack-protector-strong`
warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred
  --> /wrkdirs/usr/ports/deskutils/just/work/just-1.6.0/cargo-crates/dotenv-0.15.0/src/lib.rs:17:23
   | 
17 | use std::sync::{Once, ONCE_INIT};
   |                       ^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred
  --> /wrkdirs/usr/ports/deskutils/just/work/just-1.6.0/cargo-crates/dotenv-0.15.0/src/lib.rs:23:22
   |
23 | static START: Once = ONCE_INIT;
   |                      ^^^^^^^^^
   |
help: replace the use of the deprecated constant
   |
23 | static START: Once = Once::new();
   |                      ~~~~~~~~~~~

warning: `dotenv` (lib) generated 2 warnings
   Compiling target v2.0.0
     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=target CARGO_MANIFEST_DIR=/wrkdirs/usr/ports/deskutils/just/work/just-1.6.0/cargo-crates/target-2.0.0 CARGO_PKG_AUTHORS='Casey Rodarmor <[email protected]>' CARGO_PKG_DESCRIPTION='Get information on compilation target' CARGO_PKG_HOMEPAGE='https://github.com/casey/target' CARGO_PKG_LICENSE=CC0-1.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=target CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=2.0.0 CARGO_PKG_VERSION_MAJOR=2 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/wrkdirs/usr/ports/deskutils/just/work/target/release/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name target /wrkdirs/usr/ports/deskutils/just/work/just-1.6.0/cargo-crates/target-2.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C metadata=545826272a4c6b18 -C ext
 ra-filename=-545826272a4c6b18 --out-dir /wrkdirs/usr/ports/deskutils/just/work/target/armv7-unknown-freebsd/release/deps --target armv7-unknown-freebsd -C linker=cc -L dependency=/wrkdirs/usr/ports/deskutils/just/work/target/armv7-unknown-freebsd/release/deps -L dependency=/wrkdirs/usr/ports/deskutils/just/work/target/release/deps --cap-lints warn -C link-arg=-fstack-protector-strong`
error[E0308]: mismatched types

The error occurred during build of the Just project.

Log: https://pkg-status.freebsd.org/ampere2/data/main-armv7-default/pf323e9d40f68_s41be508d31/logs/just-1.6.0_2.log (IPv6 URL)

rust-1.65.0
OS: FreeBSD 13.1

@LeoniePhiline
Copy link

This crate is unmaintained.
Migrate to https://github.com/allan2/dotenvy

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