Open RREE opened 1 year ago
The crash is of course not expected, but the project is illegal: for Runtime ("Ada") use Avrada_Rts.Runtime;
- there is no variable Runtime defined in Avrada_Rts. Probably what was intended is an attribute reference, something like for Runtime use Avrada_Rts'Runtime;
(edit: the crash is due to an import of a missing file "mcu.gpr")
Yes, the intend was to use an attribure reference. But a simple misunderstanding or typing error (.
<--> '
) or (as you have already found, thanks) a missing with
should not cause a crash. That's why the issue title contains "... on incorrect input ...".
BTW, the file mcu.gpr
is present in my case. I probably missed to send it in the bug report.
(edit - never mind, I got my wires crossed)
For the records, I get the same error when calling --show-targets:
$ gprconfig --show-targets
raised CONSTRAINT_ERROR : gpr-names.adb:231 range check failed
on this gprbuild version:
$ gprbuild --version
GPRBUILD Pro 18.0w (19940713) (x86_64-linux-gnu)
Copyright (C) 2004-2016, AdaCore
This is free software; see the source for copying conditions.
See your AdaCore support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
calling gprbuild on the attached gpr-files creates a backtrace. Expand
bug.tar.gz
and go intoAVRAda_Examples
:gprbuild 18.0w (standard Debian version) gives a friendlier message, but still not very helpful: