hackndev / zinc

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

Add thumbv7em-linux-eabi target spec #220

Closed bgamari closed 9 years ago

bgamari commented 9 years ago

Fixed.

farcaller commented 9 years ago

error: unknown operating system

Can you get thumbv7m-none-eabi too?

farcaller commented 9 years ago
rustc --opt-level 2 -Z no-landing-pads --cfg mcu_k20 --cfg arch_cortex_m4 --target thumbv7em-none-eabi -Ctarget-cpu=cortex-m4 -C relocation_model=static -g -C no-stack-check      -L /tmp/zinc/build  --out-dir /tmp/zinc/build  /tmp/zinc/thirdparty/libcore/lib.rs 
error: unknown operating system

hmm

bgamari commented 9 years ago

That's rather odd; seems to work for me. Are you sure your rustc is up-to-date?

farcaller commented 9 years ago

Based on http://beta.ci.zinc.rs/builds/build_job/153, it was rustc b11b70654; is that new enough?

bgamari commented 9 years ago

No, it seems flexible targets were implemented in 6b130e3 which wasn't merged as of b11b70654

farcaller commented 9 years ago

I see...

Cloning into '/usr/src/rust/src'...

farcaller commented 9 years ago

https://github.com/rust-lang/rust/issues/18699.

bgamari commented 9 years ago

The current state of things along with #221 compiles with rustc d5f20c58e on all platforms for me.

farcaller commented 9 years ago

Ok, then #18699 is OSX-specific.