-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustc vs rustc.exe in PATH (Windows/MinGW) #3319
Comments
This is annoying. It's because we also have a directory called rustc in the same location as rustc.exe. I would like to change the name of this directory. Note though that we should not rename it to 'rust' because it's likely we'll have a tool with that name too at some point. |
concerning libgcc, shipping libgcc won't get us anywhere since rustc uses gcc as a link driver: so rustc will start but won't compile (well, link) anything. the rustc/ directory sub-issue here is fixable, though. |
A solution @graydon mentioned to being able to name |
Not going to happen for 0.6, sadly. |
nobody has taken this on for 0.7, sorry. pushing to general maturity milestone. it does need to get fixed. |
I'm keen to close out #5223 to inch rust a little closer to readiness for downstream packages. I think if we can address this issue (#3319), #5223 should be trivial since the only weird case in there atm is for Windows. That said, it's not entirely clear to me what @graydon had in mind here: do we simply go back to installing library artifacts under Given this has slipped a few releases, I'm guessing it's more difficult than that. What would be involved in closing this out? |
@brson If that is indeed the problem (the rustc directory), why not rename that directory in the next release? |
I'm completely new to rust and llvm but ok with windows, c and python. So pardon my ignorance but I'd like to help if I can. I don't understand how are these related to the path problem: I just now finished installing rust on windows8x64 (6.2.9200) and had 2 bumps - missing libstdc++-6a.dll, installing mingw only to get "The application was unable to start correctly (0xc0000142)." because it was the wrong dll. To finally download http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/gcc-4.6.2-1/libstdc%2B%2B-4.6.2-1-mingw32-dll-6.tar.lzma/download so I hope this shouldn't be too hard to fix by just bundling the right dll. Do tell if you don't mind me trying to make a pull request or if someone's already on it. ubershmekel at gmail |
@ubershmekel sounds like it is #9252 (missing dlls). We currently ships them, but it was done after 0.8 release. So if you've installed 0.8 binary, you had to download such old dlls manually. |
Indeed I downloaded what http://static.rust-lang.org/doc/master/tutorial.html told me to. That was http://static.rust-lang.org/dist/rust-0.8-install.exe which means that perhaps a minor documentation patch remains to be applied after a new installer is distributed. Thank you! |
Does the Chocolatey package put rustc in PATH? http://chocolatey.org/packages?q=rust On Wed, Oct 9, 2013 at 4:38 AM, Yuval Greenfield
Cheers, Andrew Pennebaker |
@milesrout I think we should probably rename the |
@mcandre Yes @brson what about using the When the rustc directory is in another directory than rustc.exe, MinGW has no problems with
A problem would be that stage2/bin/rustdoc.exe etc. can't find their dlls during build. Maybe create the |
I'm thinking of a sketch like:
|
@klutzy Looks like a good solution. But maybe it's easier to rename the |
@jhasse Yes, |
Okay first version of the patch is finished (only tested on Linux). To build with my patch on Linux I needed to do the following:
I will test it on Windows in the next days. |
To create the symbolic link on Windows start cmd.exe as admin and execute:
Then |
Directly implement native exception raise methods in miri This implements the `_Unwind_RaiseException` function used on pretty much every unix system for starting unwinding. This allows removing the miri special case from libpanic_unwind for unix. Windows still needs `miri_start_unwind` as SEH unwinding isn't supported by miri. Unlike DWARF unwinding, SEH preserves all stack frames until right after the do_catch function has executed. Because of this panic_unwind stack allocates the exception object. Miri can't currently model unwinding without destroying stack frames and as such will report a use-after-free of the exception object.
Upgrade toolchain to 7/12 Relevant PRs: rust-lang#127176 and rust-lang#125507 Resolves rust-lang#3319 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
When I open the Command Prompt, rustc is successfully found in PATH, but needs libgcc to run.
So I try MinGW.
For some reason, MinGW cannot find
rustc
unless it is specified asrustc.exe
. This is highly inconvenient, as my shell scripts are configured to callrustc
; I do not want to use different settings between [Windows] and [Mac OS X, Linux, Unix, Haiku]. I just want to be able to use rustc in all cases, if possible straight from the Command Prompt rather than MinGW.Can someone please bundle the libgcc DLL with rustc in the Windows installer so that it can be used like a normal decent program?
The text was updated successfully, but these errors were encountered: