[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
Hi,
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
/projects/sierra/linux_rh7/install/cmake/3.18.6/share/cmake-3.18/Modules/FortranCInterface.cmake:383
(message):
The Fortran compiler:
/projects/sierra/linux_rh7/SDK/mpi/intel/2018.4/compilers_and_libraries_2018.5.274/linux/mpi/intel64/bin/mpif90
and the CXX compiler:
/projects/sierra/linux_rh7/SDK/mpi/intel/2018.4/compilers_and_libraries_2018.5.274/linux/mpi/intel64/bin/mpicxx
failed to compile a simple test project using both languages. The output
was:
Change Dir:
/scratch/mhamilt/sierra_code/objs/tpls/trilinos/220ca54cc9ce4bcb/CMakeFiles/FortranCInterface/VerifyCXX
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
CMakeFiles/VerifyFortran.dir/VerifyFortran.f-pp.f
ifort: command line warning #10006: ignoring unknown option '-w0'
[5/8] Generating Fortran dyndep file
CMakeFiles/VerifyFortran.dir/Fortran.dd
[6/8] Building Fortran object
CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o
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
`for_write_seq_lis'
ninja: build stopped: subcommand failed.
Call Stack (most recent call first):
cmake/tribits/core/package_arch/TribitsFortranMangling.cmake:50
(FortranCInterface_VERIFY)
cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:2143 (INCLUDE)
cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:193
(TRIBITS_SETUP_ENV)
cmake/tribits/core/package_arch/TribitsProject.cmake:93
(TRIBITS_PROJECT_IMPL)
CMakeLists.txt:90 (TRIBITS_PROJECT)
--
----------------
Mark E. Hamilton
Engineering Sciences Center
Senior Member of Technical Staff
Sandia National Laboratories
505-844-7666
More information about the Trilinos-Users
mailing list