Closed agalakhov closed 8 years ago
rustc: /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/CodeGen/MachineFunction.cpp:108: llvm::MachineFunction::MachineFunction(const llvm::Function*, const llvm::TargetMachine&, unsigned int, llvm::MachineModuleInfo&): Assertion `TM.isCompatibleDataLayout(getDataLayout()) && "Can't create a MachineFunction using a Module with a " "Target-incompatible DataLayout attached\n"' failed.
wow, llvm assert, haven't seen those in a while.
A great work overall, much appreciated. I'm tempted to wait a day until a new nightly to see if a fresh build will solve the llvm issue and report it upstream otherwise.
Thank you. I believe the LLVM issue could be solved by editing the data-layout in json. Looks like that this line is not needed anymore (but I'm not really sure).
data-layout
recently became mandatory again, as discussed in rust-lang/rust#31367. I was able to successfully compile @agalakhov's branch using the layout seen here (for thumbv7em anyway).
Made a fix against LLVM assets. Not perfect, but now it at least works.
Thanks for your contributions!
This fixes platformtree!, ioreg! and lang items.