From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c29b14f3223f3446 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.28.2 with SMTP id x2mr12728207pbg.6.1319487279199; Mon, 24 Oct 2011 13:14:39 -0700 (PDT) Path: c1ni8748pbr.0!nntp.google.com!news1.google.com!feed-C.news.volia.net!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Bootstrapping Gnu ADA onto FreeBSD/AMD64-CURRENT Date: Mon, 24 Oct 2011 22:14:37 +0200 Organization: A noiseless patient Spider Message-ID: <87sjmii1ua.fsf@ludovic-brenta.org> References: <4ea41d89$0$2553$da0feed9@news.zen.co.uk> <4ea44ad9$0$2965$fa0fcedb@news.zen.co.uk> <87zkgriiv5.fsf@ludovic-brenta.org> <4ea4811f$0$2966$fa0fcedb@news.zen.co.uk> <5b97301e-7947-43bb-bfce-819690d5dd35@d33g2000prb.googlegroups.com> <4ea5ae51$0$2537$da0feed9@news.zen.co.uk> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="qqdxzFrqRuthSBCerVWeSg"; logging-data="32105"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/od9hhD3ZNSqwiGmhcZpY0" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:tzQr70/Tj8sk89T4Vx8HuWVxYsw= sha1:TIaRQmEO66AFdXA+xyxRRMjbIlo= Xref: news1.google.com comp.lang.ada:18690 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Date: 2011-10-24T22:14:37+02:00 List-Id: jrmarino writes: > On Oct 24, 8:28 pm, Mark Murray wrote: >> >> How hard would it be to incerease the number of languages it >> supports? I'm hoping "not" :-). In order to avoid a proliferation of >> GCC builds, > >> Big win; if gnat-aux were to support Fortran (used a fair bit) and >> Java (nice to have) or if the gcc46 port were to "grow" gnat-aux type >> support, I'd be delighted! > > I wouldn't hold your breath on gcc46 supporting Ada, the bootstrap > issue is hard to overcome. GNAT-AUX demands a 25-30MB download just > for the first build of the compiler (in addition to the source code), > but after that it uses the compiler on the system to build new > versions. > > New version support is whatever GCC is. The GNAT-AUX tarball is > customized, and these extra languages are left it. It would be a > matter of putting them back and adding language options. Fortran > should be fine. I understand the java is basically not worth having, > is it even being seriously maintained? Last I checked/understood, > this option is probably not worth pursuing. I think the following changes to the GNAT-AUX port would solve that problem "for free": - GNAT-AUX no longer ships "gcc" but depends on the "gcc" from lang/gcc46 instead. - GNAT-AUX installs into the directory tree of lang/gcc46, without overwriting any files of course, only adding new files. - Leave the maintenance of Objective-C, Fortran and Java to people more capable and more interested in these languages. It is not necessary to build the "gcc" of lang/gcc46 specially for it to find whatever compiler is installed; just drop gnat1, cc1plus, gcj1, gfortran1 etc. and their associated run-time libraries into the proper directory and you're done. This scheme has been successful in Debian for years. On the one hand we build C, C++, Fortran and Objective-C, which all require only a C compiler for bootstrapping, together; on the other hand we build Java and Ada, which require a second bootstrap compiler, as separate source packages; but we build all from the same source tarball, same build scripts and same patches from the same VCS. The compiled binaries all install into a common tree. Thus, the end user simply installs gcc-4.6 plus any additional languages and run-time libraries desired. This technique also solves the problem of the size of the builds and the time necessary for a full bootstrap, since we do not boostrap all languages at once. -- Ludovic Brenta.