Closed brandonedens closed 7 years ago
Sorry for the delay. Hopefully I updated the support script correctly.
Apparently travis image doesn't come with rustup 😞: https://travis-ci.org/hackndev/zinc/jobs/172830505#L386
I had to add back in the rlibc
dependency, but with xargo
we can now at least use the version from crates.io unmodified!
This is because LLVM, especially in debug mode, likes to render references to memcpy
and friends, assuming that you'll provide an implementation.
Working on fixing the travis build right now.
As of https://travis-ci.org/hackndev/zinc/jobs/177109695 all the cross-platforms build. One of the kcov
tasks (the platformtree one) is now failing for the native
target. I'll have to take a look later, but we're close.
@brandonedens I should be able to pull this when travis comes back up. I fixed the problem and it's working locally. For some reason, the downloaded version of rustup
isn't setting the path for the core system libraries properly, so when the binaries are run with kcov
you have to set LD_LIBRARY_PATH
manually for it to be able to find things like libcore
, libsyntax
, etc.
"native" seems to start being broken "by design" 😐
"native" seems to start being broken "by design"
True, but it's kind of necessary for unit testing... I think it's worth keeping around. Honestly, the problem I'm having with travis now is purely due to differences in the rustup that I'm using locally, and the one travis is using, combined with the lack of a good way to set up an environment identical to the one travis has for testing purposes.
It's going to work very soon here, and trust me, this xargo
thing is the right way to go right now. It gets rid of all these upstream changes we keep having to track. It will completely deprecate the hackndev fork of rlibc
, allowing direct use of the version from crates.io.
@farcaller Also the #zinc
channel on mozilla has been seeing some use as a couple people have been trying to use the project. Mainly pushing this through the pipeline so that those guys can start having an easier time.
Might even have time to update my sam3
branch later.
ALSO SUPER EXCITING NEWS: AVR backend lands in LLVM! This means we'll have zinc on arduino boards soon(tm).
Use xargo to build libcore and Zinc: cargo install xargo xargo build --target thumbv7m-none-eabi