Problema con gprof en OS X: [programa] no es de la arquitectura del host

Estoy teniendo problemas para corrergprof en OS X. El archivotest.c es:

#include <stdio.h>

int main() {
  printf("Hello, World!\n");
  return 0;
}

y mi terminal se ve como:

$ 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: además, no genera el archivo.gmon.out.

¿Que está pasando aqui?

Respuestas a la pregunta(3)

Su respuesta a la pregunta