AdaCore / gnatstudio

GNAT Studio is a powerful and lightweight IDE for Ada and SPARK.
399 stars 52 forks source link

Build failure in dap-views-call_stack.adb #127

Closed bib1963 closed 2 years ago

bib1963 commented 2 years ago

Trying to build a production binary, and getting the following error:

gprbuild  -m -p -ws \
  -XBUILD=Production -XOS=unix -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable -XBUILD_MODE=prod -k -Pgps -largs `pkg-config gmodule-2.0 --libs`
Compile
   [Ada]          dap-views-call_stack.adb
dap-views-call_stack.adb:362:28: invalid prefix in selected component "Model"
dap-views-call_stack.adb:362:33: prefixed call is only allowed for objects of a tagged type
dap-views-call_stack.adb:365:20: invalid prefix in selected component "Model"
dap-views-call_stack.adb:365:25: prefixed call is only allowed for objects of a tagged type
dap-views-call_stack.adb:366:33: invalid prefix in selected component "Model"
dap-views-call_stack.adb:366:38: prefixed call is only allowed for objects of a tagged type
dap-views-call_stack.adb:647:22: invalid prefix in selected component "Model"
dap-views-call_stack.adb:647:27: prefixed call is only allowed for objects of a tagged type

This is with gcc 11.3.0. Latest git release as of today.

setton commented 2 years ago

Hello,

This code uses the "dotted notation for non-tagged types" features, which is integrated in gcc 12. If you can't upgrade your compiler, you can transform these into non-dotted subprogram calls.

Let us know if it helps.

Nicolas