From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:a0d:: with SMTP id dw13mr20154751qvb.41.1626614912694; Sun, 18 Jul 2021 06:28:32 -0700 (PDT) X-Received: by 2002:a25:aa09:: with SMTP id s9mr25426218ybi.165.1626614912482; Sun, 18 Jul 2021 06:28:32 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 18 Jul 2021 06:28:32 -0700 (PDT) In-Reply-To: <76673bec-53cc-4789-8f01-4a1d0d04e077n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=109.180.159.156; posting-account=8KbgxQkAAACJyvtPg84oL23eOX_jDVUP NNTP-Posting-Host: 109.180.159.156 References: <4e943274-59ad-497d-9ef1-5f5d096aea56n@googlegroups.com> <6b724d0f-3184-47f0-8266-c805406cf4b7n@googlegroups.com> <76673bec-53cc-4789-8f01-4a1d0d04e077n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <71c3d589-fd6f-4b5e-a9f3-394109b1fa05n@googlegroups.com> Subject: Re: Problem with emacs ada-mode-7.1.4 From: Paul Onions Injection-Date: Sun, 18 Jul 2021 13:28:32 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62406 List-Id: So I've finally managed to get ada-mode installed and working with GNAT CE = 2020. For the record here's what I did (in case it's useful to others):- 1. Cloned git repositories gnatcoll-db and gnatcoll-bindings from github.co= m/AdaCore/, checked out branch "20-sustained" in both repositories then bui= lt and installed gnatcoll_iconv (in gnatcoll-bindings), and gnatcoll_xref, = gnatcoll_sql, gnatcoll_sqlite (in gnatcoll-db). 2. In ~/.emacs.d/elpa/ada-mode-7.1.4/ ran ./build.sh, which failed with an = error message about file sal-gen_unbounded_definite_red_black_trees.adb. S= o went to that file in ~/.emacs.d/elpa/wisi-3.1.3/, read the comments tagge= d with "WORKAROUND" and deleted the appropriate ".all" components. Reran .= /build.sh which completed successfully and then ran ./install.sh, also succ= essful. 3. Opened an Ada file and watched Emacs complain about a void-function call= ed wisi--lexer-error. Enabled the Emacs debugger and looked in the traceba= ck. Message seems to be coming from compiled byte-code, so I deleted all .= elc files in the wisi-3.1.3 directory and tried again. Now I get a message= saying ada_mode_wisi_lr1_parse cannot be found on exec-path, so I go look = for it and end up adding the GNAT CE 2020 bin path to exec-path in my Emacs= setup and now finally it's working! Phew. I have one question: was my original problem a bug in the ada-mode code or = is it a bug in the latest GNAT compiler? (GCC 11.1.0) Thanks, Paul