From: Earnie B. <ear...@ya...> - 2001-02-11 01:39:16
|
Paul Garceau wrote: > Hi folks, > > On 10 Feb 2001, at 23:17, the Illustrious rei...@eu... wrote: > > > On Sat, 10 Feb 2001, Paul Garceau wrote: > > > > > On 9 Feb 2001, at 22:37, the Illustrious > > > rei...@eu... wrote: > > > ...The problem is, that I need the right sources. I thought > the CVS > > at Cygwin is also the CVS for Mingw. > I missed this post. > > This is where you are mistaken. Actually, the mingw-runtime and the w32api CVS does reside within the Cygwin winsup structure. However, both are independant packages. They build outside of the Cygwin winsup source tree. There is specific instructions in the Makefile for Cygwin vs. MinGW. > The Mingw is simply not > related to Cygwin except in a legacy sense of the word > (historically, some of the initial mingw runtime was developed > using the Cygwin toolset) It still is developed "using" the Cygwin toolset. I use Cygwin daily. I also use Linux daily but haven't yet developed any of MinGW with it. > > Since then, Mingw and Cygwin have diverged. Mingw is not, for > all intents and purposes, comparable to Cygwin. They are > entirely different runtimes which require entirely different > configurations. I don't know what this means. The runtime for MinGW is supplied by the Microsoft vendor. We have a package we call the mingw-runtime but that is just because it defines the routines and import libraries that Microsoft has in the runtime; either, MSVCRT or CRTDLL. In reality MinGW is just that package. That's all and nothing else. > > Cygwin includes a bash shell, Mingw does not. Cygwin apps can > not run without cygwin1.dll being somewhere on the lib include > path except when -mno-cygwin switch is used. > > > Maybe this is my mistake. > > Can you tell me where to find the right sources? > If you want to access the CVS version of the mingw-runtime you can go here http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/?cvsroot=src If you want to access the CVS version of the w32api you can go here http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/?cvsroot=src If you want to download the source via cvs client follow the instructions on http://cygwin.com/cvs.html. The source will reside in src/winsup/mingw and src/winsup/w32api. > > The Mingw sources are accessible via the official Mingw website > (http://www.mingw.org) and are not the same as Cygwin source. This simply isn't true. They are the same source as far as the MinGW runtime and w32api packages are concerned. They are maintained by the MinGW developers and commited by the MinGW developers. Occasionally the Cygwin team will even add to the source. > > Cygwin source is available via Cygwin ftp sites. Mingw runtime > is an add-on which is taken from the source-code available via > the Mingw "official web site". > The Mingw toolset and the Cygwin toolset are based on entirely > different runtime source code with exception of win32api > headers, etc. It is the same MinGW runtime package. > > > If the Cygwin > > sources are the right one, then the only thing to do is to patch > > the Makefile in w32api, so that the headers will be installed to > > include not to include/w32api. Then all looks like the binary > > distribution of the Mingw runtime. If you configure with --host=mingw32 then it won't put the headers in include/w32api. If you get the source package from the latest/w32api ftp mirror then it will purposefully have include/w32api. The MinGW version doesn't do this. > > The win32api for Cygwin and Mingw are, for the most part, > identical. Everything else is different. If you truly want to > build a Mingw cross-compiler, then this list is the place to be. They are identical. Exactly the same. The makefile does do different things for each host. > > However, if you are building a Cygwin cross-compiler > for Linux, such questions and/or comments would be best posted > (and best addressed) via the Cygwin mailing list since this > mailing list is specific to Mingw. Uhm, better yet would be to post at cro...@so.... > > > > > I have started all this after I got an email from Mumit Khan, > > telling me, that his cross compiler howto is out of date, if want > > to use the lates sources from Cygnus. Have a look at the FAQ. You'll find links that may help. > > Well, here is the problem. The latest sources from Cygnus > are specific to Cygwin, and are not likely to work when trying > to build a Mingw cross-compiler. If you want to build a Mingw > cross-compiler, then you should be using the source, etc. from > http://sourceforge.net/project/showfiles.php?group_id=2435 I don't know how true this is either. I would imagine that the Cygwin gcc source should be able to build a MinGW compiler. Mumit could answer to that better than I but Mumit had one source tree for gcc and binutils I can assume. Mumit used to maintain Cygwin's gcc also. > > > I have seen on the mailing > > list other persons which need a cross compiler. > > Yes, there are people who subscribe to this mailing list who > are building, or have already sucessfully created a Linux cross- > compilers based on Mingw source code. > Again, I say check the FAQ. > > > So I have posted > > my solution. > > > Sorry that is was to early, but now I think I am not > > far from an end. If you think it is not of interrest what I am > > doing, I can stop posting solutions, but I hope you will still > > answer me, if I have problems with Mingw. > > For Mingw, that is what this mailing list is for; we want to > hear about your success with Mingw related topics, such as Linux > Cross-Compilers for Mingw. Just remember that "Cygwin" and > "Mingw" are _not the same thing_ and _do not use the same source > code_. Therefore, they function quite differently. > Yes, I can say that we would be interested in hearing about your success stories. Remember when configuring you should specify --host=mingw32 if you expect to get a MinGW compiler. Be sure to look at the http://www.mingw.org/mingwfaq.html for more tips and pointers. Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |