Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #494

Closed
Open
Created Jul 12, 2016 by James Willenbring@jmwilleOwner

Trilinos_ENABLE_FORTRAN=OFF still complains that it can't find Fortran compiler

Created by: leonavery

I'm trying to build trilinos on a Mac, thus without Fortran. I thought this would be straightforward. I start with cmake -D Trilinos_ENABLE_FORTRAN=OFF trilinos-12.6.3-Source, which creates a bunch of output that I attach below. The key point, though, is that it ends with

CMake Error at cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:1669     (ENABLE_LANGUAGE):
  No CMAKE_Fortran_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
  path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:188 (TRIBITS_SETUP_ENV)
  cmake/tribits/core/package_arch/TribitsProject.cmake:93 (TRIBITS_PROJECT_IMPL)
  CMakeLists.txt:90 (TRIBITS_PROJECT)


-- Configuring incomplete, errors occurred!
See also "/Users/lavery/Documents/OneDrive/fenics/CMakeFiles/CMakeOutput.log".
See also "/Users/lavery/Documents/OneDrive/fenics/CMakeFiles/CMakeError.log".

I also tried to fool it with CMAKE_Fortran_COMPILER=/usr/bin/true, but it's too smart for that.

So how do I build without Fortran? I assume the existence of the Trilinos_ENABLE_FORTRAN=OFF option means this is supposed to be possible -- what am I doing wrong?

Thanks.

trilinos_cmake.TXT

Assignee
Assign to
Time tracking