-mno-cygwin also doesn't work with latest mingw gcc
jim-grundy opened this issue · comments
First, thanks for doing this - fantastic work.
The issue is that it is not just the version of gcc that ships with cygwin that no longer accepts the -mno-cygwin flag, the version that ships with mingw installer as of 2011-11-18 no longer does either. The work around is to remain on the previous mingw installer version (released on 2011-08-02) .
Correct. We've changed the entire toolchain in the trunk version of
OCaml. The combo is now:
- mingw64-32
- cygwin
- newer flexlink that uses the compiler names from cygwin.
I'm unsure as to how that plays with MSys, but for the next iteration
of the installer, I will either:
- package gcc and as to make sure it's as much self-contained as
possible, - require people to install cygwin to enjoy native compilation.
In the meanwhile, yes, it's a little broken, and it's a shame. I just
need to find time to rebuild a newer installer, and I don't have much
time right now.
No problem.
For what it is worth - the last but-one MSys just works with your installer would, and if you build the next one the same way then I expect it will work with the current one.
I for one would prefer the following solutions in order of preference:
- Things work as they do now, you just have to have the right dependencies.
- The right version of GCC is bundled with OCaml
- Have to install cygwin (I'd rather not)
Anyway, I have a solution that works for me now and I'll sure will keep me happy for a long time. You might just want to mention on the web page which version of MSys people will need to get success.
Thanks
Jim
-----Original Message-----
From: Jonathan Protzenko [mailto:reply@reply.github.com]
Sent: Tuesday, 07 February, 2012 01:05
To: Grundy, Jim D
Subject: Re: [ocaml-installer] -mno-cygwin also doesn't work with latest mingw gcc (#7)
Correct. We've changed the entire toolchain in the trunk version of
OCaml. The combo is now:
- mingw64-32
- cygwin
- newer flexlink that uses the compiler names from cygwin.
I'm unsure as to how that plays with MSys, but for the next iteration
of the installer, I will either:
- package gcc and as to make sure it's as much self-contained as
possible, - require people to install cygwin to enjoy native compilation.
In the meanwhile, yes, it's a little broken, and it's a shame. I just
need to find time to rebuild a newer installer, and I don't have much
time right now.
Reply to this email directly or view it on GitHub:
#7 (comment)
I'm currently working on a refresh of the installer, and I've switched to the newer toolchain, including a newer version of flexlink (the linker), which will not call -mno-cygwin at all anymore.