gnatstub fails to generate any Ada code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
asis (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to use gnatstub on my ubuntu 17.10 system.
I have installed the asys-programs 2017-2 through the package manager.
I am trying to generate the stub function (adb file) from the following file (tiny.ads).
package tiny is
procedure simple_procedure;
function simple_function return boolean;
end tiny;
When I run gnatstub, I get the following output.
$ gnatstub tiny.ads
+======
| ASIS 2.0.R for GNAT 7.2.0 CONSTRAINT_ERROR a4g-gnat_
| when processing A4G.Contt.
| Please submit a bug report; see http://
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box and the ASIS debug info |
| in the report. |
| Include the exact list of the parameters of the ASIS queries |
| Asis.Implementa
| from the ASIS application for which the bug is detected |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
| NOTE: ASIS bugs may be submitted to <email address hidden> |
+======
Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
$
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: asis-programs 2017-2
ProcVersionSign
Uname: Linux 4.13.0-19-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Dec 14 06:45:58 2017
InstallationDate: Installed on 2016-04-23 (599 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: asis
UpgradeStatus: No upgrade log present (probably fresh install)
when I contacted Adacore abot this issue, I got the following answer:
The way you are using gnatstub is correct, and I can confirm that it
works for AdaCore products. But we cannot say anything for the GNAT versions
built and distributed outside AdaCore.
Somehow the issue seems specific to the binary distributed in the ubuntu package.