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

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

Re: Compilation woes on Debian bullseye


From: Rolf Ebert
Subject: Re: Compilation woes on Debian bullseye
Date: Wed, 8 Sep 2021 23:16:33 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Simon told me how to compile gnatcoll-db and I could install it. But
that doesn't solve the problem when compiling ada_process_actions.adb

It doesn't work with Debian's standard Ada compiler (FSF GNAT 10.2) nor
does it work with AdaCore's Community Edition 2021.

Is there a compiler on Debian that is known to correctly compile the
ada-mode programs?

Rolf

Am 05.09.2021 um 23:42 schrieb Rolf Ebert:
I move further discussion of my compilation problems to this list.

After havin read about the problem of compiling the parser sources with
FSF 10.2 on Debian I installed the community edition. But things are
getting even stranger.

$ echo $PATH
/home/re/opt/GNAT_2021/bin:/home/re/bin:/usr/local/bin:/usr/bin:/bin

$ pwd
/home/re/.emacs.d/elpa/ada-mode-7.1.8
$ ./build.sh
ada_mode_wisi_parse.gpr:22:06: imported project file "gnatcoll_sqlite"
not found
ada_mode_wisi_parse.gpr:23:06: imported project file "gnatcoll_xref" not
found
gprclean: "ada_mode_wisi_parse.gpr" processing failed
ada_mode_wisi_parse.gpr:22:06: imported project file "gnatcoll_sqlite"
not found
ada_mode_wisi_parse.gpr:23:06: imported project file "gnatcoll_xref" not
found
gprbuild: "ada_mode_wisi_parse.gpr" processing failed

So I'm again at the situation that I don't know where to get
gnatcoll_xref and gnatcoll_sqlite.

I edited ada_mode_wisi_parse.gpr.gp and commented out "with
gnatcoll_sqlite" and "with gnatcoll_xref" and the main program
"gpr_query.adb"

$ ./build.sh
raised ADA.ASSERTIONS.ASSERTION_ERROR : gpr-tree.adb:1138
[/home/re/opt/GNAT_2021/bin/gprclean]
0x8143d0
0x612038
0x610270
0x612971
0x6149a8
0x613ed8
0x513b8f
0x47b776
0x478e14
[/lib/x86_64-linux-gnu/libc.so.6]
0x7f4da5161d08
[/home/re/opt/GNAT_2021/bin/gprclean]
0x478e67
0xfffffffffffffffe
gprbuild: raised ADA.ASSERTIONS.ASSERTION_ERROR : gpr-tree.adb:1138
[/home/re/opt/GNAT_2021/bin/gprbuild]
0x8dbf10
0x6d9b78
0x6d7db0
0x6da4b1
0x6dc4e8
0x6dba18
0x5db6cf
0x4a8110
0x4986a4
[/lib/x86_64-linux-gnu/libc.so.6]
0x7ff0dd1bfd08

OK, I also had to remove the comma after "run_gpr_parse.ads" (strange
that a simple syntax error raises internal assertion checks without a
proper error message)

$ ./build.sh
ada_mode_wisi_parse.gpr:44:26: warning: object directory "obj" not found
wisi.gpr:32:26: warning: object directory "obj" not found
Setup
    [mkdir]        object directory for project Wisi
    [mkdir]        object directory for project Ada_Mode_Wisi_Parse
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
    [C]            wisitoken_grammar_re2c.c
    [C]            gpr_re2c.c
    [C]            ada_re2c.c
    [Ada]          gen_run_wisi_lr_parse.adb
    [Ada]          gpr_process_actions.adb
    [Ada]          gpr_process_main.adb
    [Ada]          run_wisi_common_parse.adb
    [Ada]          wisi.adb
    [Ada]          wisi-gpr.adb
    [Ada]          wisitoken.adb
    [Ada]          wisitoken-parse.adb
    [Ada]          wisitoken-parse-lr.adb
    [Ada]          wisitoken-parse-lr-parser.adb
    [Ada]          wisitoken-syntax_trees.adb
    [Ada]          wisitoken-text_io_trace.adb
    [Ada]          emacs_wisi_common_parse.adb
    [Ada]          gen_emacs_wisi_lr_parse.adb
    [Ada]          ada_process_actions.adb
    [Ada]          ada_process_lalr_main.adb
ada_process_actions.adb:59:117: error: ambiguous expression (cannot
resolve "&")
ada_process_actions.adb:59:117: error: possible interpretation at
a-convec.ads:149, instance at wisi.ads:133
ada_process_actions.adb:59:117: error: possible interpretation at
a-convec.ads:145, instance at wisi.ads:133
ada_process_actions.adb:549:107: error: ambiguous expression (cannot
resolve "&")
ada_process_actions.adb:549:107: error: possible interpretation at
a-convec.ads:149, instance at wisi.ads:133
ada_process_actions.adb:549:107: error: possible interpretation at
a-convec.ads:145, instance at wisi.ads:133
ada_process_actions.adb:635:117: error: ambiguous expression (cannot
resolve "&")
ada_process_actions.adb:635:117: error: possible interpretation at
a-convec.ads:149, instance at wisi.ads:133
ada_process_actions.adb:635:117: error: possible interpretation at
a-convec.ads:145, instance at wisi.ads:133
ada_process_actions.adb:670:93: error: ambiguous expression (cannot
resolve "&")
ada_process_actions.adb:670:93: error: possible interpretation at
a-convec.ads:149, instance at wisi.ads:133
ada_process_actions.adb:670:93: error: possible interpretation at
a-convec.ads:145, instance at wisi.ads:133
[removed some 100 lines]
ada_process_actions.adb:5071:83: error: ambiguous expression (cannot
resolve "&")
ada_process_actions.adb:5071:83: error: possible interpretation at
a-convec.ads:157, instance at wisi.ads:133
ada_process_actions.adb:5071:83: error: possible interpretation at
a-convec.ads:153, instance at wisi.ads:133
ada_process_actions.adb:5071:83: error: possible interpretation at
a-convec.ads:149, instance at wisi.ads:133
ada_process_actions.adb:5071:83: error: possible interpretation at
a-convec.ads:145, instance at wisi.ads:133

    compilation of ada_process_actions.adb failed

gprbuild: *** compilation phase failed

I am still stuck
      Rolf





reply via email to

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