Closed carlosb1 closed 6 years ago
Finally, I tried the docker to apply a clean installation, but in the middle of the installation process I receive this:
Compiling raw-cpuid v3.1.0
Compiling hermit-rs v0.3.0 (file:///home/projects/libhermit-rs/librs)
error[E0432]: unresolved import `alloc::heap`
--> src/mm/allocator.rs:36:12
|
36 | use alloc::heap::Layout;
| ^^^^ Could not find `heap` in `alloc`
error[E0432]: unresolved import `core::alloc::Opaque`
--> src/mm/allocator.rs:37:32
|
37 | use core::alloc::{GlobalAlloc, Opaque};
| ^^^^^^ no `Opaque` in `alloc`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0432`.
error: Could not compile `hermit-rs`.
Which operating systems do you use? I tested the packages only on Ubuntu 18.04.
Do you use the latest Rust version (nightly build)?
I see (currently Ubuntu 18.04 only) <- I use the dockerfile from the repository. But it seems that the downloaded rust version didn't work:
# Install Rust toolchain
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
RUN /root/.cargo/bin/cargo install xargo
RUN /root/.cargo/bin/rustup component add rust-src
Excuse for my late response. I din't find to answer your question.
Do you get an error message from https://sh.rustup.rs?
@carlosb1 I revised my scripts (https://github.com/hermitcore/hermit-toolchain) to build the complete toolchain for the Rust-based version of HermitCore. Following steps should work on all Linux-based systems:
$ git clone -b path2rs git@github.com:hermitcore/hermit-toolchain.git
$ ./toolchain.sh x86_64-hermit /home/user/tmp
Afterwards you will find the toolchain in the directory /home/user/tmp
.
I am going to check it. Also, I am in the slack channel
I just updated the master branch. I have forgotten to update the Rust compiler on my system. For our kernel we have to use the compiler from the nightly channel. My code wasn't working with latest version. Now, it should work.
It seems that I ran in the docker image... I will play a little with the project to test it. Does it exist any project roadmap?
Yes, this is missing. I have to cleanup our internal documents. Maybe it is a good starting point for a clear roadmap.
I am following the README steps to install the library but I couldn't. I installed the dependencies that are necessary. Also I added these packages:
sudo apt-get install binutils-hermit newlib-hermit pte-hermit-rs gcc-hermit libhermit-rs apt-get install qemu-system-x86
And finally, I checked that I have installed the library that It gives error: libmpfr-dev - multiple precision floating-point computation developers tools libmpfr4 - multiple precision floating-point computation libgmpv4-dev - Multiprecision arithmetic library developers tools (GCC 4.x compatible) libmpfrc++-dev - multi-precision floating point number class for C++
Anyway, I receive this error: