From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91192 invoked by alias); 29 Jun 2019 18:08:33 -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 91183 invoked by uid 89); 29 Jun 2019 18:08:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1988, overnight X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 29 Jun 2019 18:08:31 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x5TI8THM023164; Sat, 29 Jun 2019 13:08:29 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x5TI8SQN023161; Sat, 29 Jun 2019 13:08:28 -0500 Date: Sat, 29 Jun 2019 18:08:00 -0000 From: Segher Boessenkool To: Gaius Mulley Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH, Modula-2 (C/C++/D/F/Go/Jit)] (Register spec fn) (v2) Message-ID: <20190629180828.GB18316@gate.crashing.org> References: <87k1doxqhv.fsf@j228-gm.comp.glam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k1doxqhv.fsf@j228-gm.comp.glam.ac.uk> User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2019-06/txt/msg01891.txt.bz2 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