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

Perschbacher, Brent M bmpersc at sandia.gov
Mon Apr 12 08:31:39 MDT 2010


John,
  Something quick to try that should fix this is to delete your CMakeCache.txt file and the CMakeFiles directory and then reconfigure. That should erase any trace of having previously been configured with the wrong fortran compiler.

Brent


On 4/12/10 8:18 AM, "Brad King" <brad.king at kitware.com> wrote:

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

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100412/78db5724/attachment.html 


More information about the Trilinos-Users mailing list