From: Kfir Lavi <lavi.kfir@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] emerge package with profiling flags -pg
Date: Sun, 19 Jun 2011 19:47:41 +0300 [thread overview]
Message-ID: <BANLkTin9pJpmeF30u-fLHCSkntQJ_Yr_eg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 652 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 764 bytes --]
next reply other threads:[~2011-06-19 17:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-19 16:47 Kfir Lavi [this message]
2011-06-19 17:13 ` [gentoo-user] Re: emerge package with profiling flags -pg Kfir Lavi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTin9pJpmeF30u-fLHCSkntQJ_Yr_eg@mail.gmail.com \
--to=lavi.kfir@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox