-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Serde with serde_derive fails to build in "alt" compiler on OS X #42967
Comments
What’s |
It’s also enabled in the "non-alt" build, so probably not relevant. |
Have you tried building the project in the same disk partition where you've installed rustc, i.e. inside |
Yes. With the second set of steps (and Compiling serde v1.0.8
Running `rustc --crate-name serde /Users/simon/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.8/src/lib.rs --crate-type lib --emit=dep-info,metadata -C codegen-units=4 -C debuginfo=2 --cfg 'feature="std"' --cfg 'feature="rc"' --cfg 'feature="derive"' --cfg 'feature="default"' --cfg 'feature="serde_derive"' -C metadata=b12802d89eb13761 -C extra-filename=-b12802d89eb13761 --out-dir /Users/simon/projects/servo/target/debug/deps -L dependency=/Users/simon/projects/servo/target/debug/deps --extern serde_derive=/Users/simon/projects/servo/target/debug/deps/libserde_derive-87e93d0afba53041.dylib --cap-lints allow -W unused-extern-crates`
error: dlopen(/Users/simon/projects/servo/target/debug/deps/libserde_derive-87e93d0afba53041.dylib, 1): Library not loaded: @rpath/libstd-82587804d4836e27.dylib
Referenced from: /Users/simon/projects/servo/target/debug/deps/libserde_derive-87e93d0afba53041.dylib
Reason: image not found
--> /Users/simon/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.8/src/lib.rs:261:1
|
261 | extern crate serde_derive;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Could not compile `serde`. |
Does |
@kennytm not as far I can tell. |
Okay... There are many other debugging options for dyld but I doubt if they are useful. The problem is that I don't think the alt-build's and normal build's Cargo has any difference though. Verify if |
Both contain:
|
Both contains |
Almost, the
|
Huh, that's even stranger. The |
Well it sounds unlikely to me that “from the other build” is really what’s going on, I’d bet on incorrect hashing. How is the hexadecimal part of |
IIRC rustc will just search for all |
I first hit the issue before the "non-alt" build was downloaded. |
I've tried to reproduce it myself and it seems
Overriding |
What is "it" and what does "installing" mean? |
Run |
What does this do besides copying the files? Regardless, this is a regression, it only happens on OS X, and only with "alternate" builds… |
It looks like the problem is presumably that One fairly clear problem is that Servo for some reason doesn't download rust-std from alt by-default AFAICT; having added some quick prints to the util script. That would lead to incompatibilities; this should be fixed.
|
I've filed servo/servo#17575 which should fix this. |
Good catch! This fixes the problem, thank you. |
This hopefully fixes rust-lang#42967 and rust-lang#43085.
…hton Enable profiler on "alternate" builds This hopefully fixes rust-lang#42967 and rust-lang#43085.
This reverts commit 6b52330. This is unnecessary now that rust-lang/rust#42967 is fixed by rust-lang/rust#43167. This migth be a fix for #17604
Steps to reproduce:
Alternative steps to reproduce that will provides a suitable compiler:
On OS X, with LLVM assertions disabled (like in rustc builds added in #39754, which are the default in Servo’s
mach
), rustc 1.20.0-nightly (69c65d2 2017-06-28) fails with:This problem does not occur with
nightly-2017-06-29
from rustup, which has LLVM assertions enabled. (But perhaps that’s not the only difference between the two kinds of builds?)The text was updated successfully, but these errors were encountered: