Giter VIP home page Giter VIP logo

Comments (4)

luojia65 avatar luojia65 commented on May 24, 2024

Build with riscv64imac target would solve the problem. And yes I should mark them in readme file, as it would help to solve the problem. :)

from rustsbi.

tommythorn avatar tommythorn commented on May 24, 2024

Thanks @luojia65. Just FYI, I got

$ cargo build --target riscv64imac-unknown-none-elf
   Compiling memchr v2.4.1
   Compiling regex-syntax v0.6.25
...
   Compiling rustsbi v0.2.0-alpha.9 (/home/tommy/projects/chipsalliance/workloads/rustsbi)                              
error[E0658]: use of unstable library feature 'asm': inline assembly is not stable enough for use and is subject to change                
  --> src/hart_mask.rs:73:13
   |                                                                                                                    
73 |             core::arch::asm!("                                                                                     
   |             ^^^^^^^^^^^^^^^                                                                                        
   |                                                                                                                    
   = note: see issue #72016 <https://github.com/rust-lang/rust/issues/72016> for more information
   = help: add `#![feature(asm)]` to the crate attributes to enable     
...

and a lot more like this. It seems I have to use nightly, but I failed to figure out how to do that without making nightly the default (via rustup default nightly).

from rustsbi.

luojia65 avatar luojia65 commented on May 24, 2024

@tommythorn You may need to use a nightly newer than 2021-12-15. That nightly includes a stabilization of asm! macro which would land in future 1.59.0 stable (would be MSRV of current project).
I'd mark that in readme file as well.

from rustsbi.

luojia65 avatar luojia65 commented on May 24, 2024

Added compile time hint in commit 1b3c56f

from rustsbi.

Related Issues (13)

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.