[Trilinos-Users] Trilinos Mac gfortran compatibility

Jesse Chan jchan985 at gmail.com
Tue Dec 20 07:18:27 MST 2011


Hi all
I'm compiling an MPI build of Trilinos 10.8.4 on a 2010 Macbook Pro
with Snow Leopard.  When configuring, cmake complains of failure in
"Verifying Fortran/CXX Compiler Compatibility".  The error is

    /usr/bin/mpicxx    -Wl,-search_paths_first
-Wl,-headerpad_max_install_names
CMakeFiles/VerifyFortranC.dir/main.c.o
CMakeFiles/VerifyFortranC.dir/VerifyC.c.o
CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o  -o VerifyFortranC
-L/usr/local/lib/gcc/x86_64-apple-darwin10.7.0/4.6.0 -L/usr/local/lib
libVerifyFortran.a -lgfortran -lquadmath -lm
    Undefined symbols:
      "_VerifyFortran", referenced from:
          _main in main.c.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

If I skip over this test using

-D Trilinos_SKIP_FORTRANCINTERFACE_VERIFY_TEST:BOOL= TRUE \

then Trilinos compiles fine and passes tests (at least with -np 1).
However, if I then attempt to link in the compiled libraries to a C++
program, I get the complaint

Undefined symbols:
  "__g95_sign_r4", referenced from:
      _az_slaic1__ in libaztecoo.a(az_f_util.f.o)
      _az_slaic1__ in libaztecoo.a(az_f_util.f.o)
      _az_slaic1__ in libaztecoo.a(az_f_util.f.o)
      _az_slaic1__ in libaztecoo.a(az_f_util.f.o)
  "__g95_sign_r8", referenced from:
      _az_dlaic1__ in libaztecoo.a(az_f_util.f.o)
      _az_dlaic1__ in libaztecoo.a(az_f_util.f.o)
      _az_dlaic1__ in libaztecoo.a(az_f_util.f.o)
      _az_dlaic1__ in libaztecoo.a(az_f_util.f.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

However, everything is built using a fresh build of gfortran.  In
summary: config file complained during Fortran/C compatibility check,
but builds and passes tests if I skip the check.  However, linking in
Trilinos fails - are these two compilation issues related, or is there
just something obvious I've missed in building AztecOO?

Thanks

- Jesse



More information about the Trilinos-Users mailing list