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
Can not build llvm: OrcRemoteTargetClient.h:696:26: error: could not convert '((llvm::orc::remote::OrcRemoteTargetClient<ChannelT>*)this)->callB<llvm::orc::remote::OrcRemoteTargetRPCAPI::ReadMem>(Src, Size)' #108
Comments
Could you try this cd rust/src/llvm
git show And see what version of LLVM you're on. |
I'm using Arch Linux too
However, it builds successfully on my machine (64-bit X86). |
I'm building Rust commit 567801d |
Hey Dylan, thank you for your response.
I was able to build it after i changed the function signature from 'char' to I can imagine 2 reasons why this happen. First reason: Second reason: That's the only reasons i can imagine why it build for you, but not for me. And at the moment i can't checkout the whole project.
|
I've recently setup a Docker container that runs AVR-Rust builds on Jenkins here. This is using the jenkins dockerfile, which is probably just ubuntu. It compiles fine in both that environment, and my local environment. I too am surprised by the char signedness issue. Could be different
That was my bad! I cherry-picked a fix to avr-rust/rust but I forgot to push it to avr-rust/llvm. I noticed it a few days ago and fixed it. |
I just tried to build the same commit numbers you had, @dylanmckay, and I got the same error @BloodyWulf did. However, I recognize this error from another project entirely. I also use Arch Linux, but have LLVM libraries tracked from upstream on my machine for other reasons (currently sitting at r337240). About 3-4 months ago, I started having to patch this error out of other unrelated projects I linked against it. I wonder if someone is actually changing the API. EDIT: Phrasing |
I tried building it too, I get the same error.
Rust commit 9f8c381 |
I tried around a bit the last weeks, and it was a bit frustrating. What i've done to get it work:
After that all sources are downloaded. Then i patched the file
in line 690. Change the return type from char to unsigned char. Befor patch:
After patch:
After that i copied the file config.toml.example to config.toml. There are a few In the [build] section:
must be changed to
so the edited file will not be updated. In [install] section i set the prefix where the toolchain shall be installed.
Now it should compile. I copied the 2 edited files to a new location, so i can copy them back when i
Filesystem befor executing my buildscript:
Filesystem after executing my buildscript:
After that all i checked out the blink example. To build the example
The 1st line can be added to .bashrc. The 2nd line i have to execute Now the blink example should compile. I created an own project to play around with an Teensy++ 2.0 (AT90USB1286) But for my taste i have to do to much manually (what is caused by the The README.md should also be updated, because there is the build description I hope this helps others to get avr-rust working so they can enjoy rust on avr. I can say that avr-rust is an awesome project. Thank you @dylanmckay |
Thanks @BloodyWulf, super useful stuff! Got it to compile :) I was missing avr-gcc and avr-libc packages. I don't see it mentioned anywhere in the avr-rust/rust or avr-rust/blink readmes so maybe that should be added somewhere. |
Added avr-gcc, avr-libc to README in 512f3ae0cb18e9bb975a8d9fb4c73cd93d49ccbb. Good suggestion! |
Hey, i'm interested in using Rust on AVR so i wanted to give it a try.
But unfortunately i can't build the project.
I'm using Arch Linux and this software versions are installed:
What i've done so far:
And than the build failed (at around 88% of progress):
Can someone help me please?
The text was updated successfully, but these errors were encountered: