Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: Re: Is profiling broken? From: "Timothy C Prince" To: marklist AT fangorn DOT ca CC: cygwin AT cygwin DOT com Date: Wed, 13 Aug 2003 21:42:38 +0000 X-Sender: tprince MIME-Version: 1.0 Message-ID: <1060810958.8edd2f00tprince@myrealbox.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h7DLhBK05429 -----Original Message----- From: Mark Blackburn To: cygwin AT cygwin DOT com Date: Wed, 13 Aug 2003 17:08:04 -0400 Subject: Is profiling broken? Whenever I try to compile with gcc -p I get "undefined reference to `mcount'". AFAIK, only -pg profiling is supported in cygwin, and it links correctly only when mingw is not installed. It looks like you are not searching the correct library, which will be found if you link with -pg, but avoid linking against mingw runtime. 2 of the build failures reported by most gcc testsuite runs are provoked by this issue. It's not severely broken, but it might be nice if it would work "out of the box," for gcc, if not for g77. Tim Prince -- 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/