Giter Site home page Giter Site logo

Comments (3)

thalesfragoso avatar thalesfragoso commented on May 18, 2024

Hmm, could you try updating this line to 0.4.0:

# alloc-cortex-m = "0.3.5"

from cortex-m-quickstart.

huntc avatar huntc commented on May 18, 2024

Thanks @thalesfragoso . I did that, but then receive:

% cargo build --example allocator
   Compiling linked_list_allocator v0.8.6
   Compiling typenum v1.12.0
   Compiling semver v0.9.0
   Compiling generic-array v0.14.4
   Compiling proc-macro2 v1.0.24
   Compiling cortex-m v0.6.3
   Compiling syn v1.0.42
   Compiling cortex-m-rt v0.6.13
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /Users/huntc/.cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.8.6/src/lib.rs:1:1
  |
1 | #![feature(const_mut_refs)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0554`.
error: could not compile `linked_list_allocator`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

With nightly:

 % cargo +nightly build --example allocator
   Compiling semver-parser v0.7.0
   Compiling version_check v0.9.2
   Compiling cortex-m v0.6.3
   Compiling proc-macro2 v1.0.24
   Compiling stable_deref_trait v1.2.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.42
   Compiling vcell v0.1.2
   Compiling bitfield v0.13.2
   Compiling cortex-m-rt v0.6.13
   Compiling cortex-m-semihosting v0.3.5
   Compiling linked_list_allocator v0.8.6
   Compiling test v0.1.0 (/Users/huntc/Desktop/test/test)
   Compiling r0 v0.2.2
   Compiling panic-halt v0.2.0
   Compiling volatile-register v0.2.0
   Compiling semver v0.9.0
   Compiling generic-array v0.14.4
   Compiling rustc_version v0.2.3
   Compiling bare-metal v0.2.5
   Compiling quote v1.0.7
   Compiling generic-array v0.12.3
   Compiling generic-array v0.13.2
   Compiling as-slice v0.1.4
   Compiling aligned v0.3.4
   Compiling alloc-cortex-m v0.4.0
   Compiling cortex-m-rt-macros v0.1.8
error[E0433]: failed to resolve: use of undeclared crate or module `debug`
  --> examples/allocator.rs:46:5
   |
46 |     debug::exit(debug::EXIT_SUCCESS);
   |     ^^^^^ use of undeclared crate or module `debug`

error[E0433]: failed to resolve: use of undeclared crate or module `debug`
  --> examples/allocator.rs:46:17
   |
46 |     debug::exit(debug::EXIT_SUCCESS);
   |                 ^^^^^ use of undeclared crate or module `debug`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0433`.
error: could not compile `test`

from cortex-m-quickstart.

huntc avatar huntc commented on May 18, 2024

Thank you!

from cortex-m-quickstart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.