Closed
Description
Rust wiki states that on Windows an old version of GCC must be used because of incompatibility with then-current LLVM. This causes problems for Windows users who run on a fresh mingw installation: #5878, #5712.
There had been several LLVM upgrades since then and apparently the incompatibility issue got fixed somewhere along the way: I was able to build Rust with GCC 4.7.2 on 64-bit Windows machine without apparent problems. Well, I had to copy old libgcc_s_dw2-1.dll and libstdc++-6.dll into stage0\bin to make stage1 compilation work, but other than that everything had worked fine.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
adrientetar commentedon Aug 24, 2013
I was able to build Rust with GCC 4.7 on Linux Mint 15 x86-64 for the record without having to do anything particular.
klutzy commentedon Sep 16, 2013
#9205 blocks gcc 4.8 use, although it seems not critical.
make
succeeds, butmake check-fast
fails.Tests expected to fail (as reported here):
Also recent mingw has some problems: 1 2
klutzy commentedon Sep 16, 2013
It would be good if we know latest working gcc version.
We currently recommend 4.5. I've used 4.6 for several months and had no problem.
4.8 is known to fail tests. I have no experience of 4.7.
So: @vadimcn @adridu59 did you run
make
only? or did you also runmake check-fast
and it succeeded?klutzy commentedon Sep 16, 2013
yet another w32api issue (4.0.0-1) from irc:
winbase.h
has the following linesbut
NTDDK_VERSION
is not defined elsewhere. gcc treats the comparison asfalse
, so the constant is not defined.My old w32api-3.17-2 contains:
I guess
NTDDK_VERSION
is a typo ofNTDDI_VERSION
.klutzy commentedon Sep 16, 2013
@aarondandy documented detailed instruction for gcc 4.8 on wiki. Hooray!
adrientetar commentedon Sep 16, 2013
@klutzy I ran make only.
pnkfelix commentedon Nov 7, 2013
We might currently work with gcc 4.8. But we nonetheless must update our bots to test against the appropriate version of gcc on Windows. Accepted for P-high.
zokier commentedon Nov 12, 2013
I just attempted to build rust on fresh install of MinGW with GCC 4.8.1.
make check
fails 8 tests:Full log of failures as gist
vadimcn commentedon Nov 12, 2013
That's expected. On Windows one should build the "check-fast" target, i.e. "make check-fast".
make check
broken on windows #10452klutzy commentedon Nov 13, 2013
@zokier @vadimcn I think
make check
should work anyway: #10452vadimcn commentedon Apr 20, 2014
Rust windows bots have transitioned to mingw-w64, so this is now fixed.
1 remaining item