hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

Update for rust 1.10.0-nightly #374

Closed agalakhov closed 8 years ago

agalakhov commented 8 years ago

This fixes platformtree!, ioreg! and lang items.

coveralls commented 8 years ago

Coverage Status

Changes Unknown when pulling e074f5ea051c8630b65f1ac2231884bbcf21f9ef on agalakhov:master into \ on hackndev:master**.

farcaller commented 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.

farcaller commented 8 years ago

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.

agalakhov commented 8 years ago

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).

jmagnuson commented 8 years ago

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).

coveralls commented 8 years ago

Coverage Status

Changes Unknown when pulling f5a3a0d2dde5382bed52c3e31f56fd31391392a5 on agalakhov:master into \ on hackndev:master**.

agalakhov commented 8 years ago

Made a fix against LLVM assets. Not perfect, but now it at least works.

farcaller commented 8 years ago

Thanks for your contributions!