From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colton Lewis 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, 01 Oct 2020 04:55:49 +0000 Message-ID: <4667596.0VBMTVartN@laptop.coltonlewis.name> Reply-To: Colton Lewis , Colton Lewis Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16097"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43742@debbugs.gnu.org To: ada-mode-users@nongnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 01 14:35:28 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 1kNxo0-00044x-Mh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 14:35:28 +0200 Original-Received: from localhost ([::1]:54890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNxnz-00010b-Lp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 08:35:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNxna-0000zg-Q1 for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 08:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNxna-0000uV-G4 for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 08:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNxna-0003y8-9i; Thu, 01 Oct 2020 08:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Colton Lewis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, stephen_leake@stephe-leake.org Resent-Date: Thu, 01 Oct 2020 12:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43742 X-GNU-PR-Package: emacs, ada-mode X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160155567915175 (code B ref -1); Thu, 01 Oct 2020 12:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Oct 2020 12:34:39 +0000 Original-Received: from localhost ([127.0.0.1]:34545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNxnC-0003wf-Uo for submit@debbugs.gnu.org; Thu, 01 Oct 2020 08:34:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNqdW-0000JQ-Tw for submit@debbugs.gnu.org; Thu, 01 Oct 2020 00:56:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNqdV-00009M-5V for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 00:56:09 -0400 Original-Received: from mail-40134.protonmail.ch ([185.70.40.134]:39313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNqdO-00032S-Ok for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 00:56:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1601528158; bh=5uz6+4AxLEb5KkSldBZubUfPc2kE1ceLtWfYt3hLTFs=; h=Date:To:From:Cc:Reply-To:Subject:From; b=Cs5ERfwVXoHX58zPr1P+EfH3UrQa8LOJarDE87nKu9lNqem1zAAFupb2g03x6SREM wkap82f175vWbQQpKg4Mj57kXJpTzwhqaoTYb8UAM1WTzM9OJQ0mg+xF3NjNKZTJ9N kvnxd/nzDgAGlydNIwOxNKqiwGvadEaZTyf+5uJs= Received-SPF: pass client-ip=185.70.40.134; envelope-from=colton.w.lewis@protonmail.com; helo=mail-40134.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/01 00:55:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 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.373, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 01 Oct 2020 08:34:37 -0400 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:189498 Archived-At: Package: emacs, ada-mode 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. emacs-27.1 ada-mode-7.1.4 gnat-10.2.1 $ ./build.sh ... gen_run_wisi_lr_parse.ads:27:52: missing ";" gen_run_wisi_lr_parse.ads:27:65: generic private child packages not permitt= ed 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 a= s 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-TE= MP-000012.TMP' [-Werror,-Wunused-command-line-argument] 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 gprbuild: *** compilation phase failed It is choking on the line: type Parse_Data_Type is new Wisi.Parse_Data_Type with private; 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. $ ./build -cargs:ada -gnat2012 -cargs:c -Wno-error=3Dunused-command-line-ar= gument ... 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] compilation of gpr_query.adb failed And we fail again lacking a 2020 feature.