-
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
Cannot run any rust programs on windows #14403
Comments
The wiki is a bit outdated, I don't think we're compatible with gcc 4.5 any more. Can you provide a stack trace of the crash when using gcc 4.8? |
This has now been fixed. I think my initial installation of curl wasn't done quite correctly I ended up following the route described here to install curl http://www.multigesture.net/articles/how-to-upgrade-your-mingw-with-commonly-used-libraries/ |
scratch that the run that i did that worked appears to have been an anomaly but hey at least its compiling again but unfortnately there is no kinda stack trace at all. The best i can get is the error details Problem signature: |
Can you use |
From struct tm* GMTIME(const time_t *clock, struct tm *result) {
struct tm* t = gmtime(clock);
if (t == NULL || result == NULL) { return NULL; }
*result = *t;
return result;
} On mingw-w64, the definition of #if !defined(_USE_32BIT_TIME_T)
__CRT_INLINE struct tm *__cdecl gmtime(const time_t *_Time) { return _gmtime64(_Time); }
#else
__CRT_INLINE struct tm *__cdecl gmtime(const time_t *_Time) { return _gmtime32(_Time); }
#endif and However old mingw 3.20 (gcc 4.6.2) does not have
therefore it causes linker issues. (Actually I think the |
Cheers guys I'm gonna do my utmost and post back with results |
Running gdb didn't get me any answers, it debugs just fine and exits with no error codes (see below) so the code itself is in good order but alas the executable is still crashing. p.s. i have even uninstalled and re-installed this time a fresh mingw-w64. so thinking it might be my environment is a mess I whipped out my laptop went through the motions....... and the same problem on there :S (ps these are both 64 bit systems) so not sure really. Can someone else try a reinstall and see if they can reproduce it on there box? I might try my brothers 32 bit system to see if it works there. |
Could you run |
@DarthShoge It seems that your In any case, could you provide gdb backtrace? ( |
No unfortunately I do not use ConEmu at all so this might be a more general problem I can see that there is looks like there may be some incompatability issues but so far uninstalling and manual removal from the registry and re-installing has not helped i appear to consistantly be installing it incorrectly! |
it doesn't seem like there is anything here that the team can act upon. Closing. If someone provides a clear recipe for reproducing a state where one can reproduce this bug atop supported msys/mingw versions, then we can reopen (though then a fresh ticket may be best). |
internal: Bump Cargo.lock
I was following the getting started https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust process and I had managed to write the simple hello world program and compiled it succesfully with mysys. the problem is that when i try to run it crashes instantly with ntdll.dll being at fault (note this is with g++ 4.8)
when i run with the recomended g++ version 4.5 it wont even comiple i end up getting this outputted
Just to note I am running in Windows 7
any help would be much appreciated.
The text was updated successfully, but these errors were encountered: