From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: Add GCC front ends for Fortran, Go, Objective C, and Objective C++. Date: Thu, 31 Oct 2013 23:19:17 +0100 Message-ID: <87a9hpaxsq.fsf@gnu.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> <8761sdb3mt.fsf_-_@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vc0aO-000212-0O for guix-devel@gnu.org; Thu, 31 Oct 2013 18:19:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vc0aF-0002fF-UJ for guix-devel@gnu.org; Thu, 31 Oct 2013 18:19:27 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:47537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vc0aF-0002f2-NP for guix-devel@gnu.org; Thu, 31 Oct 2013 18:19:19 -0400 In-Reply-To: <8761sdb3mt.fsf_-_@karetnikov.org> (Nikita Karetnikov's message of "Fri, 01 Nov 2013 00:13:14 +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: Nikita Karetnikov Cc: guix-devel@gnu.org Nikita Karetnikov skribis: >>> If you want to test any of the front-ends, don=E2=80=99t forget to set >>> LIBRARY_PATH and LD_LIBRARY_PATH, like so: >>> >>> $ export LIBRARY_PATH=3D/nix/store/wmaxqx3p658v2yqjv00mss2shvn23h7a-gli= bc-2.18/lib >>> $ export LD_LIBRARY_PATH=3D/nix/store/kvhg0fszagsx5y80sq79bkmb7yqvjfmd-= gcc-go-4.8.1/lib > >> I guess that=E2=80=99s unnecessary when using =E2=80=98ld-wrapper=E2=80= =99. > > I know nothing about it. Could you elaborate? =E2=80=98ld-wrapper=E2=80=99 is a wrapper around the linker that adds a -rp= ath argument for each -l argument (see the top of ld-wrapper.scm), such that all the needed libraries are in the resulting binary=E2=80=99s RUNPATH. > I tested each front end using the =E2=80=9Chello, world=E2=80=9D program.= Is it enough? Yes. > From be260e7d9d4a7592129c0369eee52b156170d1cf Mon Sep 17 00:00:00 2001 > From: Nikita Karetnikov > Date: Thu, 31 Oct 2013 19:54:36 +0000 > Subject: [PATCH] gnu: Add GCC front ends for Fortran, Go, Objective C, and > Objective C++. > > * gnu/packages/gcc.scm (custom-gcc, gfortran-4.8, gccgo-4.8) > (gcc-objc-4.8, gcc-objc++-4.8): New variables. > --- > gnu/packages/gcc.scm | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > > diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm > index dde0f0d..60bc5bb 100644 > --- a/gnu/packages/gcc.scm > +++ b/gnu/packages/gcc.scm > @@ -27,6 +27,7 @@ > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (guix build-system gnu) > + #:use-module (guix utils) > #:use-module (ice-9 regex)) >=20=20 > (define %gcc-infrastructure > @@ -211,6 +212,34 @@ Go. It also includes standard libraries for these l= anguages.") > (base32 > "1j6dwgby4g3p3lz7zkss32ghr45zpdidrg8xvazvn91lqxv25p09")))= ))) >=20=20 > +(define (custom-gcc gcc name languages) Please add a docstring here, and then OK to push. Thank you! Ludo=E2=80=99.