[Trilinos-Users] 10.0.5 fails to configure with pgi-9.0.4

Brad King brad.king at kitware.com
Mon Apr 12 08:18:49 MDT 2010


John R Cary wrote:
> On Apr 12, 2010, at 6:44 AM, Brad King wrote:
>> Please post these files and CMakeFiles/CMake*Compiler.cmake for us
>> to review.
> Here you go.  Thanks....John Cary

In CMake*Compiler.cmake I see:

SET(CMAKE_C_COMPILER "/global/common/carver/usg/pgi/10.0-0/linux86-64/10.0/bin/pgcc")
...
SET(CMAKE_C_IMPLICIT_LINK_LIBRARIES "nspgc;pgc;m;c")
SET(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/global/common/carver/usg/pgi/10.0-0/linux86-64/10.0/lib;/usr/lib64;/usr/lib/gcc/x86_64-redhat-linux/4.1.2")

SET(CMAKE_CXX_COMPILER "/global/common/carver/usg/pgi/10.0-0/linux86-64/10.0/bin/pgCC")
...
SET(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "std;C;nspgc;pgc;m;c")
SET(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/global/common/carver/usg/pgi/10.0-0/linux86-64/10.0/lib;/usr/lib64;/usr/lib/gcc/x86_64-redhat-linux/4.1.2")

SET(CMAKE_Fortran_COMPILER "/global/common/carver/usg/pgi/10.0-0/linux86-64/10.0/bin/pgf77")
...
SET(CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "pgftnrtl;nspgc;pgc;rt;pthread;m;c")
SET(CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES "/global/common/carver/usg/pgi/10.0-0/linux86-64/10.0/lib;/usr/lib64;/usr/lib/gcc/x86_64-redhat-linux/4.1.2")

However, your sample command line had this:

  -DCMAKE_Fortran_COMPILER=pgf90

which is not the 'pgf77' stored in CMakeFortranCompiler.cmake.
Also, the error message reported the C++ compiler as

  /opt/pgi/9.0.4/linux86-64/9.0-4/bin/pgCC

It looks like something switched compilers since the build tree was
created.

-Brad



More information about the Trilinos-Users mailing list