all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: guix-devel@gnu.org
Subject: Re: GFortran can’t find system headers
Date: Tue, 15 Oct 2013 22:17:53 +0200	[thread overview]
Message-ID: <87hacijnke.fsf@gnu.org> (raw)
In-Reply-To: <87wqlfutme.fsf@karetnikov.org> (Nikita Karetnikov's message of "Tue, 15 Oct 2013 06:59:21 +0400")

Nikita Karetnikov <nikita@karetnikov.org> skribis:

> I’m trying to package APL, which requires LAPACK, which requires
> Fortran.

Cool.

> Here’s my attempt to add the last one:
>
> (define-public gfortran-4.8
>   (package (inherit gcc-4.8)
>     (name "gfortran")
>     (arguments `(#:configure-flags '("--enable-languages=fortran")))))
>
> I get the following error while trying to build it:
>
> The directory that should contain system headers does not exist:
>   /usr/include

Yes, the problem is that the your ‘arguments’ field above completely
overrides that of ‘gcc-4.8’.

Instead, what should do is preserve the arguments; the value associated
with #:configure-flags should be changed to replace any
--enable-languages=.* flag with yours.  See ‘gcc-boot0’ in base.scm for
how to do that.

Alternately, you could turn the current ‘gcc-4.8’ definition into a
‘make-gcc-4.8’ procedure like this:

  (define* (make-gcc-4.8 #:key languages)
    (package
       ...

       #:configure-flags ... ,(string-join languages ",")

       ...))

  (define gcc-4.8
    (make-gcc-4.8 #:languages '("c" "c++")))

That would probably be easier to work with.

HTH,
Ludo’.

  reply	other threads:[~2013-10-15 20:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15  2:59 GFortran can’t find system headers Nikita Karetnikov
2013-10-15 20:17 ` Ludovic Courtès [this message]
2013-10-17 12:59   ` Nikita Karetnikov
2013-10-17 15:29     ` Ludovic Courtès
2013-10-19  8:58       ` GCC front-ends (was: GFortran can’t find system headers) Nikita Karetnikov
2013-10-26 20:08         ` GCC front-ends Ludovic Courtès
2013-10-27 10:39           ` Andreas Enge
2013-10-28 13:07             ` Ludovic Courtès
2013-10-29  8:39               ` Andreas Enge
2013-10-29 10:32                 ` Ludovic Courtès
2013-10-28 23:23           ` Nikita Karetnikov
2013-10-28 23:23             ` Ludovic Courtès
2013-10-28 23:38               ` Nikita Karetnikov
2013-10-31 20:13           ` [PATCH] gnu: Add GCC front ends for Fortran, Go, Objective C, and Objective C++ Nikita Karetnikov
2013-10-31 22:19             ` Ludovic Courtès
2013-11-01 21:00               ` Nikita Karetnikov
2013-11-01 22:41                 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hacijnke.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=nikita@karetnikov.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.