[Trilinos-Users] 10.0 CMake problem

Jack Chessa jfchessa at utep.edu
Sun Oct 4 17:06:59 MDT 2009

I am having some problems building 10.0 on an intel mac with OSX 10.5.7

I am getting the linking problems

   Linking CXX executable VerifyFortranC
    "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E  
cmake_link_script CMakeFiles/VerifyFortranC.dir/link.txt --verbose=1
    /usr/bin/c++    -mmacosx-version-min=10.5 -Wl,-search_paths_first - 
headerpad_max_install_names -fPIC CMakeFiles/VerifyFortranC.dir/ 
main.c.o CMakeFiles/VerifyFortranC.dir/VerifyC.c.o CMakeFiles/ 
VerifyFortranC.dir/VerifyFortran.f.o CMakeFiles/VerifyFortranC.dir/ 
VerifyCXX.cxx.o  -o VerifyFortranC
    Undefined symbols:
      "__gfortran_st_write_done", referenced from:
          _verifyfortran_ in VerifyFortran.f.o
      "__gfortran_transfer_character", referenced from:
          _verifyfortran_ in VerifyFortran.f.o
      "__gfortran_st_write", referenced from:
          _verifyfortran_ in VerifyFortran.f.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make[2]: *** [VerifyFortranC] Error 1
    make[1]: *** [CMakeFiles/VerifyFortranC.dir/all] Error 2
    make: *** [all] Error 2

Call Stack (most recent call first):
  cmake/TrilinosFortranMangling.cmake:11 (FortranCInterface_VERIFY)
  cmake/TrilinosProbeEnv.cmake:60 (INCLUDE)
  CMakeLists.txt:332 (INCLUDE)

I think I need to add
-lgfortran to the linking flags, but I am having a hard time finding  
where this is in CMake?


More information about the Trilinos-Users mailing list