delorie.com/archives/browse.cgi | search |
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:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; q=dns; s=default; b=cg | |
8k/P8dlxGIjDJerOqjC72DLe3O62opdT/QGj5kracBmhI1Jpl0u0e9QSWMqahM34 | |
iLXUaiNFkNrAneexWF6ZXXflRCq/JhHqP7mlv4Q9lJPXwiVJPQfaZjcVDrIFwHsQ | |
KCxMnCaxlhXIYR3gw0YrqKj5CT7sgkUy0Q7K59oR8= | |
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:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; s=default; bh=faVKyqbF | |
xa8TVwd7t/VIHnEOJSs=; b=ydsJNxZro6A2hn6Mmw0tUAGyDXE30KSdAyvh+Yye | |
Ix5Bo15otI1ckFL04hWmNN1DTyQ0sAXHvJ1W0LHihBpr5m6UPcbi3BHrqBDn8NF6 | |
SBhMgoffbQ8Rsh0ckYHP2NqRayYwu+9QV9aHk115XoWU4jE7ffNZxccGfqRlIS0s | |
miw= | |
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=-2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 |
MIME-Version: | 1.0 |
X-Received: | by 10.52.73.193 with SMTP id n1mr455746vdv.71.1371572373080; Tue, 18 Jun 2013 09:19:33 -0700 (PDT) |
In-Reply-To: | <2CF6002E09D8F54E9839DA08786D3200958D9548@EX10-LIVE-MBN2.ad.kent.ac.uk> |
References: | <2CF6002E09D8F54E9839DA08786D3200958D7B7A AT EX10-LIVE-MBN2 DOT ad DOT kent DOT ac DOT uk> <51BF3EC0 DOT 4040906 AT cygwin DOT com> <20130618101107 DOT GA27405 AT calimero DOT vinschen DOT de> <20130618103825 DOT GD27405 AT calimero DOT vinschen DOT de> <2CF6002E09D8F54E9839DA08786D3200958D9548 AT EX10-LIVE-MBN2 DOT ad DOT kent DOT ac DOT uk> |
Date: | Tue, 18 Jun 2013 18:19:32 +0200 |
Message-ID: | <CANeJNHrAoy5r_eFZMAX-k0HMmc4r-ik2edu7Y+jqn9AFqzcKnA@mail.gmail.com> |
Subject: | Re: What is a good profiling tool ? - problem with gprof |
From: | Ariel Burbaickij <ariel DOT burbaickij AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Uhm, may I ask for some pointers to Altera/Stawberry cygwins -- what is it? On Tue, Jun 18, 2013 at 4:06 PM, J.B.W.Webber <J DOT B DOT W DOT Webber AT kent DOT ac DOT uk> wrote: > > > -----Original Message----- > Subject: Re: What is a good profiling tool ? - problem with gprof > > On Jun 18 12:11, Corinna Vinschen wrote: >> 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. > > Uploaded. Please note that it's *not* enough to install the snapshot Cygwin DLL. The important items here are gcrt0.o and libgmon.a. > > > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Maintainer cygwin AT cygwin DOT com > Red Hat > > _____________________________________________ > > Really thanks to all. That now works. > > Sorry for the slow reply, I did the install with the snapshot as suggested > - no difference, at first, but I had been given the clues I needed. > > I used find to track all libgmon.a on my laptop : > > C:/Altera/12.0sp2/quartus/bin/cygwin/lib/libgmon.a > C:/Altera/12.0sp2/quartus/bin/cygwin/lib/mingw/libgmon.a > C:/Altera/12.0sp2/quartus/bin/cygwin/usr/i686-pc-mingw32/lib/libgmon.a > C:/Applications/Strawberry/c/x86_64-w64-mingw32/lib/libgmon.a > C:/cygwin/lib/libgmon.a > C:/cygwin/usr/i686-pc-mingw32/sys-root/mingw/lib/libgmon.a > C:/cygwin/usr/lib/libgmon.a > > I blocked access to the Altera and Strawberry Cygwins, which made no difference, (no, XMOS does not use Cygwin) > But the answer was the version C:/cygwin/lib/libgmon.a > I copied the new gcrt0.o and libgmon.a into C:/cygwin/lib/ > and all now works fine. I have the answer I needed. > > I do thank you all, > Cheers, > Beau > > -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |