-
Notifications
You must be signed in to change notification settings - Fork 0
Requires mman.h? #17
Comments
LLVM's |
Well I wasn't sure if I even needed compiler-rt.rs, but your xargo example for building copper for an STM32 seemed to include it so I figured I'd add it. |
Nah, you can actually get quite far without it (unless you need to do floating point operations on a device without FPU like Cortex-M0 or Cortex-M0).
Did it? Which one? I'm sure the copper book examples don't use compiler-rt.rs -- all the example use target spec files with |
Oh, that copper; I thought you mean the book. |
Having said that, I was working through porting Phil Oppermann's bump and heap allocators to my bare metal ARM project this evening and I found I needed __aeabi_memclr4 and __aeabi_memmove. I've diverted them to the rlibc equivalents for now but I think fixing this would be useful. |
This came about because RUST_TARGET_PATH wasn't set, so the build script couldn't actually see my target file, and so it didn't realise this was an os=none build. |
I'm porting compiler-rt to Rust as part of rust-lang/rust#35437. My work so far is in this repo. I just started but the crate already provides these two symbols. If you want to switch to it, check japaric-archived/cu#37 |
Trying to build compiler-rt.rs with xargo I get quite far, then it fails with this error. The Fedora packages for arm-none-eabi-gcc and arm-none-eabi-newlib don't include mman.h, which seems reasonable as it looks like a POSIX memory mapping API.
The text was updated successfully, but these errors were encountered: