[Trilinos-Users] trilinos configure failure using pathscale
John R. Cary
cary at colorado.edu
Tue Feb 16 10:58:17 MST 2010
Thanks. Got past configure.
Now trying to get around
inos-10.0.4p1/par/packages/epetra/src
-I/project/projectdirs/vorpal/cary/projects/vpall-franklin/builds-path/trilinos/packages/epetra/src
-o CMakeFiles/epetra.dir/Epetra_C_wrappers.cpp.o -c
/project/projectdirs/vorpal/cary/projects/vpall-franklin/builds-path/trilinos/packages/epetra/src/Epetra_C_wrappers.cpp
/opt/cray/xt-asyncpe/3.3/bin/CC: INFO: linux target is being used
In file included from /opt/mpt/3.5.0/xt/mpich2-pathscale/include/mpi.h:1110,
from
/project/projectdirs/vorpal/cary/projects/vpall-franklin/builds-path/trilinos/packages/epetra/src/Epetra_C_wrappers.cpp:33:
/opt/mpt/3.5.0/xt/mpich2-pathscale/include/mpicxx.h:26:2: error: #error
"SEEK_SET is #defined but must not be for the C++ binding of MPI"
/opt/mpt/3.5.0/xt/mpich2-pathscale/include/mpicxx.h:30:2: error: #error
"SEEK_CUR is #defined but must not be for the C++ binding of MPI"
/opt/mpt/3.5.0/xt/mpich2-pathscale/include/mpicxx.h:35:2: error: #error
"SEEK_END is #defined but must not be for the C++ binding of MPI"
make[2]: ***
[packages/epetra/src/CMakeFiles/epetra.dir/Epetra_C_wrappers.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Do I do
CMAKE_CXX_FLAGS=-DMPICH_IGNORE_CXX_SEEK
to have this flag added into any kind of build? (DEBUG, RELEASE, etc.)...
Or will this overwrite the other flags?
Thx....John
On 2/16/2010 8:44 AM, Brad King wrote:
> John R Cary wrote:
>
>> Brad King wrote:
>>
>>> Please send me (off list) a tarball of the CMakeFiles/FortranCInterface
>>> directory from the build tree.
>>>
>> Here is the full CmakeFiles directory.
>>
> Try applying the patch below to the CMake Modules directory.
>
> -Brad
>
> diff --git a/Modules/FortranCInterface/my_module_.c b/Modules/FortranCInterface/my_module_.c
> index 0d7091f..364b214 100644
> --- a/Modules/FortranCInterface/my_module_.c
> +++ b/Modules/FortranCInterface/my_module_.c
> @@ -1,2 +1,8 @@
> +#if defined(__PATHSCALE__)
> +/* PathScale Fortran wants my_module_ when calling any my_module symbol,
> + but module symbols use '.in.' so we cannot provide them anyway. */
> +void pathscale_my_module_(void) {}
> +#else
> /* PGI Fortran wants my_module_ when calling any my_module symbol. */
> void my_module_(void) {}
> +#endif
>
>
More information about the Trilinos-Users
mailing list