delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/18/06:11:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Fw+aqRyiJOjkTVpKdtQtUZq9a33344ks8nE6YsS+6GacQMtFSIAZN
MwpkWKg/1Rm+gjI00nSuTEyxWUybAoYgssHFUr8oT5/uoB0twE0aBn1X+w94DH+5
v/xZyqmOALf9uURl/aLzWohEqnkppkdei69dmXtGfIQSFeZpFrL32o=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=GA03pAZwQiGN+IKw+Az+D2Vb+SY=; b=ZmyNd5YlWHxxBKUVLYSdSI5b7lsU
5TEZS2bdEkkjYH7V1SQHIxtAN6g06FUAU+CnjGxa8oZ33GU//zWOs1pqD+z2yRIV
isTdXUdNLlOG17a03zPSHbNpgJYA9sTayIBvb2ubdhU7Juw5lHgiWAXvN1BauDDc
BEW3XAPPo9YCOQc=
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
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Tue, 18 Jun 2013 12:11:07 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: What is a good profiling tool ? - problem with gprof
Message-ID: <20130618101107.GA27405@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <2CF6002E09D8F54E9839DA08786D3200958D7B7A AT EX10-LIVE-MBN2 DOT ad DOT kent DOT ac DOT uk> <51BF3EC0 DOT 4040906 AT cygwin DOT com>
MIME-Version: 1.0
In-Reply-To: <51BF3EC0.4040906@cygwin.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Jun 17 12:52, Larry Hall (Cygwin) wrote:
> On 6/17/2013 12:19 PM, J.B.W.Webber wrote:
> >Hi, I am trying to find in which function call the most time is being spent.
> >
> >I am using gcc and trying to compile and link with -g and -pg.
> >i.e. for a trivial test :
> >
> >$ cat helloworld.c
> >/* Hello World program */
> >#include<stdio.h>
> >main()
> >{
> >     printf("Hello World\n");
> >}
> >
> >$ gcc -g -pg -c helloworld.c
> >$ gcc -pg helloworld.o
> >helloworld.o: In function `main':
> >helloworld.c:6: undefined reference to `_mcount'
> >collect2: ld returned 1 exit status
> >
> >Any ideas ? Am I missing a .h call ? Or do I need to link to something ?
> 
> Worked for me.  Perhaps your Strawberry gcc installation is interfering.

I don't know how you succeeed to build that, Larry.  I could easily
reproduce the problem.  It was a build problem in Cygwin.  I fixed that
now and at the same time made the 64 bit profiling workable, curtesy the
Mingw-w64 project, which already did the required work.  The original
profiling code was created within the Cygwin project ages ago, so I
could included the latest Mingw-w64 profiling code (almost) verbatim
into Cygwin and now it seems to work fine again for 32 and 64 bit.

I'm just about to create a 2013-06-18 32 bit snapshot on
http://cygwin.com/snapshots/ and a 64 bit test release 1.7.12-5,
which both should be ready in an hour.


HTH,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
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