I see the following error when compiling an Ada project with GNAT Studio, using the project dependency "gpr.gpr".
Error: error
Here is my project source code:
with "gpr.gpr";
project Default is
for Soure_Dirs use ("src");
for Object_Dir use "obj";
for Main use ("main.adb")
end Default;
There is a line within gpr.gpr that is causing the error: error-on-line
If I were to reference another dependency, such as "aws.gpr", everything works fine. However, "gpr.gpr" and any project that references it does not compile.
Output to: gprbuild -vP2 -P default.gpr
Process tree, phase 1
Value_Of (library_type) is default "static"
Value_Of (xmlada_build) is default "static"
Value_Of (library_type) is default "static"
Value_Of (xmlada_build) is default "static"
Value_Of (library_type) is default "static"
Value_Of (xmlada_build) is default "static"
Value_Of (library_type) is default "static"
Value_Of (xmlada_build) is default "static"
Value_Of (library_type) is default "static"
Value_Of (xmlada_build) is default "static"
Value_Of (library_type) is default "static"
Value_Of (gpr_build) is "C:\GNAT\2020\bin"
ERROR: value %% is illegal for typed string %%
Done Process tree, phase 1, Success=FALSE
gpr.gpr:11:04: value "C:\GNAT\2020\bin" is illegal for typed string "build"
gprbuild: "default.gpr" processing failed
GPR_BUILD
orLIBRARY_TYPE
has been set? Such an environment variable may, in this case, interfere with your build. - DeeDeegprbuild -vP2 -P default.gpr
to further isolate the problem (look for lines containingValue_Of
andC:\GNAT\2020\bin
). - DeeDee