203 points · by g1n016399 · 10y ago · 97 comments
Windows isn't the only one non POSIX and even POSIX ones do have substantial differences.
OS X is POSIX certified, and Linux and BSD are obviously UNIX-like and mostly compliant.
Apart from the precise meaning of POSIX, windows is the only OS in widespread use not part of the UNIX-like family.
Not so niche are iOS and Android, which aren't fully POSIX compliant.
Then being POSIX compliant is only half of the story, because each OS tends to be certified to specific versions and there is room for implementation specific behaviours.
For example, Aix used to have Windows like model for dynamic libraries. OS X and its derivatives have Frameworks and so on.
Finally POSIX only applications are constrained to CLI and daemons only, as everything else falls outside POSIX.
Basically it is mostly POSIX development platform for Window based on cygwin, using the pacman package manager. When I was working on a Windows box oh-so-many-years-ago, I would have loved this. It's too bad that this title is here because I assumed this was running Arch in a container on Windows or some such thing. This is much more useful.
We hope that other software projects will use us as their library provider and build enviornment on Windows, as that way it should be easier for them to also keep up to date.
Unlike the old MSYS, we are also 64-bit and that allows using --enable-auto-image-base which means no more needing to rebase your DLLs. Also, Cygwin have made great strides over the many years since MSYS forked from them and it is now both much faster and more standards compliant.
Git-4-Windows is also based on MSYS2 now and some day (hopefully soon) we will fully merge their work (a lot has been merged already) and use their native git executable.
If Msys2 is Cygwin-derived, does that mean all packages in the Msys2-Pacman are all Cygwin packages? I.e., making this "Cygwin with Pacman as a package manager?"
Does this also mean Msys2 packages can never be more current than Cygwin packages (not that this is a bad thing, but as far as I know Python3 in Cygwin is still < 3.5).
Is the benefit of Msys2 that some packages could be native windows builds instead of Cygwin-dll reliant packages?
Same build system and everything, it just requires some finagling and copying of the PKGBUILDs.
For software build systems - my use case - this type of security lapse is a deal breaker.
The initial download that includes the master public keys ought to be done over https, of coures.
"cygheap base mismatch detected - 0x612F7400/0x612FB400 This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version should reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution. Rebooting is also suggested if you are unable to find another cygwin DLL. Segmentation fault"
It's almost like they're coupled to some particular shell and some particularly configured terminal emulator (Mintty). Cygwin is the historical leader of Linux on Windows but that limitation is never desirable.
MSYS and MSYS2 don't seem to have such a limitation and that's nice.
This is unfortunately just something you need to manage for yourself.
Cygwin got itself into trouble like this because it never had a good enough package management story (because Windows can't overwrite a currently loaded dll, they didn't attempt a good system package manager, as best I understand it) so developers would end up bundling cygwin1.dll alongside their own executables instead, so there would end up being lots of cygwin1.dlls on a users machine.
The same thing could happen on MSYS2 if you had two MSYS2 environments, however, to get them both in-sync again, you'd just have to do "update-core" in each and that would be that.
As has been mentioned, its a DLL management issue, not inherent to the design of CygWin.
Some of the software is Cygwin-like, but not much, only enough to distribute (and build) the native (mingw-w64) software and provide a shell.
There was LINE which was superceded by CoLinux. However the 64 bit port of CoLinux was never completed.
Maintainers are really helpful when I sent patches and on IRC, and the software has been running stable for over a year now.
Rock on folks!
maybe that's the same thing, idk
There's you out of the box. You might have tried pacman -S cmake which will have gotten you the msys/cmake package which is used for building the packages in the msys repo (i.e. those linked to msys-2.0.dll). Having to add the mingw-w64-.. prefix is kind of strange, but you get used to it.
I'll try your suggestion and report back.
The difference will the down to path translation. We don't stick to the old MSYS rules precisely as that code was re-written for MSYS2. MSYS2_ARG_CONV_EXCL can be used to prevent specific translations from happening too.
A bug report would be appreciated anyway.
This is a more complete suit of tools that intends to be sufficient for building any Gnu/Linux/Posix software on a Windows platform. A much more ambitious goal.
Git for Windows uses this project.
https://www.cygwin.com/faq.html#faq.api.fork
The packages in the msys2 repository (which, if they link to msys-2.0.dll are all GPL licensed) only really exist to aid building the packages in the mingw32 and mingw64 repositories which don't implement fork() at all and are the real purpose of MSYS2, i.e. providing normal Windows software.
If you want a POSIX-y system, please use Cygwin.
We made a choice that we'd rather forge ahead with modern LLVM and Clang (for Rust, Clang-GCC and Julia) than hang back to support Blender. Given our very limited resources, this was still probably the right decision, however, we might have made a choice to create a special llvm35 package at that point, but we had no idea that OpenShadingLanguage would take so long to adapt to MCJIT, which the still haven't done to this day, as far as I know.
The important point here is that MSYS2 is a very open-source, limited resources project. We aren't experts in all packages, so if you are knowledgeable about llvm, OpenShadingLanguage and Blender and are interested to do so, then please help out.
For Blender, getting CUDA support into MSYS2 is probably high up on the priority list too.
It is a pitty it cannot build latest Abiword/Gnumeric yet. But we have Cygwin for this.
In any case it is a very serious addition to Windows ecosystem and people should start rethinking using Visual Studio which provides no pre-compiled libraries or package management.
However, one ca get a descent alternative development environment by using
msys2/tdm-x64 and fedora precompiled packages.
Just use MSYS2. It is all that you need. Can you explain why you would do this?
I have msys2/mingw64 but for my Golang cgo I have an alternative install
tdm-x86_64 + fedora mingw64 x86_64 packages
I used msys2 to hand compile pkg-config with these packages.
In this respect I have libvirt available to my golang.
pacman -Ss base-devel mingw-w64-x86_64-toolchain
git clone https://github.com/Alexpux/MINGW-packages.git
cd MINGW-packages/mingw-w64-libvirt
MINGW_INSTALLS=mingw64 makepkg-mingw -s
pacman -U *pkg*xz
.. and if it doesn't work file a ticket on:
https://github.com/Alexpux/MINGW-packages/issues.. otherwise you should have an MSYS2 libvirt.
even if it does work, file a bug asking that mingw-w64-libvert gets packaged.
You really should not mix binaries from different ecosystems and compilers. I do not know how TDM configure their compilers or how Fedora configures theirs (exception models, C++ ABIs) but it is a risky business and I caution strongly against it. All your packages should be compiled with the same toolchain.
Why would you use TDM compilers anyway? MSYS2 comes with its own: pacman -S mingw-w64-x86_64-toolchain gets you the 64-bit version.