delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/26/11:11:56

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 26 Dec 2003 11:11:32 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Nuno Ferreira <nuno DOT ferreira AT graycell DOT biz>
cc: cygwin AT cygwin DOT com
Subject: Re: Problem compiling cygwin1.dll from CVS
In-Reply-To: <1072439357.788.2.camel@taz.graycell.biz>
Message-ID: <Pine.GSO.4.56.0312261059370.18706@slinky.cs.nyu.edu>
References: <1072439357 DOT 788 DOT 2 DOT camel AT taz DOT graycell DOT biz>
MIME-Version: 1.0

On Fri, 26 Dec 2003, Nuno Ferreira wrote:

> Hi,
> while trying to find a problem with an application I'm using (that by
> the way was corrected by yesterday's snapshot) I tried to compile the
> DLL from CVS and it failed with this error:
> [snip]
> collect2: ld terminated with signal 11 [Segmentation fault], core dumped
> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cygwin.def:4: parse error
> make[2]: *** [cygwin0.dll] Error 1
>
> The created cygwin.def follows, do you have any ideia what can cause
> this problem?

At a guess, judging from the CRLF line endings in the first 3 lines,
you're trying to build Cygwin on a text mount.  Thus, ld expects to see
all lines ending in CRLF.  However, gcc seems to write the defs with LFs
explicitly, so ld sees line 4 as one long line, and gives a parse error.
I'd suggest moving the build to a binary mount and trying again.

> Also, I am experiencing some major memory leaks using the application,
> the same application runs flawlessly in linux, does anyone know any tool
> (something similar to valgrind) I can use to track the leaks under
> cygwin?
>
> Thank you
> --
> Nuno

Doesn't Cygwin use Doug Lea's malloc?  I thought it had some leak
detection routines (or, at least, routines to print memory stats).  Take a
look at winsup/cygwin/malloc.cc...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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