bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.27k stars 3.58k forks source link

Getting Started Guide Fails #1374

Closed JimLynchCodes closed 3 years ago

JimLynchCodes commented 3 years ago

on macOS 10.15.3

bevy-test (master) ⚡git clone https://github.com/bevyengine/bevy
Cloning into 'bevy'...
remote: Enumerating objects: 27175, done.
remote: Total 27175 (delta 0), reused 0 (delta 0), pack-reused 27175
Receiving objects: 100% (27175/27175), 32.03 MiB | 15.10 MiB/s, done.
Resolving deltas: 100% (17309/17309), done.
    bevy-test (master) ⚡cd bevy/
bevy (master) ⚡cargo run --example breakout
    Updating crates.io index
  Downloaded async-executor v1.4.0
  Downloaded ahash v0.6.3
  Downloaded rand v0.8.3
  Downloaded smallvec v1.6.1
  Downloaded downcast-rs v1.2.0
  Downloaded instant v0.1.9
  Downloaded Inflector v0.11.4
  Downloaded gilrs v0.8.0
  Downloaded spirv-reflect v0.2.3
  Downloaded find-crate v0.6.3
  Downloaded uuid v0.8.2
  Downloaded event-listener v2.5.1
  Downloaded async-channel v1.5.1
  Downloaded futures-lite v1.11.3
  Downloaded libloading v0.6.7
  Downloaded notify v5.0.0-pre.5
  Downloaded thiserror v1.0.23
  Downloaded base64 v0.13.0
  Downloaded num_cpus v1.13.0
  Downloaded quote v1.0.8
  Downloaded hex v0.4.2
  Downloaded guillotiere v0.6.0
  Downloaded erased-serde v0.3.13
  Downloaded rectangle-pack v0.2.0
  Downloaded hexasphere v3.1.0
  Downloaded gltf v0.15.2
  Downloaded stretch v0.3.2
  Downloaded crossbeam-utils v0.7.2
  Downloaded once_cell v1.5.2
  Downloaded tracing v0.1.22
  Downloaded tracing-subscriber v0.2.15
  Downloaded serde v1.0.123
  Downloaded glyph_brush_layout v0.2.1
  Downloaded fixedbitset v0.3.2
  Downloaded wgpu v0.7.0
  Downloaded crossbeam-channel v0.4.4
  Downloaded ron v0.6.4
  Downloaded parking_lot v0.11.1
  Downloaded glam v0.12.0
  Downloaded fxhash v0.2.1
  Downloaded proc-macro2 v1.0.24
  Downloaded anyhow v1.0.38
  Downloaded bitflags v1.2.1
  Downloaded image v0.23.12
  Downloaded syn v1.0.60
  Downloaded winit v0.24.0
  Downloaded ab_glyph v0.2.8
  Downloaded rodio v0.13.0
  Downloaded unicode-xid v0.2.1
  Downloaded futures-core v0.3.12
  Downloaded fastrand v1.4.0
  Downloaded futures-io v0.3.12
  Downloaded tracing-core v0.1.17
  Downloaded waker-fn v1.1.0
  Downloaded rand_core v0.6.1
  Downloaded thiserror-impl v1.0.23
  Downloaded tracing-attributes v0.1.11
  Downloaded maybe-uninit v2.0.0
  Downloaded sharded-slab v0.1.1
  Downloaded anymap v0.12.1
  Downloaded version_check v0.9.2
  Downloaded tracing-log v0.1.1
  Downloaded filetime v0.2.14
  Downloaded autocfg v1.0.1
  Downloaded serde_json v1.0.61
  Downloaded num-rational v0.3.2
  Downloaded num-traits v0.2.14
  Downloaded num-iter v0.1.42
  Downloaded png v0.16.8
  Downloaded spirv_headers v1.5.0
  Downloaded cc v1.0.66
  Downloaded approx v0.4.0
  Downloaded raw-window-handle v0.3.3
  Downloaded arrayvec v0.5.2
  Downloaded vec_map v0.8.2
  Downloaded chrono v0.4.19
  Downloaded crossbeam-channel v0.5.0
  Downloaded wgpu-core v0.7.0
  Downloaded glam v0.11.3
  Downloaded scoped_threadpool v0.1.9
  Downloaded color_quant v1.1.0
  Downloaded wgpu-types v0.7.0
  Downloaded fsevent-sys v3.0.2
  Downloaded svg_fmt v0.4.1
  Downloaded gltf-json v0.15.2
  Downloaded walkdir v2.3.1
  Downloaded fsevent v2.0.2
  Downloaded bytemuck v1.5.0
  Downloaded log v0.4.14
  Downloaded fnv v1.0.7
  Downloaded getrandom v0.2.2
  Downloaded matchers v0.0.1
  Downloaded ansi_term v0.12.1
  Downloaded rand_chacha v0.3.0
  Downloaded tracing-serde v0.1.2
  Downloaded thread_local v1.1.2
  Downloaded parking_lot_core v0.8.2
  Downloaded lock_api v0.4.2
  Downloaded pin-project-lite v0.2.4
  Downloaded libm v0.1.4
  Downloaded xi-unicode v0.3.0
  Downloaded euclid v0.22.1
  Downloaded regex v1.4.3
  Downloaded serde_derive v1.0.123
  Downloaded byteorder v1.4.2
  Downloaded cfg-if v1.0.0
  Downloaded concurrent-queue v1.2.2
  Downloaded parking v2.0.0
  Downloaded memchr v2.3.4
  Downloaded vec-arena v1.0.0
  Downloaded async-task v4.0.3
  Downloaded toml v0.5.8
  Downloaded libc v0.2.84
  Downloaded gilrs-core v0.3.0
  Downloaded crc32fast v1.2.1
  Downloaded jobserver v0.1.21
  Downloaded core-foundation v0.9.1
  Downloaded miniz_oxide v0.3.7
  Downloaded core-video-sys v0.1.4
  Downloaded core-graphics v0.22.2
  Downloaded objc v0.2.7
  Downloaded ab_glyph_rasterizer v0.1.4
  Downloaded gfx-backend-empty v0.7.0
  Downloaded cfg_aliases v0.1.1
  Downloaded gpu-alloc v0.3.0
  Downloaded crossbeam-utils v0.8.1
  Downloaded gfx-hal v0.7.0
  Downloaded num-integer v0.1.44
  Downloaded cache-padded v1.1.1
  Downloaded dispatch v0.2.0
  Downloaded cocoa v0.24.0
  Downloaded same-file v1.0.6
  Downloaded gpu-descriptor v0.1.0
  Downloaded ryu v1.0.5
  Downloaded aho-corasick v0.7.15
  Downloaded ppv-lite86 v0.2.10
  Downloaded itoa v0.4.7
  Downloaded time v0.1.43
  Downloaded scopeguard v1.1.0
  Downloaded naga v0.3.1
  Downloaded gfx-backend-metal v0.7.0
  Downloaded cpal v0.13.1
  Downloaded copyless v0.1.5
  Downloaded owned_ttf_parser v0.10.0
  Downloaded gltf-derive v0.15.2
  Downloaded minimp3 v0.5.1
  Downloaded deflate v0.8.6
  Downloaded regex-automata v0.1.9
  Downloaded regex-syntax v0.6.22
  Downloaded foreign-types v0.3.2
  Downloaded adler32 v1.2.0
  Downloaded core-foundation-sys v0.8.2
  Downloaded bit-set v0.5.2
  Downloaded core-foundation-sys v0.7.0
  Downloaded gpu-descriptor-types v0.1.1
  Downloaded gpu-alloc-types v0.2.0
  Downloaded core-graphics-types v0.1.1
  Downloaded core-graphics v0.19.2
  Downloaded storage-map v0.3.0
  Downloaded hashbrown v0.9.1
  Downloaded range-alloc v0.1.2
  Downloaded minimp3-sys v0.3.2
  Downloaded coreaudio-rs v0.9.1
  Downloaded objc_exception v0.1.2
  Downloaded malloc_buf v0.0.6
  Downloaded cocoa-foundation v0.1.0
  Downloaded gfx-auxil v0.8.0
  Downloaded block v0.1.6
  Downloaded core-foundation-sys v0.6.2
  Downloaded core-foundation v0.6.4
  Downloaded inflections v1.1.1
  Downloaded spirv_cross v0.23.0
  Downloaded metal v0.21.0
  Downloaded petgraph v0.5.1
  Downloaded io-kit-sys v0.1.0
  Downloaded slice-deque v0.3.0
  Downloaded bevy-glsl-to-spirv v0.2.1
  Downloaded core-foundation v0.7.0
  Downloaded ahash v0.4.7
  Downloaded fixedbitset v0.2.0
  Downloaded mach v0.2.3
  Downloaded coreaudio-sys v0.2.8
  Downloaded indexmap v1.6.1
  Downloaded bit-vec v0.6.3
  Downloaded foreign-types-shared v0.1.1
  Downloaded bindgen v0.56.0
  Downloaded lazycell v1.3.0
  Downloaded shlex v0.1.1
  Downloaded rustc-hash v1.1.0
  Downloaded peeking_take_while v0.1.2
  Downloaded clang-sys v1.0.3
  Downloaded cexpr v0.4.0
  Downloaded nom v5.1.2
  Downloaded glob v0.3.0
  Downloaded mach v0.3.2
  Downloaded ttf-parser v0.10.1
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling serde_derive v1.0.123
   Compiling libc v0.2.84
   Compiling serde v1.0.123
   Compiling memchr v2.3.4
   Compiling getrandom v0.2.2
   Compiling cfg-if v1.0.0
   Compiling version_check v0.9.2
   Compiling pin-project-lite v0.2.4
   Compiling lazy_static v1.4.0
   Compiling futures-core v0.3.12
   Compiling cache-padded v1.1.1
   Compiling fastrand v1.4.0
   Compiling waker-fn v1.1.0
   Compiling parking v2.0.0
   Compiling futures-io v0.3.12
error[E0658]: use of unstable library feature 'checked_duration_since'
   --> /Users/jim/.cargo/registry/src/github.com-1ecc6299db9ec823/parking-2.0.0/src/lib.rs:144:32
    |
144 |             .park(Some(instant.saturating_duration_since(Instant::now())))
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/58402

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `parking`.
warning: build failed, waiting for other jobs to finish...
error: build failed
bjorn3 commented 3 years ago

Your rustc is probably too old. This function was stabilized in 1.39.0. Try updating rustc,

JimLynchCodes commented 3 years ago

thanks @bjorn3

After running rustup update I can successfully start the examples. 👍

malachid commented 1 year ago

For anyone running into this still... I ran into this error today with an updated rust rustc 1.65.0 (897e37553 2022-11-02)

The only way I could get a new project with the bevy dependency to run was to switch to nightly.