[Trilinos-Users] Trouble configuring Trilinos 10.2.0 on Cray/PGI 11.7

Perschbacher, Brent M bmpersc at sandia.gov
Tue Nov 8 17:01:56 MST 2011


Ben,
  What version of cmake are you using? I know that earlier versions of cmake
were not passing the CMAKE_Fortran_FLAGS set during configure to configure
time tests. I don't recall which version of cmake they fixed this in, but
2.8.4 or newer definitely have that fixed. That should allow you to pass
"-lzceh" to the fortran interface test which should allow it to compile. If
all else fails and you are sure that your C, C++ and Fortran compilers all
work together just fine then you can skip the interface test by setting
Trilinos_SKIP_FORTRANCINTERFACE_VERIFY_TEST to ON which should get you past
this issue.

I would still recommend using 10.8.3 for that as we do test against the pgi
11.1 compiler for that version, but I don't think we had any testing for pgi
with the 10.2.x releases. There might still be some issues with 11.7 that we
haven't fixed, but it is much more likely to work than 10.2.x.


Brent


On 11/8/11 4:38 PM, "Ben Cowan" <benc at txcorp.com> wrote:

> Unfortunately, Trilinos 10.8.3 doesn't work, with either PGI 11.7 or
> 11.8.0.  Same error.
> 
> Ben
> 
> On 11/8/11 15:17 , Bartlett, Roscoe A. wrote:
>> That is 'since added' not 'sense added' :-)
>> 
>> -Ross
>> 
>> 
>>> -----Original Message-----
>>> From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-
>>> bounces at software.sandia.gov] On Behalf Of Bartlett, Roscoe A.
>>> Sent: Tuesday, November 08, 2011 5:09 PM
>>> To: 'Ben Cowan'; trilinos-users at software.sandia.gov
>>> Subject: Re: [Trilinos-Users] Trouble configuring Trilinos 10.2.0 on
>>> Cray/PGI
>>> 11.7
>>> 
>>> Ben,
>>> 
>>> Can you try the most recent Trilinos release 10.8.3?  We have sense added a
>>> nightly build of PGI and 10.8.x might work.
>>> 
>>> -Ross
>>> 
>>> 
>>>> -----Original Message-----
>>>> From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-
>>>> bounces at software.sandia.gov] On Behalf Of Ben Cowan
>>>> Sent: Tuesday, November 08, 2011 5:05 PM
>>>> To: trilinos-users at software.sandia.gov
>>>> Subject: [Trilinos-Users] Trouble configuring Trilinos 10.2.0 on Cray/PGI
>>>> 11.7
>>>> 
>>>> Hello,
>>>> 
>>>> I'm getting the following error when I try to run cmake to configure
>>>> Trilinos 10.2.0 with PGI:
>>>> 
>>>>       /opt/cray/xt-asyncpe/5.01/bin/CC   -DMPICH_IGNORE_CXX_SEEK -fPIC
>>>> CMakeFiles/VerifyFortranC.dir/main.c.o
>>>> CMakeFiles/VerifyFortranC.dir/VerifyC.c.o
>>>> CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o  -o VerifyFortranC
>>>> -L/opt/cray/portals/default/lib64 libVerifyFortran.a -lstdc++
>>>> -lmpichf90_pgi
>>>>       /opt/pgi/11.7.0/linux86-64/11.7/libso/libCmpz.a(eh_util.o): In
>>>> function `std::uncaught_exception(void)':
>>>>       eh_util.c:(.text+0x347): undefined reference to
>>>> `__zceh_uncaught_exception'
>>>>       gmake[2]: *** [VerifyFortranC] Error 2
>>>> 
>>>> This occurs in testing the Fortran/C++ interface.  Now, if I add the
>>>> -lzceh flag before -lstdc++ on that command line, the command succeeds.
>>>>    But I can't figure out how to get that flag included via a cmake
>>>> option.  My original cmake line is:
>>>> 
>>>> cmake
>>>> -
>>>> 
>>> DCMAKE_INSTALL_PREFIX:PATH=/project/projectdirs/facets/hopper/contri
>>>> b-pgi-11.7/trilinos-10.2.0-par
>>>> -DCMAKE_BUILD_TYPE:STRING=Release -
>>>> DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
>>>> -DCMAKE_COLOR_MAKEFILE:BOOL=FALSE  -DTPL_ENABLE_MPI:BOOL=ON
>>>> -DCMAKE_C_COMPILER:FILEPATH='cc' -
>>>> DCMAKE_CXX_COMPILER:FILEPATH='CC'
>>>> -DCMAKE_Fortran_COMPILER:FILEPATH='ftn' -
>>> DCMAKE_C_FLAGS:STRING='-
>>>> fPIC'
>>>> -DCMAKE_CXX_FLAGS:STRING='-DMPICH_IGNORE_CXX_SEEK -fPIC'
>>>> -DCMAKE_Fortran_FLAGS:STRING='-fPIC'
>>>> -DLAPACK_LIBRARY_DIRS:PATH='/opt/acml/default/pgi64/lib'
>>>> -DLAPACK_LIBRARY_NAMES:STRING='acml'
>>>> -DBLAS_LIBRARY_DIRS:PATH='/opt/acml/default/pgi64/lib'
>>>> -DBLAS_LIBRARY_NAMES:STRING='acml' -
>>>> DTrilinos_ENABLE_Amesos:BOOL=ON
>>>> -DTrilinos_ENABLE_ML:BOOL=ON -DTrilinos_ENABLE_AztecOO:BOOL=ON
>>>> -DTrilinos_ENABLE_EpetraExt:BOOL=ON -
>>>> DTrilinos_ENABLE_Epetra:BOOL=ON
>>>> -DTrilinos_ENABLE_Triutils:BOOL=ON -
>>> DTrilinos_ENABLE_Teuchos:BOOL=ON
>>>> -DTrilinos_ENABLE_Ifpack:BOOL=ON -DTrilinos_ENABLE_Galeri:BOOL=ON
>>>> -DDART_TESTING_TIMEOUT:STRING=600
>>>> -
>>>> 
>>> DPYTHON_EXECUTABLE:FILEPATH=/project/projectdirs/facets/hopper/contr
>>>> ib-pgi-11.7/python/bin/python
>>>>    /global/scratch/sd/benc/builds-hopper-pgi/trilinos-10.2.0
>>>> 
>>>> I've tried adding
>>>> 
>>>> -DTrilinos_EXTRA_LINK_FLAGS:STRING="-lzceh"
>>>> 
>>>> as well as CMAKE_EXE_LINKER_FLAGS,
>>>> CMAKE_FORTRAN_IMPLICIT_LINK_LIBRARIES, and
>>>> CMAKE_CXX_IMPLICIT_LINK_LIBRARIES, but none of these seem to work.
>>>> The
>>>> -lzceh flag isn't added at all, let alone in the right place.
>>>> 
>>>> Any thoughts on how to add this flag?
>>>> 
>>>> Thanks,
>>>> Ben
>>>> 
>>>> _______________________________________________
>>>> Trilinos-Users mailing list
>>>> Trilinos-Users at software.sandia.gov
>>>> hxxp://software.sandia.gov/mailman/listinfo/trilinos-users
>>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Trilinos-Users mailing list
>>> Trilinos-Users at software.sandia.gov
>>> hxxp://software.sandia.gov/mailman/listinfo/trilinos-users
>>> 
>> 
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users




More information about the Trilinos-Users mailing list