From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QYLSN-0004Pe-HA for garchives@archives.gentoo.org; Sun, 19 Jun 2011 17:06:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2667A1C104 for ; Sun, 19 Jun 2011 17:06:43 +0000 (UTC) Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by pigeon.gentoo.org (Postfix) with ESMTP id E7AD71C0A9 for ; Sun, 19 Jun 2011 16:48:01 +0000 (UTC) Received: by pzk6 with SMTP id 6so10528pzk.40 for ; Sun, 19 Jun 2011 09:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=XHedKUZQ9ZxN+SRkTyqUNI4fCPsopcAj2WQvOxvzhxo=; b=iJGL7NfZDIy6ffmL9hZRMZb2snK1hoCm9hcXsRHJb9nkVPDmcBpCCgB5d33pJVJbpO yz7c8izuCr8SDIFtBAv06vn8kZ/bqQojab8yyrRY+owj7TfkTe8UAnLWRwNir88xnRYa QdDyzouQ/RMqFCSK8bZbs73WP9CfBkc5kzavU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=BEFGzKUNpoEgRR7I7CkySzhjLIzYbO0HCCTVbhbXMOQm2UHvcdZZwg5gnXYVPa5pVR 6KPfz1UR8SoGbG59lkY9PNMlG6lFEOIq4umHGbaZgkU+S/2RJYxbQxnyyeSyJWFoMbsz ebiPI8MnWo7HP07dMiw1uvTNKc9kWc/NEDkUI= Received: by 10.142.7.17 with SMTP id 17mr648418wfg.69.1308502081213; Sun, 19 Jun 2011 09:48:01 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.143.60.1 with HTTP; Sun, 19 Jun 2011 09:47:41 -0700 (PDT) From: Kfir Lavi Date: Sun, 19 Jun 2011 19:47:41 +0300 Message-ID: Subject: [gentoo-user] emerge package with profiling flags -pg To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=0016368e2311bd148a04a6136139 X-Archives-Salt: X-Archives-Hash: be851001d1f45d364143f53a364f164d --0016368e2311bd148a04a6136139 Content-Type: text/plain; charset=UTF-8 Hi, I would like to profile my program, so would like to compile it with the -pg flag, to be able to profile it with gprof. Running the emerge like that produce: CFLAGS="$CFLAGS -pg" emerge MY_PROG Gives me the error: -- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- broken CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "/usr/bin/i686-pc-linux-gnu-gcc" is not able to compile a simple test program. This problem will not occur if I just emerge the program: emerge MY_PROG Any help will be appreciated. Regards, Kfir --0016368e2311bd148a04a6136139 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
I would like to profile my program, so would like t= o compile it with the -pg flag,
to be able to profile it with gprof.Running the emerge like that produce:
CFLAGS=3D"$CFLAGS -pg" = emerge MY_PROG
Gives me the error:
-- Check for working C compiler: /usr/bin/i686-pc-li= nux-gnu-gcc
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-= gcc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler= .cmake:52 (MESSAGE):
=C2=A0 The C compiler "/usr/bin/i686-pc-linux-gnu-gcc" is not abl= e to compile a
=C2=A0 simple test program.

This problem will not = occur if I just emerge the program:
emerge MY_PROG

Any help will = be appreciated.
Regards,
Kfir
--0016368e2311bd148a04a6136139--