delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/11/23:50:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3D2E51ED.3080902@ece.gatech.edu>
Date: Thu, 11 Jul 2002 23:50:05 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Available for test: gcc-3.1.1-2 gcc2-2.95.3-8
References: <20020711044304 DOT GA3292 AT redhat DOT com> <3D2D3205 DOT 7080606 AT ece DOT gatech DOT edu> <20020711162955 DOT GA11047 AT redhat DOT com> <3D2DBE07 DOT 3040909 AT ece DOT gatech DOT edu> <20020712000601 DOT GA11148 AT redhat DOT com>

Christopher Faylor wrote:

> On Thu, Jul 11, 2002 at 01:19:03PM -0400, Charles Wilson wrote:
> 
>>attempt to open /usr/lib/mingw/libstdc++-2.a succeeded
>>
> 
> This is suspicious.  It almost looks like libstdc++-2.a is empty.
> Otherwise, you would have seen some symbols being loaded here.
> 
> I just tried this with the copy of libstdc++-2.a that I'd been
> using for setup builds and it seems to work ok.
> 
> Could you do a "nm" on this file and make sure that it is not
> corrupted?  Or maybe you need to do a ranlib on it?


It had symbols.


> I've put the copy of libstdc++-2.a that I'm using at
> 
> ftp://cygwin.com/pub/cygwin/tmp/libstdc++-2.a.bz2
> 
> if you want to try it.


DOH!

gcc-3.1.1 (or maybe gcc-mingw-3_1-20020516-1) clobbered my old 
gcc-2.95.3 (mingw) version of /usr/lib/mingw/libstdc++.a.

I copied it to libstdc++-2.a AFTER installing gcc-3.1.1.  After 
restoring my original file (to libstdc++-2.a), everything worked.

Sorry for the confusion (boy, I feel silly).

So,

3.1.1:

gcc works
gcc -mno-cygwin works
g++ works
g++ -mno-cygwin works
g77 works
g77 -mno-cygwin works

2.95.3-8:

gcc-2 works
gcc-2 -mno-cygwin works

g++-2 works
g++-2 -mno-cygwin works (provided one installs libstdc++.a from mingw's 
gcc as /usr/lib/mingw/libstdc++-2.a)

g77-2 breaks:
  /usr/lib/libcygwin.a(libcmain.o)(.text+0x81): undefined reference to 
`WinMain AT 16'
g77-2 -mno-cygwin breaks:
  /usr/lib/mingw/libmingw32.a(main.o)(.text+0x8d):main.c: undefined 
reference to `WinMain AT 16'


>> I'm probably doing something very stupid, which will occur to me 2
>>seconds after I send this, but could I ask you to wipe out your current
>>gcc2 installation, reinstall it, and see what happens?
> 
> 
> Sorry.  I was slow.  It took me about twenty seconds.
> 
> You can disregard this email.

I gather you figured out what was "wrong" with g77-2 in gcc2-2.95.3-8 ?

--Chuck

P.S. Now, my tests are very very simple.  Consider them "basic" 
functionality tests.  We still need more "real world" testing before 
these are ready to go, IMO.

Also, I'm thinking that the files in
   /usr/include/g++-3/ (including _G_config.h)
should go into a
   gcc2-mingw-2.95_YYYYMMDD-X
package (perhaps along with

usr/lib/mingw/libg2c.a
usr/lib/mingw/libgcc.a
usr/lib/mingw/libobjc.a
usr/lib/mingw/libstdc++.a from mingw's gcc, appropriately '-2' renamed)

Hey, wait a minute -- maybe that's why g77-2 is failing?  It's linking 
against libg2c.a from 3.1?  Yep, seems so!

--Chuck


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019