Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Dale Goudey" To: Cc: Subject: Re: New gcc/binutils available for testing Date: Thu, 15 Jun 2000 20:02:13 -0700 Message-ID: <01bfd73f$458a0d50$1bd4b3d1@deschutes> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0049_01BFD704.992B3550" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 ------=_NextPart_000_0049_01BFD704.992B3550 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have used the new binutils/gcc, testing not complete by any means but it looks good so far (after some fixes are applied). Builds are still ongoing. fixes required: 1. default library search path is broken, it still seems to be looking in /usr/i686-pc-cygwin/lib The workaround is to define the LIBRARY_PATH environment variable to /usr/lib 2. For true mingw support (is there such a thing?), you will need to install the complete mingw header/library set and modify the specs file (see below). >>Chris Faylor wrote: >>> Oops. It looks like I had an environment variable set from an ancient >>> version of CYGWIN -- LIBRARY_PATH. If you set that to /usr/lib it >>> seems to find things correctly. >> >> >>OK, I gave this a try and trivial programs compile correctly. Works for me too >Yup. Sorry. I see why this is happening. I'll fix it. >>However, when "-mno-cygwin" is used, it doesn't find any of the standard >>header files (stdio.h, windows.h, etc.). I have attached output from "gcc >>-v" . >> >>Also, it i linking with both crtdll.dll and msvcrt.dll. Programs should be >>linked against one or the other, but not both. msvcrt.dll is preferred >>because it is more stable and better tested. >I just blindly followed the specs file that was in the URL that I quoted. >I thought I saw positive comments about this. The specs file requires that the mingw headers are used when the mingw libraries are used. If they are not installed, you will get an error message. This is by design. To do otherwise is INCORRECT, since the headers must remain consistent with the libraries. Hope this is clear. But this means that the complete libraries/headers must be installed in the proper locations. Since these files were never part of the regular cygwin package (though I thing they should be), they must be obtained separately. retrieve bin-msvcrt-2000-03-27.zip from ftp://ftp.nanotech.wisc.edu/pub/khan/gnu-win32/mingw32/runtime/ retrieve gcc-2.95.2-1-msvcrt.zip from ftp://ftp.nanotech.wisc.edu/pub/khan/gnu-win32/mingw32/snapshots/gcc-2.95.2- 1/ I really don't know if these files are "officially" the latest, but they do work well for me. Install as described below (repeating my previous note with modifications for the new gcc), and use the specs file attached here (rather than the previous one posted). To see where the specs file belongs, do a gcc -v Note that with this configuration we can use the cygwin toolset with optionally the cygwin or the mingw libraries. The above mingw complications are not necessary for cygwin builds only. For those who need to build for both (such as myself), this seems to be the best setup. >Anyway, I'll remove the crtdll entry, though. It looks like I should >have been more discerning with a few other entries, too. >cgf A note for Chris: the enclosed specs file has some VERY MINOR mods so that it works correctly with the latest mingw libraries (I think). Thanks for your update. This cygwin package is really quite good, but "early adopters" must understand that this is a work-in-progress. Well, maybe they need reminding on occasion. Further notes on installing the mingw headers/libraries from gcc-2.95.2-1-msvcrt.zip (use the lib/gcc-lib/i386-mingw32msvc therein by moving or copying it into /usr/lib/gcc-lib to make it parallel to /usr/lib/gcc-lib/i686-pc-cygwin (this gives you /usr/lib/gcc-lib/i386-mingw32msvc) use the include/g++-3 therein by moving or copying it into /usr/mingw/include (this directory must be created) This gives you /usr/mingw/include/g++-3 and use the files i386-mingw32msvc/include/*.h therein by moving or copying them into /usr/mingw/include ) from bin-msvcrt-2000-03-27.zip ( unpack into an empty directory move or copy the resulting i386-mingw32msvc directory into /usr this gives you /usr/i386-mingw32msvc move or copy the resulting bin/mingwm10.dll file into /bin copy the files crt2.o gcrt2.o dllcrt2.o from the i386-mingw32msvc/lib directory into /usr/lib (or into /usr/i686-pc-cygwin/lib if you are using gcc-2.95.2-1 rather than -2) ) As usual, no warranties Hope this helps Dale Goudey ------=_NextPart_000_0049_01BFD704.992B3550 Content-Type: application/octet-stream; name="specs" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="specs" KmFz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olKGNwcF81 ODYpfSAle21wZW50aXVtcHJvOiUoY3BwXzY4Nil9ICV7bWNwdT1wZW50aXVtcHJvOiUoY3BwXzY4 Nil9ICV7bWNwdT1rNjolKGNwcF9rNil9ICV7IW1jcHUqOiV7IW00ODY6JXshbXBlbnRpdW0qOiUo Y3BwX2NwdV9kZWZhdWx0KX19fQoKKmNjMV9jcHU6CiV7IW1jcHUqOiAle20zODY6LW1jcHU9aTM4 NiAtbWFyY2g9aTM4Nn0gJXttNDg2Oi1tY3B1PWk0ODYgLW1hcmNoPWk0ODZ9ICV7bXBlbnRpdW06 LW1jcHU9cGVudGl1bX0gJXttcGVudGl1bXBybzotbWNwdT1wZW50aXVtcHJvfX0KCiptaW5nd19p bmNsdWRlX3BhdGg6Cmk2ODYtcGMtY3lnd2luCgoqbGlua19jb21tYW5kOgoleyFmc3ludGF4LW9u bHk6ICAleyFjOiV7IU06JXshTU06JXshRToleyFTOiUobGlua2VyKSAlbCAlWCAle28qfSAle0F9 ICV7ZH0gJXtlKn0gJXttfSAle059ICV7bn0gCQkJJXtyfSAle3N9ICV7dH0gJXt1Kn0gJXt4fSAl e3p9ICV7Wn0JCQkleyFBOiV7IW5vc3RkbGliOiV7IW5vc3RhcnRmaWxlczolU319fQkJCSV7c3Rh dGljOn0gJXtMKn0gJUQgJW8JCQkleyFub3N0ZGxpYjoleyFub2RlZmF1bHRsaWJzOiVHICVMICVH fX0JCQkleyFBOiV7IW5vc3RkbGliOiV7IW5vc3RhcnRmaWxlczolRX19fQkJCSV7VCp9CQkJCiB9 fX19fX0KCg== ------=_NextPart_000_0049_01BFD704.992B3550 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------=_NextPart_000_0049_01BFD704.992B3550--