[Trilinos-Users] Fwd: xyce/trilinos : linker with fortran into Cmake

jlb babigeon at lal.in2p3.fr
Thu Feb 1 10:30:19 EST 2018


With files, sorry



-------- Forwarded Message --------
Subject: 	xyce/trilinos : linker with fortran into Cmake
Date: 	Thu, 1 Feb 2018 16:23:13 +0100
From: 	jlb <babigeon at lal.in2p3.fr>
To: 	trilinos-users at trilinos.org



To users,

I try to compile Xyce, with trilinos, but build is not entirely succesful.
I included here my do-configure file and a log.
Apparently, internal variable of Cmake, CMAKE_Fortran_LINK_EXECUTABLE, 
is not set properly.

Probably 1 more lign could SET that variable ?

My configuration :

jlb at pcsera48:/proc$ lscpu

Architecture : x86_64

Processeur(s) : 4
Liste de processeur(s) en ligne : 0-3
Thread(s) par cœur : 2
Cœur(s) par socket : 2
Socket(s) : 1
Identifiant constructeur : GenuineIntel
Famille de processeur : 6
Modèle : 58
Nom de modèle : Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
Révision : 9
Vitesse du processeur en MHz : 1600.000
Vitesse maximale du processeur en MHz : 3300,0000
Vitesse minimale du processeur en MHz : 1600,0000
BogoMIPS : 6584.91
Virtualisation : VT-x
Cache L1d : 32K
Cache L1i : 32K
Cache L2 : 256K
Cache L3 : 3072K
Nœud NUMA 0 de processeur(s) : 0-3
(64 bits, 4 core)

I have all compilers gcc, g++, gfortran and wrappers Cmake implemented.

Thanks to help me
Best Regards
JLuc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20180201/063f0293/attachment-0001.html>
-------------- next part --------------
#!/bin/bash
SRCDIR=/opt/trilinos-12.12.1-Source
ARCHDIR=/opt/Xyce-6.8/XyceLibs/Serial
FLAGS="-O3 -fPIC -std=c++11"
cmake \
-G "Unix Makefiles" \
-DCMAKE_C_COMPILER=gcc \
      -DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_Fortran_COMPILER=gfortran \
-DCMAKE_CXX_FLAGS="$FLAGS" \
-DCMAKE_C_FLAGS="$FLAGS" \
-DCMAKE_Fortran_FLAGS="$FLAGS" \
-DCMAKE_INSTALL_PREFIX=$ARCHDIR \
-DCMAKE_MAKE_PROGRAM="make" \
-DTrilinos_ENABLE_NOX=ON \
  -DNOX_ENABLE_LOCA=ON \
-DTrilinos_ENABLE_EpetraExt=ON \
  -DEpetraExt_BUILD_BTF=ON \
  -DEpetraExt_BUILD_EXPERIMENTAL=ON \
  -DEpetraExt_BUILD_GRAPH_REORDERINGS=ON \
-DTrilinos_ENABLE_TrilinosCouplings=ON \
-DTrilinos_ENABLE_Ifpack=ON \
-DTrilinos_ENABLE_Isorropia=ON \
-DTrilinos_ENABLE_AztecOO=ON \
-DTrilinos_ENABLE_Belos=ON \
  -DTrilinos_ENABLE_Teuchos=ON \
  -DTrilinos_ENABLE_Sundance=OFF \
-DTeuchos_ENABLE_COMPLEX=ON \
  -DTrilinos_ENABLE_Amesos=ON \
  -DAmesos_ENABLE_KLU=ON \
-DTrilinos_ENABLE_Sacado=ON \
  -DTrilinos_ENABLE_Kokkos=OFF \
  -D Trilinos_ENABLE_MueLu:BOOL=ON \
-D MueLu_ENABLE_TESTS:STRING=ON \
-D MueLu_ENABLE_EXAMPLES:STRING=ON \
  -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=OFF \
  -DTrilinos_ENABLE_CXX11=ON \
-DTPL_ENABLE_AMD=ON \
-DAMD_LIBRARY_DIRS="/usr/lib;/usr/include/suitesparse" \
-DTPL_AMD_INCLUDE_DIRS="/usr/include/suitesparse" \
  -DBUILD_SHARED_LIBS=ON \
  -DTPL_ENABLE_MATIO=ON \
  -DMATIO_LIBRARY_DIRS="/usr/local/lib" \
  -DTPL_MATIO_LIBRARIES="/usr/local/lib/libmatio.so;/usr/local/lib/libmatio.la" \
-DTPL_ENABLE_BLAS=ON \
-DBLAS_LIBRARY_DIRS="/usr/lib/;/usr/lib/libblas" \
-DTPL_BLAS_LIBRARIES="/usr/lib/libblas.so.3" \
-DTPL_ENABLE_LAPACK=ON \
-D LAPACK_LIBRARY_DIRS="/usr/lib;/usr/lib/lapack" \
-DTPL_LAPACK_LIBRARIES="/usr/lib/lapack/liblapack.so.3" \
-D CMAKE_BUILD_TYPE=DEBUG \
$SRCDIR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TrilinosConfig_install.cmake
Type: text/x-cmake
Size: 18577 bytes
Desc: not available
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20180201/063f0293/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linker.log
Type: text/x-log
Size: 4650 bytes
Desc: not available
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20180201/063f0293/attachment-0003.bin>


More information about the Trilinos-Users mailing list