Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRustdoc fails with info about symbol names #32532
Comments
This comment has been minimized.
This comment has been minimized.
|
Ah, and an example of a failing build |
This comment has been minimized.
This comment has been minimized.
|
I'm hitting this too. |
brson
added a commit
to rust-lang/rustup.rs
that referenced
this issue
Mar 28, 2016
brson
added a commit
to rust-lang/rustup.rs
that referenced
this issue
Mar 28, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@brson specifically with libc, or with other crate names? |
This comment has been minimized.
This comment has been minimized.
|
So I'm trying to figure out if the right answer here is that we should just be passing in metadata to rustdoc? Seems plausible. |
This comment has been minimized.
This comment has been minimized.
|
Hm, in rustdoc we actually don't care about symbol name conflict, so we could indicate that to the crate loader? |
This comment has been minimized.
This comment has been minimized.
|
The analysis of the underlying reason by @alexcrichton seems plausible to me, by the way. |
This comment has been minimized.
This comment has been minimized.
Maybe, but it seems sloppy to me -- I mean, why don't we care? The signatures might well be different, for example, so it might well matter. In any case, I'm trying to understand what is leading us to get this conflict still (I haven't reproduced it yet -- what target do I need to use?).
I feel like I'm still missing something. From what I can tell, the error comes when generating docs for the Perhaps part of it is that I am a bit removed from the details of how a lot of this lower level stuff works. |
This comment has been minimized.
This comment has been minimized.
|
ok, I see now that this error is not when bootstrapping. |
This comment has been minimized.
This comment has been minimized.
|
Further investigation reveals that somehow we do not seem to be supplying That said, it seems to me that |
This comment has been minimized.
This comment has been minimized.
@alexcrichton Can you elaborate on that? |
alexcrichton
referenced this issue
Mar 28, 2016
Merged
mk: Add `-C metadata` for compiling crates we ship #32560
This comment has been minimized.
This comment has been minimized.
|
I believe this is fixed in #32560, explained here: #32560 (comment). To elaborate on the lack of metadata, rustdoc simply doesn't accept |
bors
added a commit
that referenced
this issue
Mar 28, 2016
bors
closed this
in
#32560
Mar 28, 2016
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton did you actually check whether this is fixed? I wonder if it's worth trying to allow rustdoc to accept -C metadata -- I guess so long as it doesn't matter, it doesn't matter. |
This comment has been minimized.
This comment has been minimized.
|
Nah I was hoping to test with today's nightly, but that's blocked on #32568. I'm pretty confident that the change would fix this, however. |
This comment has been minimized.
This comment has been minimized.
paukul
commented
Mar 30, 2016
|
FYI rustc 1.9.0-nightly (b678600 2016-03-29) fixed this issue for me |
alexcrichton commentedMar 27, 2016
A bunch of my nightly builds are now generating the error:
error: the current crate is indistinguishable from one of its dependencies: it has the same crate-name
libcand was compiled with the same-C metadataarguments. This will result in symbol conflicts between the two. [E0519]This is likely due to the revamp of symbol names, but it's also unfortunately a regression on nightly. I think what's happening here is that Cargo isn't passing
-C metadatato rustdoc (because it can't) and then the crates.io libc crate is conflicting with the in-tree libc crate.cc @nikomatsakis