help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error when installing package, CMAKE_Fortran_COMPILER could be found


From: Tobias Geerinckx-Rice
Subject: Error when installing package, CMAKE_Fortran_COMPILER could be found
Date: Fri, 24 Nov 2023 16:53:42 +0000

close 67416
thanks

(The above is for the Debbugs control bot.  The bug-guix@ address is for 
reporting shortcomings in Guix.  For general support, please use help-guix@.  
I've moved this discussion there.)

Hi Pierre,

It appears that you haven't given the package a FORTRAN compiler to find.  Try

  (native-inputs (list gfortran))

to add one to the build environment.  Do not waste time 'guix install'ing 
anything, this will have 0 effect.

If the build system still won't find gfortran, try

  (arguments
    `(
      ...
      #:phases
      (modify-phases %standard-phases
        (add-before 'configure 'find-gfortran
          (lambda _
            (setenv "FC" (which "gfortran"))))))

or so.  Untested example, assuming the compiler binary is also named 'gfortran'.

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]