From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Simon Wright via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#43742: Unable to compile ada-mode Date: Thu, 1 Oct 2020 18:29:31 +0100 Message-ID: References: <4667596.0VBMTVartN@laptop.coltonlewis.name> Reply-To: Simon Wright Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13358"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43742@debbugs.gnu.org, ada-mode-users@nongnu.org To: Colton Lewis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 01 19:59:25 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO2rV-0003Ny-Kl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 19:59:25 +0200 Original-Received: from localhost ([::1]:33798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kO2rU-0002rS-DS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 13:59:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kO2P4-0001rV-JH for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 13:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kO2P4-0004m4-46 for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 13:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kO2P3-00021Y-UQ; Thu, 01 Oct 2020 13:30:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simon Wright Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, stephen_leake@stephe-leake.org Resent-Date: Thu, 01 Oct 2020 17:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43742 X-GNU-PR-Package: emacs, ada-mode X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, Ada mode users Original-Received: via spool by submit@debbugs.gnu.org id=B.16015733867738 (code B ref -1); Thu, 01 Oct 2020 17:30:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Oct 2020 17:29:46 +0000 Original-Received: from localhost ([127.0.0.1]:38173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO2Oo-00020k-IR for submit@debbugs.gnu.org; Thu, 01 Oct 2020 13:29:46 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO2Ol-00020b-2x for submit@debbugs.gnu.org; Thu, 01 Oct 2020 13:29:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kO2Ok-0001CO-Op for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 13:29:42 -0400 Original-Received: from pv50p00im-zteg10021401.me.com ([17.58.6.47]:60390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kO2Oi-0004km-Te for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 13:29:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1601573375; bh=h7Rm4PB8qvCCSCjRwZxD3jt4WxPOJK6q+eyG+gHn6CE=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=MHTFGe2QAc6pkQqpHVHAsBoEbO7aSLkyBIAwolWYK2Ghs8xxGWPCBhyKa2goRe1k7 BhLve/ss+RhRwq74SJ2olCRHbhmRbhVIC0QIifZ5wJjawhnhDZU9aTrSpjh2rzvnLf SVoRGUwBCk+J3t9f45lVHDwSQY/vEOsBOn1saWidNKrjnY/Jkqbp7lXiMef1t4KYyU /e0ixN5938C3ZAbmm6etWJr2NFhl5aFCVrdvVf89RB9dH2nA8sVSAIGb23I/v6IDcH QpPwQ3U0AeoAr5PEYsx59b/ecVOMHtvIFDJyjQVQsjp0t96SuVeOoDItaNnf9XqmJ3 bQ3rb79UrHEeg== Original-Received: from [192.168.1.93] (88-106-219-82.dynamic.dsl.as9105.com [88.106.219.82]) by pv50p00im-zteg10021401.me.com (Postfix) with ESMTPSA id 7E594480B43; Thu, 1 Oct 2020 17:29:33 +0000 (UTC) In-Reply-To: <4667596.0VBMTVartN@laptop.coltonlewis.name> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-01_06:2020-10-01, 2020-10-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=664 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2010010147 Received-SPF: pass client-ip=17.58.6.47; envelope-from=simon.j.wright@mac.com; helo=pv50p00im-zteg10021401.me.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/01 13:29:35 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189545 Archived-At: GCC 10[.1.0] has the problem. GCC 9[.1.0] does not. I haven't bothered to install the necessary gnatcoll packages in GNAT CE = 2020 so I don't know whether it would work or fail. > On 1 Oct 2020, at 05:55, Colton Lewis = wrote: >=20 > Package: emacs, ada-mode >=20 > I have recently tried and failed to compile ada-mode. > This may be a bug in -gnat2020 support, but I'm not > sure how the list wants to handle a solution. >=20 > emacs-27.1 > ada-mode-7.1.4 > gnat-10.2.1 >=20 > $ ./build.sh > ... > gen_run_wisi_lr_parse.ads:27:52: missing ";" > gen_run_wisi_lr_parse.ads:27:65: generic private child packages not = permitted > gen_run_wisi_lr_parse.ads:27:65: subprogram specification expected > gen_run_wisi_lr_parse.ads:27:65: compilation unit expected > gen_run_wisi_lr_parse.ads:34:04: misplaced "with" > gen_run_wisi_lr_parse.ads:34:09: reserved word "procedure" cannot be = used as identifier > gen_run_wisi_lr_parse.ads:34:18: missing ";" > gen_run_wisi_lr_parse.ads:34:19: compilation unit expected > clang-10: error: argument unused during compilation: = '-specs=3D/tmp/GNAT-TEMP-000012.TMP' = [-Werror,-Wunused-command-line-argument] >=20 > compilation of ada_mode_wisi_lalr_parse.ads failed > compilation of ada_mode_wisi_lr1_parse.ads failed > compilation of run_ada_lalr_parse.ads failed > compilation of run_ada_lr1_parse.ads failed > compilation of gpr_mode_wisi_parse.ads failed > compilation of run_gpr_parse.ads failed > compilation of wisitoken_grammar_re2c.c failed >=20 > gprbuild: *** compilation phase failed >=20 > It is choking on the line: > type Parse_Data_Type is new Wisi.Parse_Data_Type with private; >=20 > As far as I can tell from the ARM, this should be legal in 2020 and = 2012. > Also note the clang error. Trying with some options. >=20 > $ ./build -cargs:ada -gnat2012 -cargs:c = -Wno-error=3Dunused-command-line-argument > ... > Compile > [Ada] ada_mode_wisi_lalr_parse.ads > [Ada] ada_mode_wisi_lr1_parse.ads > [Ada] run_ada_lalr_parse.ads > [Ada] run_ada_lr1_parse.ads > [Ada] gpr_mode_wisi_parse.ads > [Ada] run_gpr_parse.ads > [Ada] gpr_query.adb > [C] wisitoken_grammar_re2c.c > gpr_query.adb:553:19: target_name is an Ada 2020 feature > gpr_query.adb:553:22: (style) space not allowed > clang-10: warning: argument unused during compilation: = '-specs=3D/tmp/GNAT-TEMP-000012.TMP' [-Wunused-command-line-argument] >=20 > compilation of gpr_query.adb failed >=20 > And we fail again lacking a 2020 feature. >=20 >=20 >=20 >=20 >=20 >=20