Problema com o gprof no OS X: [program] não é da arquitetura do host
Estou com problemas para executargprof
no OS X. O arquivotest.c
é:
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
e meu terminal parece:
$ gcc -pg test.c
$ gcc -pg -o test test.c
$ ./test
Hello, World!
$ gprof test
gprof: file: test is not of the host architecture
Edit: também, não gera o arquivogmon.out
.
Oque esta acontecendo aqui?