-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work on Raspberry Pi inside docker container "compiler may have been built without the profiler runtime" #508
Comments
You need the Rust profiler runtime, I don't know if it's available for armv7-unknown-linux-gnueabihf, maybe you need to have a custom Rust build. |
I imagine the same happens with source-based coverage, |
yes, it seems to be the same:
@marco-c As I am new to Rust, can you point me to some instructions how to crete my own custom Rust build? In the meantime I will check against current docker-images, to make sure this issue still exists. |
Running in a freshly built docker-container:
So all it comes down is that the docker-images for 32bit ARM do not contain these |
It's likely a problem in the rust built itself where |
@calixteman so nothing I can fix that fast on my end, and I did not use it wrong, right? Should I open a new issue on https://github.com/rust-lang/docker-rust then? |
You can find the instructions at https://github.com/rust-lang/rust |
Yeah you can try to file an issue on docker-rust but not sure if it's useful since the docker image almost contain only a call to |
You can have a look on: |
There might be some progress here: rust-lang/rust#124829 |
I am new to the Rust ecosystem, but as part of my own learning curve, I wanted to create a small personal project which includes test coverage executed on my raspberry pi server.
My setup contains a self-hosted Gitlab-instance (which runs inside docker) running on a 32-bit based Raspbian on my Raspberry Pi 4 (with 8gb RAM). After some hours of trying to get grcov working I tried to reproduce my problems, and might found a bug that
cargo test
does not work as described in the instructions of grcov.It seems that I need more instructions to set up my system or that it is not possible to execute on my Raspberry Pi, so I need your assistance here.
Steps to reproduce
rust-project
containing a normal project (inited viacargo init
)Content of
main.rs
:Dockerfile
aside of that folder:docker build -t rust-grcov-raspberry-bug:latest .
docker run --rm -ti rust-grcov-raspberry-bug:latest
Result on Raspberry Pi 4 (32bit arm)
Result on local Windows 10 using docker-desktop (64bit amd64)
As rust-nightly-builds for docker are not available for ARM, I could not use them directly.
What am I missing, do I need to install something more?
EDIT (2020-11-13):
I see that details about the compiler
rustc
are missing in the examples above, so here they are:rustc
on Raspberry Pi 4 (32bit arm)rustc
on local Windows 10 using docker-desktop (64bit amd64)The text was updated successfully, but these errors were encountered: