Closed byu9 closed 2 years ago
Hi,
I think you are confusing names of gpr files with names of gh projects they come from. "gpr.gpr" is coming from project "gprbuild", not from project "gpr" (the latter provides gpr2.gpr)
OK That makes sense. Thanks.
EDIT -- For anyone seeing this post install libgnatprj8-dev
(support for programs processing GNAT projects (development)) on Debian Bullseye will resolve the missing dependencies.
To AdaCore - please update the README.md file to tell everyone this. It is not clear at all.
This is not solved for me. I get this error
gprbuild -p -m --target=x86_64-linux -j0 -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD -XLIBRARY_TYPE=static -XXMLADA_BUILD=static -XGPR_BUILD=static \
-XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD gnatcoll.gpr -v
==============Messages for file: /home/LOCAL/vapkay/gnatcoll-core/gnatcoll.gpr
24. with "gpr";
|
>>> imported project file "gpr" not found
gprbuild: "gnatcoll.gpr" processing failed
even thought I have gprbuild
installed. I am using the GNAT tool chain from GCC 12.1.0 (built from source) and gprbuild
and gnatcoll
GitHub projects, each at tag v24.0.0
.
For gprbuild
, I had to bootstrap gprbuild
and also install xmlada
per the build instructions. I followed the build instructions (and this issue), but even though gprbuild
is installed, I cannot find gpr.gpr
, or at least not anything that I could use in ADA_PROJECT_PATH
This is not solved for me. I get this error
gprbuild -p -m --target=x86_64-linux -j0 -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD -XLIBRARY_TYPE=static -XXMLADA_BUILD=static -XGPR_BUILD=static \ -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD gnatcoll.gpr -v ==============Messages for file: /home/LOCAL/vapkay/gnatcoll-core/gnatcoll.gpr 24. with "gpr"; | >>> imported project file "gpr" not found gprbuild: "gnatcoll.gpr" processing failed
even thought I have
gprbuild
installed. I am using the GNAT tool chain from GCC 12.1.0 (built from source) andgprbuild
andgnatcoll
GitHub projects, each at tagv24.0.0
.For
gprbuild
, I had to bootstrapgprbuild
and also installxmlada
per the build instructions. I followed the build instructions (and this issue), but even thoughgprbuild
is installed, I cannot findgpr.gpr
, or at least not anything that I could use inADA_PROJECT_PATH
If you installed gprbuild from source, then in the gprbuild directory, there is a directory called gpr
, just cd into it & run gprbuild/gprinstall
etc.
OK, so I ran gprbuild
and gprinstall
in the gprbuild
repo's gpr
subdirectory and set ADA_PROJECT_PATH
to include the install location of gpr.gpr
. Now I get this
gprbuild -p -m --target=x86_64-linux -j0 -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD -XLIBRARY_TYPE=static -XXMLADA_BUILD=static -XGPR_BUILD=static -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD gnatcoll.gpr -v
==============Messages for file: /home/BUILD64/bin/gprbuild/share/gpr/gpr.gpr
11. BUILD : BUILD_KIND := external("GPR_BUILD", "default");
>>> value "static" is illegal for typed string "build"
gprbuild: "gnatcoll.gpr" processing failed
Something is not quite right with this but I am out ideas as to where to look
OK, so I ran
gprbuild
andgprinstall
in thegprbuild
repo'sgpr
subdirectory and setADA_PROJECT_PATH
to include the install location ofgpr.gpr
. Now I get thisgprbuild -p -m --target=x86_64-linux -j0 -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD -XLIBRARY_TYPE=static -XXMLADA_BUILD=static -XGPR_BUILD=static -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD gnatcoll.gpr -v ==============Messages for file: /home/BUILD64/bin/gprbuild/share/gpr/gpr.gpr 11. BUILD : BUILD_KIND := external("GPR_BUILD", "default"); >>> value "static" is illegal for typed string "build" gprbuild: "gnatcoll.gpr" processing failed
Something is not quite right with this but I am out ideas as to where to look
Ugh, sorry, gave wrong info. From the top level Makefile, it says to run make libgpr.build & make libgpr.install. That will build the 3 types of libs, relocatable, static & static-pic. Yup, really not well documented.
Ah, thank you very much. That did the trick!
Ah, thank you very much. That did the trick!
Horrible.... isn't it....
FWIW, we've just added a line in the gprbuild project readme mentioning the right make targets.
FWIW, we've just added a line in the gprbuild project readme mentioning the right make targets.
Since that component is required and non-optional, when someone runs make
, then gpr should also be automatically be built. It should not be a separate process step. The same goes with installing it.
This statement is manifestly wrong, this component is perfectly optional and is in fact unused if all one needs to build is the executables; and it's as intended (and if you think about it can't be otherwise, given you need gprbuild to build this component, and it might not exist before you build it... chicken and egg, aka bootstrapping...)
This statement is manifestly wrong, this component is perfectly optional and is in fact unused if all one needs to build is the executables; and it's as intended (and if you think about it can't be otherwise, given you need gprbuild to build this component, and it might not exist before you build it... chicken and egg, aka bootstrapping...)
And yet, I've never been able to get a runnable system without it being installed due to so much additional components requiring it.
As far as gnatcoll-core is concerned, this dependency is no longer required unless one wants to build gnatcoll.projects. Generally speaking, libgpr is being phased out in favor of https://github.com/AdaCore/gpr so dependency on it will probably decrease over time.
Hi, There is an apparent circular dependency during build
gnatcoll-core
depends ongpr
gpr
depends ongnatcoll_iconv
,gnatcoll_gmp
,langkit_support
, andlibadalang
libadalang
depends ongnatcoll-core
.The details are as follows
When attempting to build
gnatcoll-core
on Debian Linux withgnat 10.2.1
andgprbuild Pro 18.0w
, dependency is not met ongpr
However, when building
gpr
, a dependency is not met ongnatcoll_iconv
,gnatcoll_gmp
,langkit_support
, andlibadalang
.However, when building
libadalang
, a dependency is not met ongnatcoll-core
In
~/Downloads/libadalang-20.2/user_manual/building.rst
: