GNU bug report logs - #67416
Error when installing package, CMAKE_Fortran_COMPILER could be found

Previous Next

Package: guix;

Reported by: Pierre Clouzet <pierre.clouzet <at> inria.fr>

Date: Thu, 23 Nov 2023 22:00:02 UTC

Severity: normal

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

Full log


Message #7 received at control <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Pierre Clouzet <pierre.clouzet <at> inria.fr>, help-guix <at> gnu.org
Cc: control <at> debbugs.gnu.org
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.




This bug report was last modified 1 year and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.