-
Notifications
You must be signed in to change notification settings - Fork 21
Backend data layout does not match clang expected target description #72
Comments
Here's a silly question, but did you checkout vanilla Clang, or the one within this organization? I think I need to implement CI for the rest of the projects now. |
The one in the wiki instructions. ~/workspace/llvm/tools/clang $ git remote -v
origin https://github.com/avr-llvm/clang.git (fetch)
origin https://github.com/avr-llvm/clang.git (push) |
Confirmed; I am getting this error as well. |
The problem is fixed in |
Clang had a different target layout than LLVM did for AVR. Now Clang has the same datalayout as LLVM. |
Note that it is no longer necessary to pass |
Currently there are about 10 failing machine code tests for AVR (out of about 85). The majority of these tests are failing because we aren't parsing immediates prefixed with |
I'm compiling from a fresh checkout of avr-llvm with clang checked out in tools. When I go and try to compile something to IR I get the following error:
This is new, as I have successfully built and used clang/opt/llc from this setup before. I tried a clean rebuild and it did not fix the problem. I also tried just manually changing the string in AVRTargetMachine.cpp to the one that clang is evidently expecting and that caused me to be able to generate IR again. It doesn't seem that I can compile anything down to AVR at the moment with avr-llvm, though, with or without that workaround.
In case you're wondering, it doesn't matter what the source file contains. In the case above it contained this:
I have verified that running clang with a number of officially supported targets (x86_64-unknown-linux-gnu, for example) works fine.
The text was updated successfully, but these errors were encountered: