Gentoo Archives: gentoo-user

From: Kfir Lavi <lavi.kfir@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] emerge package with profiling flags -pg
Date: Sun, 19 Jun 2011 17:06:43
Message-Id: BANLkTin9pJpmeF30u-fLHCSkntQJ_Yr_eg@mail.gmail.com
1 Hi,
2 I would like to profile my program, so would like to compile it with the -pg
3 flag,
4 to be able to profile it with gprof.
5 Running the emerge like that produce:
6 CFLAGS="$CFLAGS -pg" emerge MY_PROG
7 Gives me the error:
8 -- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc
9 -- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- broken
10 CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52
11 (MESSAGE):
12 The C compiler "/usr/bin/i686-pc-linux-gnu-gcc" is not able to compile a
13 simple test program.
14
15 This problem will not occur if I just emerge the program:
16 emerge MY_PROG
17
18 Any help will be appreciated.
19 Regards,
20 Kfir

Replies

Subject Author
[gentoo-user] Re: emerge package with profiling flags -pg Kfir Lavi <lavi.kfir@×××××.com>