delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/08/02/19:57:04

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
List-Unsubscribe: <mailto:cygwin-developers-unsubscribe-archive-cygwin-developers=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-Id: <199908022245.RAA21819@mercury.xraylith.wisc.edu>
To: Corinna Vinschen <corinna AT vinschen DOT de>
cc: Chris Faylor <cgf AT cygnus DOT com>, cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: new snapshot -- fixes reported bugs?
In-Reply-To: Your message of "Tue, 03 Aug 1999 00:49:15 +0200."
<37A6206B DOT 1B025C1F AT vinschen DOT de>
Date: Mon, 02 Aug 1999 17:45:00 -0500
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Corinna Vinschen <corinna AT vinschen DOT de> writes:
> 
> I have a problem in building strace.exe: gcc dies in linker stage.
> I'm using gcc-2.95 with dev-ss tarball and it runs under winsup-990801.
> 
> The output is very less informative (to me):
> 
> gcc -o strace.exe -mno-cygwin -g -O2 -Wall -Wwrite-strings       -Wall
> -Wwrite-s
> trings       -I./../mingw/include -I./../include strace.cc
> mingw_getopt.o -B../m
> ingw/  -lnetapi32 -ladvapi32
> strace.cc: In function `int error(int, const char *, ...)':
> strace.cc:41: warning: `noreturn' function `error(int, const char *,
> ...)' does
> return
> /usr/lib/gcc-lib/i586-cygwin32/2.95/libgcc.a(_eh.o)(.text+0x389):
> undefined refe
> rence to `_impure_ptr'
> collect2: ld returned 1 exit status

Yikes. I guess the new libgcc exception handling code includes one of
the Cygwin runtime headers, and you get a reference. This means that
-mno-cygwin is really hosed unless you get my mingw-extra package and
use the libgcc.a that's there.

You can also try -fno-exceptions -fno-rtti when building strace.exe and 
see if that fixes it for now.

> I'm under the impression that I already saw this `_impure_ptr' error
> once but I can't remember anymore.
> I think, it's no coincidence that strace is a mingw file, maybe?

Regards,
Mumit

- Raw text -


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