[Trilinos-Users] Trilinos configure failure when switching to cmake-3.17.5

Mark E. Hamilton mhamilt at sandia.gov
Fri Feb 12 15:23:39 MST 2021


We tried switching sierra's build of Trilinos from cmake-3.12.2 to 
cmake-3.17.5 (and cmake-3.18.6.) With the older version of cmake it 
builds; with the new version(s) it fails to configure with the error 
shown below. I'm sure our local trilinos/cmake expert would know the 
answer, but he's out until next week. Is this an obvious error? We are 
using intel-19.0.3 and intelmpi-2018.4. I can provide the entire config 
phase output if that would help.

-- Verifying Fortran/CXX Compiler Compatibility - Failed
CMake Error at 
   The Fortran compiler:


   and the CXX compiler:


   failed to compile a simple test project using both languages.  The output

     Change Dir: 

     Run Build Command(s):/usr/netpub/ninja/ninja VerifyFortranC && 
[1/8] Building C object CMakeFiles/VerifyFortranC.dir/main.c.o
     [2/8] Building CXX object CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o
     [3/8] Building C object CMakeFiles/VerifyFortranC.dir/VerifyC.c.o
     [4/8] Building Fortran preprocessed 
     ifort: command line warning #10006: ignoring unknown option '-w0'
     [5/8] Generating Fortran dyndep file 
     [6/8] Building Fortran object 
     ifort: command line warning #10006: ignoring unknown option '-w0'
     [7/8] Linking Fortran static library libVerifyFortran.a
     [8/8] Linking CXX executable VerifyFortranC
     [8/8] Linking CXX executable VerifyFortranC
     FAILED: VerifyFortranC
     libVerifyFortran.a(VerifyFortran.f.o): In function `verifyfortran_':
     VerifyFortran.f-pp.f:(.text+0x3b): undefined reference to 
     ninja: build stopped: subcommand failed.

Call Stack (most recent call first):
   cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:2143 (INCLUDE)
   CMakeLists.txt:90 (TRIBITS_PROJECT)

Mark E. Hamilton
Engineering Sciences Center
Senior Member of Technical Staff
Sandia National Laboratories

More information about the Trilinos-Users mailing list