-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use syntax
crate on FreeBSD with nightly
#32984
Comments
I'm seeing the same on host=armv7-unknown-linux-gnueabihf (installed via rustup). But I think this is expected because there is no libsyntax.rlib in the .multirust directory. |
Oh man, first off thanks for testing FreeBSD :). Second, thanks for the report! Third, gah this is a rustbuild bug. It turns out that the rust-std package is actually "all target libraries" in the sense that it's more than just libstd, it's every target library we have available for that platform. Consequently, rustbuild needs to package librustc target libs into the rust-std package if the target is configured as a host. cc @brson, seems surprising in the sense that "rust-std" is an odd name, but makes sense in terms of "that package contains all libraries for the target we have available". |
Currently the `rust-std` package produced by rustbuild only contains the standard library plus libtest, but the makefiles actually produce a `rust-std` package with all known target libraries (including libsyntax, librustc, etc). Tweak the behavior so the dependencies of the `dist-docs` step in rustbuild depend on the compiler libraries as well (so that they're all packaged). Closes rust-lang#32984
Same problem in a RaspberryPi
|
@hgrecco I already mentioned the same problem happens on host=armv7-unknown-linux-gnueabihf 😄. And there's a fix in #33011. OT: @hgrecco Is that an RPi 1 or RPi 2? Because you are not supposed to use the armv7-unknown-linux-gnueabihf target with the RPi 1. I actually expect |
@japaric Sorry about that!. I am using RPi 2. |
It's okay! We got a confirmation of the bug 👍.
Never mind what I said then. (I was wondering if there was a bug where armv7 toolchain gets installed on the RPi 1. I'm glad that's not the case!) |
rustbuild: Package librustc & co for cross-hosts Currently the `rust-std` package produced by rustbuild only contains the standard library plus libtest, but the makefiles actually produce a `rust-std` package with all known target libraries (including libsyntax, librustc, etc). Tweak the behavior so the dependencies of the `dist-docs` step in rustbuild depend on the compiler libraries as well (so that they're all packaged). Closes #32984
When I try to compile a simple program using the syntax crate on FreeBSD, it seems to be unable to find the
syntax
library:I first got the error when trying to compile
docopt_macros
, but from the above test it seems clear that the issue is not in the crate itself.I'm currently running nightly-2016-04-13 (installed from the newly-avaliable multirust toolchain for FreeBSD). In case it's helpful to know, there does seem to be a
libsyntax-[hash].so
in~/.multirust/toolchains/nightly/lib
, but I'm not sure how to figure out why I'm unable to use it.The text was updated successfully, but these errors were encountered: