[Trilinos-Users] Compiling on a blue gene
Brad King
brad.king at kitware.com
Wed Nov 11 07:56:34 MST 2009
John R. Cary wrote:
> cmake -D CMAKE_Fortran_COMPILER:FILEPATH=xlf95_r -D
> CMAKE_CXX_COMPILER:FILEPATH=xlC_r -D CMAKE_C_COMPILER:FILEPATH=xlc_r
[snip]
> /gpfs/software/linux-sles10-ppc64/apps/ibmcmp-aug2009/vacpp/bg/9.0/bin/xlC_r
> 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
> -L/soft/apps/ibmcmp-aug2009/xlf/bg/11.1/lib -lgcc_eh -lgcc_eh -lxlf90
> -lxlomp_ser -lxlfmath -ldl -lrt -lgcc_eh
> CMakeFiles/VerifyFortranC.dir/main.c.o: In function `main':
>
> /gpfs/home/projects/facets/intrepid/contrib/cmake-2.8.0-rc3-ser/share/cmake-2.8/Modules/FortranCInterface/Verify/main.c:(.text+0x14):
> undefined reference to `VerifyFortran'
> Looks like a Fortran name mangling issue.
Look at CMakeFiles/FortranCInterface/Output.cmake to see what mangling
was detected, if any. The XL compiler's mangling is supposed to be
known. What is the output of this:
nm CMakeFiles/FortranCInterface/libmyfort.a
?
Thanks,
-Brad
More information about the Trilinos-Users
mailing list