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 |