prisma / prisma-engines

🚂 Engine components of Prisma ORM
https://www.prisma.io/docs/concepts/components/prisma-engines
Apache License 2.0
1.17k stars 228 forks source link

I got error[E0080] when i try to build on a Raspberry #447

Closed Suniron closed 4 years ago

Suniron commented 4 years ago

Hi,

I got multiples errors [E0080] when i try to build with cargo build or cargo build --release. I have the same resulta on Raspberry 4 4Gb and Raspberry 3b+.

You can see my method bellow: (Install direnv -> Install Rust -> Set PATH env variable to cargo bin's folder -> allow direnv on repo -> launch cargo build)


pi@raspberrypi4:~/development/prisma-engine $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

It will add the cargo, rustc, rustup and other commands to
Cargo's bin directory, located at:

  /home/pi/.cargo/bin

This can be modified with the CARGO_HOME environment variable.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /home/pi/.rustup

This can be modified with the RUSTUP_HOME environment variable.

This path will then be added to your PATH environment variable by
modifying the profile file located at:

  /home/pi/.profile

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:

   default host triple: armv7-unknown-linux-gnueabihf
     default toolchain: stable
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>
info: profile set to 'default'
info: default host triple is armv7-unknown-linux-gnueabihf
info: updating existing rustup installation

Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.

To configure your current shell run source $HOME/.cargo/env
pi@raspberrypi4:~/development/prisma-engine $ source $HOME/.cargo/env
pi@raspberrypi4:~/development/prisma-engine $ cargo build
    Updating crates.io index
    Updating git repository `https://github.com/prisma/cuid-rust`
    Updating git repository `https://github.com/prisma/quaint`
    Updating git repository `https://github.com/prisma/graphql-parser`
    Updating git repository `https://github.com/pimeys/tracing`
  Downloaded percent-encoding v2.1.0
  Downloaded unicode-segmentation v1.6.0
  Downloaded serde_derive v1.0.104
  Downloaded thiserror v1.0.10
  Downloaded url v2.1.1
  Downloaded proc-macro2 v1.0.8
  Downloaded tracing-log v0.1.1
  Downloaded matchers v0.0.1
  Downloaded http v0.2.0
  Downloaded rustc_version v0.2.3
  Downloaded smallvec v0.6.13
  Downloaded jsonrpc-core v14.0.5
  Downloaded tracing-subscriber v0.1.6
  Downloaded ansi_term v0.11.0
  Downloaded async-trait v0.1.22
  Downloaded jsonrpc-core-client v14.0.5
  Downloaded url v1.7.2
  Downloaded pretty_assertions v0.6.1
  Downloaded hyper v0.13.2
  Downloaded futures v0.3.1
  Downloaded lazy_static v1.4.0
  Downloaded uuid v0.8.1
  Downloaded colored v1.9.2
  Downloaded num_cpus v1.12.0
  Downloaded native-tls v0.2.3
  Downloaded bytes v0.5.4
  Downloaded tracing v0.1.12
  Downloaded tracing-futures v0.2.1
  Downloaded jsonrpc-derive v14.0.5
  Downloaded base64 v0.10.1
  Downloaded quote v1.0.2
  Downloaded itertools v0.8.2
  Downloaded backtrace v0.3.43
  Downloaded rand v0.6.5
  Downloaded git2 v0.11.0
  Downloaded chrono v0.4.10
  Downloaded syn v1.0.14
  Downloaded tokio v0.2.11
  Downloaded regex v1.3.4
  Downloaded tracing-serde v0.1.0
  Downloaded tempfile v3.1.0
  Downloaded postgres-native-tls v0.3.0
  Downloaded debug_stub_derive v0.3.0
  Downloaded pest_derive_tmp v2.1.0
  Downloaded bytecount v0.5.1
  Downloaded uuid v0.7.4
  Downloaded metrics v0.12.1
  Downloaded hostname v0.1.5
  Downloaded futures v0.1.29
  Downloaded sharded-slab v0.0.6
  Downloaded clap v2.33.0
  Downloaded petgraph v0.4.13
  Downloaded mobc v0.5.3
  Downloaded rust_decimal v1.1.0
  Downloaded serde v1.0.104
  Downloaded crossbeam-queue v0.2.1
  Downloaded anyhow v1.0.26
  Downloaded log v0.4.8
  Downloaded parking_lot v0.7.1
  Downloaded once_cell v1.3.1
  Downloaded indexmap v1.3.1
  Downloaded tokio-postgres v0.5.1
  Downloaded failure v0.1.6
  Downloaded rusqlite v0.21.0
  Downloaded im v13.0.0
  Downloaded combine v3.8.1
  Downloaded pest_tmp v2.1.1
  Downloaded mysql_async v0.21.1
  Downloaded structopt v0.3.8
  Downloaded tracing-attributes v0.1.6
  Downloaded darling v0.10.2
  Downloaded async-std v0.99.12
  Downloaded tracing-core v0.1.9
  Downloaded serde_json v1.0.45
  Downloaded rust-embed v4.5.0
  Downloaded barrel v0.6.5
  Downloaded autocfg v1.0.0
  Downloaded quote v0.3.15
  Downloaded mio v0.6.21
  Downloaded async-task v1.3.0
  Downloaded twox-hash v1.5.0
  Downloaded futures-timer v2.0.2
  Downloaded ordermap v0.3.5
  Downloaded cfg-if v0.1.10
  Downloaded num-integer v0.1.42
  Downloaded rand_isaac v0.1.1
  Downloaded rand_xorshift v0.1.1
  Downloaded aho-corasick v0.7.7
  Downloaded atty v0.2.14
  Downloaded rand_pcg v0.1.2
  Downloaded tokio-macros v0.2.4
  Downloaded rand_core v0.4.2
  Downloaded thiserror-impl v1.0.10
  Downloaded tokio-tls v0.3.0
  Downloaded rand_os v0.1.3
  Downloaded libc v0.2.66
  Downloaded mio-uds v0.6.7
  Downloaded fixedbitset v0.1.9
  Downloaded typenum v1.11.2
  Downloaded bitflags v1.2.1
  Downloaded openssl-sys v0.9.54
  Downloaded byteorder v1.3.2
  Downloaded parking_lot_core v0.4.0
  Downloaded strsim v0.8.0
  Downloaded percent-encoding v1.0.1
  Downloaded pin-project-lite v0.1.4
  Downloaded matches v0.1.8
  Downloaded rand v0.7.3
  Downloaded fallible-streaming-iterator v0.1.9
  Downloaded mio-named-pipes v0.1.6
  Downloaded maybe-uninit v2.0.0
  Downloaded thread_local v1.0.1
  Downloaded iovec v0.1.4
  Downloaded lru-cache v0.1.2
  Downloaded http-body v0.3.1
  Downloaded tower-service v0.3.0
  Downloaded vec_map v0.8.1
  Downloaded proc-macro-crate v0.1.4
  Downloaded jsonrpc-client-transports v14.0.5
  Downloaded owning_ref v0.4.0
  Downloaded remove_dir_all v0.5.2
  Downloaded darling_macro v0.10.2
  Downloaded textwrap v0.11.0
  Downloaded h2 v0.2.1
  Downloaded structopt-derive v0.4.1
  Downloaded futures-task v0.3.1
  Downloaded itoa v0.4.5
  Downloaded parking_lot v0.10.0
  Downloaded futures-channel v0.3.1
  Downloaded unicode-width v0.1.7
  Downloaded darling_core v0.10.2
  Downloaded httparse v1.3.4
  Downloaded crossbeam-deque v0.7.2
  Downloaded postgres v0.17.0
  Downloaded regex-automata v0.1.8
  Downloaded postgres-types v0.1.0
  Downloaded fnv v1.0.6
  Downloaded regex-syntax v0.6.14
  Downloaded tokio-util v0.2.0
  Downloaded postgres-protocol v0.5.0
  Downloaded want v0.3.0
  Downloaded fallible-iterator v0.2.0
  Downloaded metrics-core v0.5.2
  Downloaded pest_generator_tmp v2.1.0
  Downloaded difference v2.0.0
  Downloaded futures-util v0.3.1
  Downloaded openssl v0.10.27
  Downloaded broadcaster v0.2.6
  Downloaded ascii v0.9.3
  Downloaded idna v0.2.0
  Downloaded idna v0.1.5
  Downloaded futures-timer v1.0.3
  Downloaded sized-chunks v0.3.1
  Downloaded mysql_common v0.20.1
  Downloaded libgit2-sys v0.10.0
  Downloaded backtrace-sys v0.1.32
  Downloaded libsqlite3-sys v0.17.1
  Downloaded futures-core v0.3.1
  Downloaded pin-project v0.4.8
  Downloaded unicode-xid v0.2.0
  Downloaded net2 v0.2.33
  Downloaded unreachable v1.0.0
  Downloaded num v0.2.1
  Downloaded openssl-probe v0.1.2
  Downloaded ucd-trie v0.1.2
  Downloaded syn v0.11.11
  Downloaded phf v0.8.0
  Downloaded crossbeam v0.7.3
  Downloaded rand_jitter v0.1.4
  Downloaded either v1.5.3
  Downloaded autocfg v0.1.7
  Downloaded failure_derive v0.1.6
  Downloaded slab v0.4.2
  Downloaded crossbeam-utils v0.6.6
  Downloaded async-macros v1.0.0
  Downloaded crossbeam-channel v0.3.9
  Downloaded semver v0.9.0
  Downloaded kv-log-macro v1.0.4
  Downloaded rand_hc v0.1.0
  Downloaded rand_chacha v0.1.1
  Downloaded futures-executor v0.3.1
  Downloaded futures-sink v0.3.1
  Downloaded rustc-demangle v0.1.16
  Downloaded lock_api v0.1.5
  Downloaded pin-utils v0.1.0-alpha.4
  Downloaded crossbeam-utils v0.7.0
  Downloaded num-traits v0.2.11
  Downloaded memchr v2.3.0
  Downloaded time v0.1.42
  Downloaded futures-io v0.3.1
  Downloaded synom v0.11.3
  Downloaded scopeguard v0.3.3
  Downloaded semver-parser v0.7.0
  Downloaded crossbeam-epoch v0.8.0
  Downloaded pkg-config v0.3.17
  Downloaded sha2 v0.8.1
  Downloaded num-complex v0.2.4
  Downloaded futures-macro v0.3.1
  Downloaded num-iter v0.1.40
  Downloaded unicode-bidi v0.3.4
  Downloaded jsonrpc-pubsub v14.0.5
  Downloaded lock_api v0.3.3
  Downloaded hmac v0.7.1
  Downloaded try-lock v0.2.2
  Downloaded void v1.0.2
  Downloaded pin-project-internal v0.4.8
  Downloaded walkdir v2.3.1
  Downloaded rand_chacha v0.2.1
  Downloaded proc-macro-error v0.4.6
  Downloaded toml v0.5.6
  Downloaded heck v0.3.1
  Downloaded base64 v0.11.0
  Downloaded futures-util-preview v0.3.0-alpha.19
  Downloaded proc-macro2 v0.4.30
  Downloaded bigdecimal v0.1.0
  Downloaded sha1 v0.6.0
  Downloaded linked-hash-map v0.5.2
  Downloaded md5 v0.7.0
  Downloaded stringprep v0.1.2
  Downloaded getrandom v0.1.14
  Downloaded unicode-normalization v0.1.12
  Downloaded futures-sink-preview v0.3.0-alpha.19
  Downloaded syn v0.15.44
  Downloaded stable_deref_trait v1.1.1
  Downloaded synstructure v0.12.3
  Downloaded strsim v0.9.3
  Downloaded quote v0.6.13
  Downloaded libz-sys v1.0.25
  Downloaded utf8-ranges v1.0.4
  Downloaded num-bigint v0.2.6
  Downloaded lexical v4.0.0
  Downloaded pest_meta_tmp v2.1.1
  Downloaded rand_core v0.3.1
  Downloaded parking_lot_core v0.7.0
  Downloaded ident_case v1.0.1
  Downloaded ryu v1.0.2
  Downloaded generic-array v0.13.2
  Downloaded rand_core v0.5.1
  Downloaded crossbeam-channel v0.4.0
  Downloaded num-rational v0.2.3
  Downloaded futures-core-preview v0.3.0-alpha.19
  Downloaded foreign-types v0.3.2
  Downloaded phf_shared v0.8.0
  Downloaded parking_lot v0.9.0
  Downloaded futures-channel-preview v0.3.0-alpha.19
  Downloaded cc v1.0.50
  Downloaded proc-macro-nested v0.1.3
  Downloaded proc-macro-hack v0.5.11
  Downloaded unicode-xid v0.0.4
  Downloaded rust-embed-impl v4.5.0
  Downloaded parking_lot_core v0.6.2
  Downloaded memoffset v0.5.3
  Downloaded c2-chacha v0.2.3
  Downloaded same-file v1.0.6
  Downloaded rustversion v1.0.2
  Downloaded proc-macro-error-attr v0.4.6
  Downloaded digest v0.8.1
  Downloaded unicode-xid v0.1.0
  Downloaded foreign-types-shared v0.1.1
  Downloaded fake-simd v0.1.2
  Downloaded smallvec v1.2.0
  Downloaded maplit v1.0.2
  Downloaded jobserver v0.1.21
  Downloaded scopeguard v1.0.0
  Downloaded opaque-debug v0.2.3
  Downloaded crypto-mac v0.7.0
  Downloaded block-buffer v0.7.3
  Downloaded flate2 v1.0.13
  Downloaded ppv-lite86 v0.2.6
  Downloaded syn-mid v0.5.0
  Downloaded subtle v1.0.0
  Downloaded generic-array v0.12.3
  Downloaded siphasher v0.3.1
  Downloaded crc32fast v1.2.0
  Downloaded byte-tools v0.3.1
  Downloaded block-padding v0.1.5
  Downloaded lexical-core v0.6.2
  Downloaded arrayvec v0.4.12
  Downloaded static_assertions v0.3.4
  Downloaded nodrop v0.1.14
   Compiling libc v0.2.66
   Compiling proc-macro2 v1.0.8
   Compiling unicode-xid v0.2.0
   Compiling syn v1.0.14
   Compiling cfg-if v0.1.10
   Compiling autocfg v1.0.0
   Compiling lazy_static v1.4.0
   Compiling semver-parser v0.7.0
   Compiling serde v1.0.104
   Compiling memchr v2.3.0
   Compiling log v0.4.8
   Compiling autocfg v0.1.7
   Compiling pkg-config v0.3.17
   Compiling slab v0.4.2
   Compiling fnv v1.0.6
   Compiling typenum v1.11.2
   Compiling smallvec v1.2.0
   Compiling byteorder v1.3.2
   Compiling pin-utils v0.1.0-alpha.4
   Compiling ryu v1.0.2
   Compiling futures-core v0.3.1
   Compiling itoa v0.4.5
   Compiling scopeguard v1.0.0
   Compiling bytes v0.5.4
   Compiling futures v0.1.29
   Compiling matches v0.1.8
   Compiling getrandom v0.1.14
   Compiling proc-macro-nested v0.1.3
   Compiling futures-sink v0.3.1
   Compiling pin-project-lite v0.1.4
   Compiling ppv-lite86 v0.2.6
   Compiling futures-io v0.3.1
   Compiling futures-task v0.3.1
   Compiling maybe-uninit v2.0.0
   Compiling bitflags v1.2.1
   Compiling byte-tools v0.3.1
   Compiling subtle v1.0.0
   Compiling regex-syntax v0.6.14
   Compiling fallible-iterator v0.2.0
   Compiling fake-simd v0.1.2
   Compiling opaque-debug v0.2.3
   Compiling rand_core v0.4.2
   Compiling failure_derive v0.1.6
   Compiling percent-encoding v2.1.0
   Compiling base64 v0.11.0
   Compiling md5 v0.7.0
   Compiling siphasher v0.3.1
   Compiling rustc-demangle v0.1.16
   Compiling foreign-types-shared v0.1.1
   Compiling arrayvec v0.4.12
   Compiling openssl v0.10.27
   Compiling unicode-xid v0.0.4
   Compiling nodrop v0.1.14
   Compiling native-tls v0.2.3
   Compiling crc32fast v1.2.0
   Compiling openssl-probe v0.1.2
   Compiling quote v0.3.15
   Compiling static_assertions v0.3.4
   Compiling stable_deref_trait v1.1.1
   Compiling linked-hash-map v0.5.2
   Compiling metrics v0.12.1
   Compiling sha1 v0.6.0
   Compiling proc-macro2 v0.4.30
   Compiling mio-named-pipes v0.1.6
   Compiling futures-timer v2.0.2
   Compiling fallible-streaming-iterator v0.1.9
   Compiling metrics-core v0.5.2
   Compiling unicode-xid v0.1.0
   Compiling syn v0.15.44
   Compiling unicode-segmentation v1.6.0
   Compiling scopeguard v0.3.3
   Compiling ucd-trie v0.1.2
   Compiling strsim v0.9.3
   Compiling ident_case v1.0.1
   Compiling maplit v1.0.2
   Compiling once_cell v1.3.1
   Compiling bytecount v0.5.1
   Compiling percent-encoding v1.0.1
   Compiling either v1.5.3
   Compiling ansi_term v0.11.0
   Compiling rustversion v1.0.2
   Compiling utf8-ranges v1.0.4
   Compiling anyhow v1.0.26
   Compiling futures-core-preview v0.3.0-alpha.19
   Compiling unicode-width v0.1.7
   Compiling strsim v0.8.0
   Compiling vec_map v0.8.1
   Compiling futures-sink-preview v0.3.0-alpha.19
   Compiling barrel v0.6.5
   Compiling httparse v1.3.4
   Compiling same-file v1.0.6
   Compiling void v1.0.2
   Compiling try-lock v0.2.2
   Compiling ascii v0.9.3
   Compiling ordermap v0.3.5
   Compiling fixedbitset v0.1.9
   Compiling tower-service v0.3.0
   Compiling introspection-core v0.1.0 (/home/pi/development/prisma-engine/introspection-engine/core)
   Compiling difference v2.0.0
   Compiling prisma-fmt v0.1.0 (/home/pi/development/prisma-engine/prisma-fmt)
   Compiling remove_dir_all v0.5.2
   Compiling migration-engine-cli v0.1.0 (/home/pi/development/prisma-engine/migration-engine/cli)
   Compiling tracing-core v0.1.9
   Compiling thread_local v1.0.1
   Compiling crossbeam-utils v0.6.6
   Compiling sharded-slab v0.0.6
   Compiling semver v0.9.0
   Compiling num-traits v0.2.11
   Compiling num-integer v0.1.42
   Compiling indexmap v1.3.1
   Compiling num-bigint v0.2.6
   Compiling num-complex v0.2.4
   Compiling num-rational v0.2.3
   Compiling num-iter v0.1.40
   Compiling unicode-normalization v0.1.12
   Compiling crossbeam-utils v0.7.0
   Compiling crossbeam-epoch v0.8.0
   Compiling rand_pcg v0.1.2
   Compiling rand_chacha v0.1.1
   Compiling rand v0.6.5
   Compiling lock_api v0.3.3
   Compiling unicode-bidi v0.3.4
   Compiling futures-channel v0.3.1
   Compiling http v0.2.0
   Compiling c2-chacha v0.2.3
   Compiling block-padding v0.1.5
   Compiling rand_core v0.3.1
   Compiling rand_jitter v0.1.4
   Compiling phf_shared v0.8.0
   Compiling foreign-types v0.3.2
   Compiling synom v0.11.3
   Compiling owning_ref v0.4.0
   Compiling lru-cache v0.1.2
   Compiling pest_tmp v2.1.1
   Compiling heck v0.3.1
   Compiling itertools v0.8.2
   Compiling futures-timer v1.0.3
   Compiling async-macros v1.0.0
   Compiling textwrap v0.11.0
   Compiling futures-channel-preview v0.3.0-alpha.19
   Compiling futures-util-preview v0.3.0-alpha.19
   Compiling walkdir v2.3.1
   Compiling unreachable v1.0.0
   Compiling petgraph v0.4.13
   Compiling pretty_assertions v0.6.1
   Compiling crossbeam-channel v0.3.9
   Compiling rustc_version v0.2.3
   Compiling stringprep v0.1.2
   Compiling idna v0.2.0
   Compiling idna v0.1.5
   Compiling rand_xorshift v0.1.1
   Compiling rand_isaac v0.1.1
   Compiling rand_hc v0.1.0
   Compiling phf v0.8.0
   Compiling syn v0.11.11
   Compiling lock_api v0.1.5
   Compiling pest_meta_tmp v2.1.1
   Compiling http-body v0.3.1
   Compiling quote v1.0.2
   Compiling jobserver v0.1.21
   Compiling iovec v0.1.4
   Compiling net2 v0.2.33
   Compiling num_cpus v1.12.0
   Compiling time v0.1.42
   Compiling parking_lot_core v0.7.0
   Compiling rand_os v0.1.3
   Compiling atty v0.2.14
   Compiling hostname v0.1.5
   Compiling async-task v1.3.0
   Compiling memoffset v0.5.3
   Compiling lexical-core v0.6.2
   Compiling lexical v4.0.0
   Compiling parking_lot_core v0.4.0
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
   Compiling im v13.0.0
   Compiling prisma v0.1.0 (/home/pi/development/prisma-engine/query-engine/prisma)
   Compiling aho-corasick v0.7.7
   Compiling tracing-log v0.1.1
   Compiling kv-log-macro v1.0.4
   Compiling want v0.3.0
   Compiling regex-automata v0.1.8
   Compiling combine v3.8.1
   Compiling base64 v0.10.1
   Compiling generic-array v0.12.3
   Compiling generic-array v0.13.2
   Compiling sized-chunks v0.3.1
   Compiling smallvec v0.6.13
   Compiling url v2.1.1
   Compiling url v1.7.2
   Compiling quote v0.6.13
   Compiling cc v1.0.50
   Compiling mio v0.6.21
   Compiling rand_core v0.5.1
   Compiling debug_stub_derive v0.3.0
   Compiling rust-embed-impl v4.5.0
   Compiling parking_lot v0.10.0
   Compiling colored v1.9.2
   Compiling clap v2.33.0
   Compiling crossbeam-queue v0.2.1
   Compiling crossbeam-channel v0.4.0
   Compiling regex v1.3.4
   Compiling matchers v0.0.1
   Compiling digest v0.8.1
   Compiling block-buffer v0.7.3
   Compiling crypto-mac v0.7.0
   Compiling mio-uds v0.6.7
   Compiling rand_chacha v0.2.1
   Compiling backtrace-sys v0.1.32
   Compiling openssl-sys v0.9.54
   Compiling libz-sys v1.0.25
   Compiling libsqlite3-sys v0.17.1
   Compiling libgit2-sys v0.10.0
   Compiling rust-embed v4.5.0
   Compiling synstructure v0.12.3
   Compiling darling_core v0.10.2
   Compiling syn-mid v0.5.0
   Compiling sha2 v0.8.1
   Compiling hmac v0.7.1
   Compiling prisma-inflector v0.1.0 (/home/pi/development/prisma-engine/libs/prisma-inflector)
   Compiling pest_generator_tmp v2.1.0
   Compiling rand v0.7.3
   Compiling serde_derive v1.0.104
   Compiling proc-macro-hack v0.5.11
   Compiling tokio-macros v0.2.4
   Compiling pin-project-internal v0.4.8
   Compiling tracing-attributes v0.1.6
   Compiling thiserror-impl v1.0.10
   Compiling async-trait v0.1.22
   Compiling parking_lot v0.7.1
   Compiling pest_derive_tmp v2.1.0
   Compiling postgres-protocol v0.5.0
   Compiling twox-hash v1.5.0
   Compiling tempfile v3.1.0
   Compiling futures-macro v0.3.1
   Compiling tokio v0.2.11
   Compiling darling_macro v0.10.2
   Compiling tracing v0.1.12
   Compiling thiserror v1.0.10
   Compiling pin-project v0.4.8
   Compiling proc-macro-error v0.4.6
   Compiling proc-macro-error-attr v0.4.6
   Compiling crossbeam-deque v0.7.2
   Compiling broadcaster v0.2.6
   Compiling cuid v0.1.0 (https://github.com/prisma/cuid-rust#d41c6298)
   Compiling num v0.2.1
   Compiling tracing-futures v0.2.1
   Compiling darling v0.10.2
   Compiling futures-util v0.3.1
   Compiling flate2 v1.0.13
   Compiling crossbeam v0.7.3
   Compiling async-std v0.99.12
   Compiling user-facing-error-macros v0.1.0 (/home/pi/development/prisma-engine/libs/user-facing-error-macros)
   Compiling test-macros v0.1.0 (/home/pi/development/prisma-engine/libs/test-macros)
   Compiling tokio-util v0.2.0
   Compiling futures-executor v0.3.1
   Compiling chrono v0.4.10
   Compiling uuid v0.8.1
   Compiling bigdecimal v0.1.0
   Compiling uuid v0.7.4
   Compiling toml v0.5.6
   Compiling tracing-serde v0.1.0
   Compiling structopt-derive v0.4.1
   Compiling futures v0.3.1
   Compiling tokio-tls v0.3.0
   Compiling serde_json v1.0.45
   Compiling h2 v0.2.1
   Compiling datamodel-connector v0.1.0 (/home/pi/development/prisma-engine/libs/datamodel/connectors/datamodel-connector)
   Compiling tracing-subscriber v0.1.6
   Compiling mobc v0.5.3
   Compiling proc-macro-crate v0.1.4
   Compiling postgres-types v0.1.0
   Compiling jsonrpc-core v14.0.5
   Compiling tracing-subscriber v0.2.0-alpha.1 (https://github.com/pimeys/tracing?branch=fix-type-annotations#44db6e23)
   Compiling hyper v0.13.2
error[E0080]: could not evaluate constant
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/sharded-slab-0.0.6/src/page/slot.rs:54:24
   |
54 |     const LEN: usize = (cfg::WIDTH - C::RESERVED_BITS) - Self::SHIFT;
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to subtract with overflow

error[E0080]: could not evaluate constant
   --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/sharded-slab-0.0.6/src/lib.rs:691:26
    |
691 |         let shift = 1 << (Self::LEN - 1);
    |                          ^^^^^^^^^^^^^^^ referenced constant has errors

error[E0080]: could not evaluate constant
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/sharded-slab-0.0.6/src/cfg.rs:40:30
   |
40 |     const USED_BITS: usize = Generation::<Self>::LEN + Generation::<Self>::SHIFT;
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors

error[E0080]: could not evaluate constant
   --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/sharded-slab-0.0.6/src/cfg.rs:142:34
    |
142 |             .field("used_bits", &C::USED_BITS)
    |                                  ^^^^^^^^^^^^ referenced constant has errors

error[E0080]: could not evaluate constant
   --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/sharded-slab-0.0.6/src/lib.rs:704:25
    |
704 |     const MASK: usize = Self::BITS << Self::SHIFT;
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors

error[E0080]: could not evaluate constant
   --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/sharded-slab-0.0.6/src/page/slot.rs:560:24
    |
560 |     const LEN: usize = Generation::<C>::LEN;
    |                        ^^^^^^^^^^^^^^^^^^^^ referenced constant has errors

error[E0080]: could not evaluate constant
   --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/sharded-slab-0.0.6/src/page/slot.rs:495:37
    |
495 |     const LEN: usize = cfg::WIDTH - (Lifecycle::<C>::LEN + Generation::<C>::LEN);
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors

error[E0080]: could not evaluate constant
   --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/sharded-slab-0.0.6/src/lib.rs:699:26
    |
699 |     const SHIFT: usize = Self::Prev::SHIFT + Self::Prev::LEN;
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors

error: aborting due to 8 previous errors

For more information about this error, try `rustc --explain E0080`.
error: could not compile `tracing-subscriber`.
warning: build failed, waiting for other jobs to finish...
error: build failed```

Could you help me please ? :-)
Suniron commented 4 years ago

My rust version is 1.41.0

Suniron commented 4 years ago

Please who can update sharded-slab to 0.0.8?

Because this bug is fixed on new version of this.: https://github.com/hawkw/sharded-slab/commit/74d42dd181c805bf9b9a492357fb0e87f1d77c5b

Thank's a lot :)

radicand commented 4 years ago

@Suniron I ran into this earlier and added the below to Cargo.toml to overcome it:

[profile.release]
codegen-units=1

I can't remember if a 64bit toolchain is needed as well - but try the above and check first.

Suniron commented 4 years ago

I solved this with a fresh install of a 64 bits Linux (Ubuntu server)