From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64677 invoked by alias); 9 Jul 2019 09:15:52 -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 64668 invoked by uid 89); 9 Jul 2019 09:15:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2 autolearn=ham version=3.3.1 spammy=5000000, UD:info X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 Jul 2019 09:15:50 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 05053BB6; Tue, 9 Jul 2019 11:15:41 +0200 (CEST) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ROZRT79ysgXx; Tue, 9 Jul 2019 11:15:38 +0200 (CEST) Received: from itzacchiuatl.CeBiTec.Uni-Bielefeld.DE (itzacchiuatl.CeBiTec.Uni-Bielefeld.DE [129.70.161.157]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id E388DB0A; Tue, 9 Jul 2019 11:03:29 +0200 (CEST) Received: (from ro@localhost) by itzacchiuatl.CeBiTec.Uni-Bielefeld.DE (8.15.2+Sun/8.15.2/Submit) id x6993ReM001338; Tue, 9 Jul 2019 11:03:27 +0200 (CEST) From: Rainer Orth To: Gaius Mulley 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> <87bly4d0qu.fsf@j228-gm.comp.glam.ac.uk> Date: Tue, 09 Jul 2019 09:25:00 -0000 In-Reply-To: (Rainer Orth's message of "Mon, 08 Jul 2019 17:28:04 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00664.txt.bz2 Hi Gaius, >> it rather depends upon what you want, if you want the latest complete >> gm2 grafting onto the svn gcc trunk then these two scripts will create a >> patched tree and also rebuild gm2. > > that's my goal: I'd like to see if gm2 and libgm2 build on Solaris and > pass at least a reasonable number of tests. > >> [however please be careful with the scripts - they do assume that >> everything will be built in $HOME/GM2 - read and adapt as necessary]. > > Ok, I will give it a try. here are some initial issues. I'll reply to Matthias' mail to expand on other problems he's raised. * First, the build broke like this: /vol/gcc/src/hg/trunk/solaris/gcc/gm2/mc-boot/GRTint.c:57:30: error: 'time' redeclared as different kind of symbol 57 | typedef enum {input, output, time} VectorType; | ^~~~ In file included from /usr/include/time.h:12, from /usr/include/sys/time.h:448, from /usr/include/sys/select.h:27, from /usr/include/sys/types.h:665, from /usr/include/stdlib.h:22, from /vol/gcc/src/hg/trunk/solaris/gcc/gm2/mc-boot/Glibc.h:15, from /vol/gcc/src/hg/trunk/solaris/gcc/gm2/mc-boot/GRTint.c:42: /usr/include/iso/time_iso.h:96:15: note: previous declaration of 'time' was here 96 | extern time_t time(time_t *); | ^~~~ I've worked around this by renaming the enum value to vtime. This problem is likely to occur on other targets as well. * Building gm2.info failed with the makeinfo I happened to have installed: makeinfo --split-size=5000000 --split-size=5000000 -I/var/gcc/gcc-10.0.0-20190708/11.5-gcc-gas-gm2-no-bootstrap-j1/gcc/gm2 -o /var/gcc/gcc-10.0.0-20190708/11.5-gcc-gas-gm2-no-bootstrap-j1/gcc/gm2/gm2.info /vol/gcc/src/hg/trunk/solaris/gcc/gm2/gm2.texi /vol/gcc/src/hg/trunk/solaris/gcc/gm2/gm2.texi:3070: `Prerequisites' has no Up field (perhaps incorrect sectioning?). makeinfo: Removing output file `/var/gcc/gcc-10.0.0-20190708/11.5-gcc-gas-gm2-no-bootstrap-j1/gcc/gm2/gm2.info' due to errors; use --force to preserve. make[2]: *** [/vol/gcc/src/hg/trunk/solaris/gcc/gm2/Make-lang.in:234: /var/gcc/gcc-10.0.0-20190708/11.5-gcc-gas-gm2-no-bootstrap-j1/gcc/gm2/gm2.info] Error 1 This is from texinfo 4.13, newer than the required minimum of 4.7. Even with makeinfo 6.1, there are a couple of warnings: /vol/gcc/src/hg/trunk/solaris/gcc/gm2/gm2.texi:82: warning: multiple @menu /vol/gcc/src/hg/trunk/solaris/gcc/gm2/gm2.texi:581: warning: multiple @menu /var/gcc/gcc-10.0.0-20190708/11.5-gcc-gas-gm2-no-bootstrap-j1/gcc/gm2/gm2-libs.texi:6043: warning: multiple @menu /vol/gcc/src/hg/trunk/solaris/gcc/gm2/gm2.texi:3070: warning: unreferenced node `Prerequisites' Other than that, a sequential (only!) multilibbed build succeeded, and I even managed to get some testsuite results which aren't too bad, again for both multilibs: === gm2 Summary for unix === # of expected passes 7800 # of unexpected failures 1729 # of unresolved testcases 1705 === gm2 Summary for unix/-m64 === # of expected passes 7800 # of unexpected failures 1729 # of unresolved testcases 1705 === gm2 Summary === # of expected passes 15600 # of unexpected failures 3458 # of unresolved testcases 3410 Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University