From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: GCC front-ends Date: Tue, 29 Oct 2013 03:23:28 +0400 Message-ID: <87r4b5ou8f.fsf@karetnikov.org> References: <87wqlfutme.fsf@karetnikov.org> <87hacijnke.fsf@gnu.org> <87ppr4giie.fsf@karetnikov.org> <8738nzdig1.fsf@gnu.org> <87hacdmyc2.fsf_-_@karetnikov.org> <87bo2bkd7f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vaw50-0005hL-5i for guix-devel@gnu.org; Mon, 28 Oct 2013 19:18:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vaw4z-0006h3-5x for guix-devel@gnu.org; Mon, 28 Oct 2013 19:18:38 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > That=E2=80=99s a bug, which may have been fixed in 4.8.2 no? I=E2=80=99d= rather not > workaround that if it=E2=80=99s been/being fixed. No, it has not been fixed. Well, the previous patch didn=E2=80=99t contain= any workarounds. However, users would have to pass =E2=80=98-g=E2=80=99 each t= ime they decide to compile anything. Otherwise, their binaries will not work. Can we do anything about it? > GNAT and GCJ are definitely trickier, so I=E2=80=99d suggest to leave the= m for now. OK. > So the mapping has to be done in builder-side code, not in host-side > code, like =E2=80=98gcc-cross-boot0=E2=80=99 does. > Something like: > `(cons "--enable-languages=3D" ,(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=3D" ,(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. Backtrace: In ice-9/boot-9.scm: 157: 14 [catch #t # ...] In unknown file: ?: 13 [apply-smob/1 #] In ice-9/boot-9.scm: 63: 12 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 11 [eval # #] In ice-9/boot-9.scm: 2320: 10 [save-module-excursion #] 3966: 9 [#] 1645: 8 [%start-stack load-stack ...] 1650: 7 [#] In unknown file: ?: 6 [primitive-load "/nix/store/m8axi2v9cbj2s0kfpifxp874sxplwwwg-gfortr= an-4.8.2-guile-builder"] In ice-9/eval.scm: 387: 5 [eval # ()] 387: 4 [eval # ()] 387: 3 [eval # ()] 386: 2 [eval # ()] 393: 1 [eval # ()] In unknown file: ?: 0 [memoize-variable-access! # #] ERROR: In procedure memoize-variable-access!: ERROR: Unbound variable: remove --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJSbvHzAAoJEM+IQzI9IQ38oqwP/0DOH80mcP5KrfdzbLLRbsAO cmk2+FijWKW35HlwahEJyEG7WGpVhhoIcx6KdOhVkg7LYii4aI9WzU6vz9W6A9xs uPjuOMaOp0rmvn2hfosCn+ne4pGKC0FvIURKFpMfGzyM5tO/F7/AQRrYaso6e0nd d7sUTZPsfZEYlD/dM4lCQ3GOmFwp6vrO0qoQkgGvXZJXM/6dJmtAuJSNNl64VeRO jsgOFfXuAwY3DK+xCuozZ8yb0ImsHX/0H1I1Q5gQ9BVUhzFNMGfxI9mBsMKq2MHn uLeN6af3zN2KoazlPA/719kFTDyuH1bij+o5wLnN2bwbnSu1k9NmWjIHLmTbVgdG LxR1QEDEtOiFrNbynYnGWePL3kia3a+/6YpjnJn6rATVvhkFo0L/dDZaulgsEZ6B 9ihAw5DhtTvwSUoxteJh8IO22KWKefm5dlgoHZvxSrUVr33ECeM7sO6eTmC08NLl hYEIEdYl+o4JH8cSsZ7opbDqiqn9tu3gpqqNCva9n+6rgCoGf46OaA1aiNKyM7DH xqj9VZZna04MbVXlBmyNG6c0f46OPDHH9pUVAFvaXgQqqikzaXwRP3ftwg+EV+RQ aRrxR+o7Dw7OhL1aYIW1a5pO5ekmgc2NwSy6R1v1Gpir6QhpbimLBK5vUJIKduPY 1wHEO58fEjQlCM0r/Lcn =ux8s -----END PGP SIGNATURE----- --=-=-=--