ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with building ada-mode


From: Bernardo
Subject: Re: problems with building ada-mode
Date: Tue, 12 May 2020 08:08:35 +1000
User-agent: Gnus/5.13 (Gnus v5.13)

Ludovic Brenta <address@hidden> writes:

>> Any ideas what am i missing here?
>
> apt-get install libgnatcoll-xref18-dev gprbuild
>
> and don't say "there isn't much in Debian collection of packages" :)
>
> then ada-mode should build cleanly.  I tried in a fresh Debian stable
> chroot and it doesn't; I had to:
>
> * delete "with "gnat_util";" from ada_mode_wisi_parse.gpr.gp
> * gzip ada_lr1_parse_table.txt

yep, that did it; me too had to comment out 'with gnat_util' in order to
compile;

there was an additional/odd compilation error:
   ...
   [Ada]          wisitoken-parse-lr-mckenzie_recover.adb
   [Ada]          wisitoken-parse-lr-mckenzie_recover-ada.adb
wisitoken-parse-lr-mckenzie_recover-ada.adb:1030:11: illegal character
wisitoken-parse-lr-mckenzie_recover-ada.adb:1030:12: missing ";"

   compilation of wisitoken-parse-lr-mckenzie_recover-ada.adb failed

gprbuild: *** compilation phase failed


and the offending line looked like:
   when Bad_Config =>
      null^[

(control-left bracket - as a single character)
not sure where did that come from as the file's time stamp was identical
to all the other files and everything was installed via Emacs package
manager. Anyway, once that was sorted out it built and installed fine.

not sure if it would be worth modifying build.sh to something like

  if [ -f ada_lr1_parse_table.txt.gz ]
  then
      gzip -d -q ada_lr1_parse_table.txt.gz
  fi

in order to avoid the pesky error on a subsequent build attempts.

ada-mode works fine now, thanks everyone for your help.


-- 
Rgds, Bernardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]