Unable to compile AdaControl: unknown project file

2019-08-22 02:18发布

问题:

I downloaded the source for AdaControl from the SourceForge Repo. Using GNAT 2017 CE, I get the following error on make:

$ make build
gprbuild build.gpr adactl  -cargs  -bargs  -largs 
build.gpr:1:06: unknown project file: "asis"
gprbuild: "build.gpr" processing failed
make: *** [adactl] Error 4

The instructions make it sound like this is all I need to do, and offer no troubleshooting suggestions:

Go to the root directory of the distribution and type:

make build make install

As this related question notes, I have managed to get ASIS to build, though it also comes packaged with GNAT 2017 CE.

回答1:

That message means that ASIS4GNAT isn't installed in a place where gprbuild (and the rest of your GCC/Ada tool-chain) can find it.

You can use the command gnatls -v to get an idea about where your GCC/Ada tool-chain expects project files to be located.

Compare that to where you actually installed ASIS4GNAT, and you may be closer to a solution.



标签: ada