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: GCC front-ends
Date: Tue, 29 Oct 2013 00:23:58 +0100	[thread overview]
Message-ID: <87eh75ughd.fsf@gnu.org> (raw)
In-Reply-To: <87r4b5ou8f.fsf@karetnikov.org> (Nikita Karetnikov's message of "Tue, 29 Oct 2013 03:23:28 +0400")

Nikita Karetnikov <nikita@karetnikov.org> skribis:

>> That’s a bug, which may have been fixed in 4.8.2 no?  I’d rather not
>> workaround that if it’s been/being fixed.
>
> No, it has not been fixed.  Well, the previous patch didn’t contain any
> workarounds.  However, users would have to pass ‘-g’ each time they
> decide to compile anything.  Otherwise, their binaries will not work.
> Can we do anything about it?

I’d say that it’s not our business (above all, I’m surprised the Go
front-end is this broken.)

>> So the mapping has to be done in builder-side code, not in host-side
>> code, like ‘gcc-cross-boot0’ does.
>
>> Something like:
>
>>   `(cons "--enable-languages=" ,(string-join languages ",")
>>          (remove (cut string-match "--enable-languages.*" <>) ,flags))
>
> (define (custom-gcc gcc name languages)
>   (package (inherit gcc)
>     (name name)
>     (arguments
>      (substitute-keyword-arguments (package-arguments gcc)
>        ((#:configure-flags flags)
>         `(cons "--enable-languages=" ,(string-join languages ",")
>                (remove (cut string-match "--enable-languages.*" <>)
>                        ,flags)))
>        ((#:modules _)
>         '((guix build gnu-build-system)
>           (guix build utils)
>           (srfi srfi-1)))))))
>
> (define-public gfortran-4.8
>   (custom-gcc gcc-4.8 "gfortran" '("fortran")))
>
> The above code fails.

Argh, you also need (srfi srfi-26) for ‘cut’, sorry about that.

HTH,
Ludo’.

  reply	other threads:[~2013-10-28 23:24 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
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 [this message]
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=87eh75ughd.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.