-
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
"Renaming of the library C
was specified" error only on nightly
#38850
Comments
cc @vadimcn |
@dylanede, are you putting the full library path behind |
Ah, yes I am. The path is constructed using the |
Hmm, I was under impression that |
@vadimcn that was the intention, yes, but it looks like it works with paths as well I guess? |
I believe the relevant PR (#37973) is on beta, so I'm going to tag this as a stable-to-beta regression. |
@alexcrichton: We have code in rustc that assumes that it's given just the library name. If you invoke The full path works with MSVC (if you omit the |
The tools team discussed this during triage today and the conclusion was that this interpretation of |
I'm not sure if this is related, but I'm seeing the same error message while playing around with neon. This only happens on Windows. I'm on rust 1.19.0. This is the error message I'm seeing.
Just running |
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
-l is only intended to communicate the names of libraries See rust-lang/rust#38850 for more details.
This appears to be caused by a change in #37403.
This appears to be causing a breaking change on nightly from stable. I'm compiling an (unreleased) FFI library that handles the linking to certain static libraries in a build script (so the
extern "C"
block is unannotated). It depends on the libc crate. Other than that it does nothing out of the ordinary. I'm compiling using the windows msvc x64 toolchain. On nightly, but not on stable, I get the error message:Is this library
C
referring to libc? My crate has an entirely unrelated name.The text was updated successfully, but these errors were encountered: