delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/27/13:23:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_50,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,TW_LG,TW_RW,TW_WX,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Paul Bibbings <paul DOT bibbings AT gmail DOT com>
Subject: Re: gcc-4 -static cannot find -lgcc_s
Date: Sun, 27 Jun 2010 18:23:23 +0100
Lines: 25
Message-ID: <87sk48v184.fsf@gmail.com>
References: <75302 DOT 87816 DOT qm AT web30707 DOT mail DOT mud DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (windows-nt)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

"Uwe F. Mayer" <uwe DOT  DOT  DOT  AT yahoo DOT com> writes:

> It seems that gcc-4 has problems finding libgcc_s when compiling with
> -static. This works fine with gcc-3. Example: 
>
> $ cat pointer.c
> #include <stdio.h>
> int main(){
>  printf("%d",(int)sizeof(long));
>  return(0);
> }

Confirmed for my installation.  I think that the problem probably lies
with: 

   18:08:39 Paul Bibbings AT JIJOU
   /cygdrive/d/CProjs $ls -l /usr/lib/gcc/i686-pc-cygwin/4.3.4 | grep gcc
   -rw-r--r--  1 Paul Bibbings root  201150 Dec 11  2009 libgcc.a
   -rw-r--r--  1 Paul Bibbings root  131212 Dec 11  2009 libgcc_eh.a
   -rwxr-xr-x  1 Paul Bibbings root   67150 Dec 11  2009 libgcc_s.dll.a
                                                                 ^^^^

Regards

Paul Bibbings


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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