From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86353 invoked by alias); 2 Jul 2019 00:18:28 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 86344 invoked by uid 89); 2 Jul 2019 00:18:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=gaius, Gaius X-HELO: postbox.isd.glam.ac.uk Received: from postbox.isd.glam.ac.uk (HELO postbox.isd.glam.ac.uk) (81.87.34.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 02 Jul 2019 00:18:25 +0000 Received: from j228-gm.comp.glam.ac.uk ([193.63.148.84]) by postbox.isd.glam.ac.uk with esmtp (Exim 4.71) (envelope-from ) id 1hi6V4-0001Jb-3x; Tue, 02 Jul 2019 01:18:22 +0100 From: Gaius Mulley To: Segher Boessenkool Cc: Subject: Re: [PATCH, Modula-2 (C/C++/D/F/Go/Jit)] (Register spec fn) (v2) References: <87k1doxqhv.fsf@j228-gm.comp.glam.ac.uk> <20190629180828.GB18316@gate.crashing.org> Date: Tue, 02 Jul 2019 00:18:00 -0000 In-Reply-To: <20190629180828.GB18316@gate.crashing.org> (Segher Boessenkool's message of "Sat, 29 Jun 2019 13:08:28 -0500") Message-ID: <87ef39jnld.fsf@j228-gm.comp.glam.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00094.txt.bz2 Segher Boessenkool writes: > Hi Gaius, > > On Fri, Jun 14, 2019 at 02:09:48PM +0100, Gaius Mulley wrote: >> here is version two of the patches which introduce Modula-2 into the >> GCC trunk. The patches include: >> >> (*) a patch to allow all front ends to register a lang spec function. >> (included are patches for all front ends to provide an empty >> callback function). >> (*) patch diffs to allow the Modula-2 front end driver to be >> built using GCC Makefile and friends. >> >> The compressed tarball includes: >> >> (*) gcc/m2 (compiler driver and lang-spec stuff for Modula-2). >> Including the need for registering lang spec functions. >> (*) gcc/testsuite/gm2 (a Modula-2 dejagnu test to ensure that >> the gm2 driver is built and can understands --version). > > I built on pwoerpc64-linux, with the patch and the tarball. > > I first need this patch, because srcdir is an absolute path for me: > > === > diff --git a/gcc/m2/Make-lang.in b/gcc/m2/Make-lang.in > index e2d5098..a423a9e 100644 > --- a/gcc/m2/Make-lang.in > +++ b/gcc/m2/Make-lang.in > @@ -71,13 +71,13 @@ m2/gm2config.h: > export AR ; \ > RANLIB=`echo $(RANLIB_FOR_TARGET) | sed -e "s/^ //"` ; \ > export RANLIB ; \ > - $(SHELL) -c '../$(srcdir)/m2/configure --srcdir=../$(srcdir)/m2 --t > + $(SHELL) -c '$(srcdir)/m2/configure --srcdir=$(srcdir)/m2 --target= > else \ > - $(SHELL) -c '../$(srcdir)/m2/configure --srcdir=../$(srcdir)/m2 --t > + $(SHELL) -c '$(srcdir)/m2/configure --srcdir=$(srcdir)/m2 --target= > fi > > m2/gm2version.c: m2/gm2version.h > - cd m2 ; bash ../$(srcdir)/m2/tools-src/makeversion -p ../$(srcdir) > + cd m2 ; bash $(srcdir)/m2/tools-src/makeversion -p $(srcdir) > > # Build hooks. > > === > > (This patch might not be correct, but it works for me to get things to > build, at least). > > But then I still get build failures: it tries to run xgcc when it hasn't > been built yet. ("it" == "something", I didn't keep logs, sorry). > > I let it run overnight with -j1, and it finished. The testsuite is > running now :-) > > > Segher Hi Segher, many thanks for the patch and highlighting the relative vs absolute srcdir build. I've fixed the makeversion with a change to the script (directory option added). I'll work on the configure line and explore a solution. Yes -j1 is definitely an overnight task! regards, Gaius