Skip to content
This repository has been archived by the owner on Feb 3, 2019. It is now read-only.

can't find crate for syntax [E0463] #19

Open
timglabisch opened this issue Jun 14, 2016 · 5 comments
Open

can't find crate for syntax [E0463] #19

timglabisch opened this issue Jun 14, 2016 · 5 comments

Comments

@timglabisch
Copy link

timglabisch commented Jun 14, 2016

Hello,

today i created this docker container and tryed to compile a project for RPi 3.
i've am using serde (*) as a dependency, whis results in:

....
 Downloading num-traits v0.1.32
   Compiling num-traits v0.1.32
   Compiling aster v0.18.0
/home/cross/.cargo/registry/src/github.com-1ecc6299db9ec823/aster-0.18.0/src/lib.rs:10:1: 10:21 error: can't find crate for `syntax` [E0463]
/home/cross/.cargo/registry/src/github.com-1ecc6299db9ec823/aster-0.18.0/src/lib.rs:10 extern crate syntax;

dependencies of my project:

[dependencies]
nickel = "0.8.0"
unicase = "*"
serde = "*"
serde_json = "*"
serde_macros = "*"
xml-rs = "0.3"
cp437 = "*"
plugin = "0.2"
typemap = "*"
rustc-serialize = "0.3"

may this is related to rust-lang/rust#32984

@Ogeon
Copy link
Owner

Ogeon commented Jun 14, 2016

Hi,

I have never tried to use syntax on RPi, but I think it should just work™ if std works. Have you checked that you can compile a simpler crate? That issue you linked looks like it's a similar case, but it looks like it was fixed. It's hard to say if it has made a comeback, based on this info.

A possible workaround, in any case, if you can stand a longer initial build time, could be to use syntex instead. It's also usable on stable Rust. I'm assuming that you are using nightly, by the way.

Edit: Never mind, the docker container compiles Rust, so it counts a nightly.

@timglabisch
Copy link
Author

Hi,

i successfully tryed it on another project with no (just rusts default) dependencies.

@Ogeon
Copy link
Owner

Ogeon commented Jun 16, 2016

Ok, so we can probably rule that out, then. I have, honestly, no idea why that's happening. Something you could try, if you are using Linux, is to follow the regular instructions, but skip the part where you are building the compiler, and instead install the cross compiled standard libraries through rustup. It's the same approach that's used when testing the wiringpi bindings (see the install section). This will most likely require the same version of the buildXX script as in that same repository.

I really need to update this guide...

@timglabisch
Copy link
Author

i am sorry but at the moment i don't have the time to try this :( i'll try this later.

@Ogeon
Copy link
Owner

Ogeon commented Jun 19, 2016

Oh, don't worry about it. Take your time 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants