This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Problems with Fortran/Cxx compatibility when building with dorsal

0 votes

I am on Ubuntu 13.04 and I want to build fenics from source using the dorsal script. It fails with the message

-- Fortran name mangling: LOWER UNDER
-- Verifying Fortran/CXX Compiler Compatibility
-- Verifying Fortran/CXX Compiler Compatibility - Failed
CMake Error at /usr/share/cmake-2.8/Modules/FortranCInterface.cmake:288 (message):
  The Fortran compiler:

    /usr/bin/mpif90

  and the CXX compiler:

    /usr/bin/mpicxx

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

    Change Dir: /home/thrasher/software/FEniCS/src/trilinos-11.0.3-Source/dorsal_build_dir/CMakeFiles/FortranCInterface/VerifyCXX 
[ .... ]

What can I do? The complete output is at http://pastebin.com/zS9Us3VH .

asked Jul 10, 2013 by Jan FEniCS User (8,290 points)

1 Answer

+1 vote
 
Best answer

From the output, you can see that some CMake variables have changed, which requires the CMake cache to be deleted:

-- Configuring incomplete, errors occurred!
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= mpicc
CMAKE_CXX_COMPILER= mpicxx
CMAKE_Fortran_COMPILER= mpif90

Try deleting the dorsal_build_dir in the Trilinos source directory. In your case this will be

rm -rf /home/thrasher/software/FEniCS/src/trilinos-11.0.3-Source/dorsal_build_dir

Then run dorsal again.

answered Jul 10, 2013 by johannr FEniCS Expert (17,350 points)
selected Jul 11, 2013 by Jan

Thank you! I will try this when I am back at my notebook.

Yes, this solved my issue.

...