|
From: Thomas M. <tho...@gm...> - 2014-10-02 07:54:56
|
Hello!
I have come across a problem compiling valgrind with MPI support
(using the intel mpicc). The configure script hangs at the line:
checking primary target for usable MPI2-compliant C compiler and mpi.h...
I can see several mpicc processes running. When I hit CTRL+C to check
the config.log, I see the command:
configure:10780: /path/to/mpicc -o conftest -g -O
-fno-omit-frame-pointer -Wall -fpic -m64 -fpic -shared -m64
conftest.c >& 5
I saved the conftest.c and issued the command:
/path/to/mpicc -o conftest -g -O -fno-omit-frame-pointer -Wall -fpic
-m64 -fpic -shared -m64 conftest.c
The compiler issues a warning:
conftest.c(96): remark #111: statement is unreachable
return 0;
^
but produces the binary conftest nevertheless. However, when I execute
it I get a segfault.
When I compile it with /path/to/mpicc -o conftest -g -O
-fno-omit-frame-pointer -Wall -fpic -m64 -fpic -shared-intel -m64
conftest.c
i.e. "-shared-intel" instead of plain "-shared", I do not get the
segfault upon execution.
So I tried to change the LDFLAGS_MPI in configure to
LDFLAGS_MPI="-fpic -shared-intel". But that did not help in getting
past the "primary target test".
Now my question is: how can I get valgrind to compile with MPI support (intel)?
Thank you,
Thomas
|