Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing alr build step either in instructions or in Makefile #1296

Open
mgrojo opened this issue May 17, 2024 · 1 comment
Open

Missing alr build step either in instructions or in Makefile #1296

mgrojo opened this issue May 17, 2024 · 1 comment
Labels

Comments

@mgrojo
Copy link

mgrojo commented May 17, 2024

Using Alire 2.0.1 and following the steps in the development guide I got these errors:

mgr@mgr-B50-80:~/src/github/AdaCore/RecordFlux$ make install_devel
gprbuild -p -j0 -Pgenerated/librflxlang.gpr \
	-XLIBRARY_TYPE=static-pic \
	-XLIBRFLXLANG_LIBRARY_TYPE=relocatable \
	-XLIBRFLXLANG_STANDALONE=encapsulated
librflxlang.gpr:6:06: imported project file "gnatcoll" not found
gnatcoll_gmp.gpr:24:06: imported project file "gnatcoll" not found
gnatcoll_gmp.gpr:24:06: imported by "/home/mgr/src/github/AdaCore/RecordFlux/generated/gnatcoll-bindings/gmp/gnatcoll_gmp.gpr"
gnatcoll_gmp.gpr:24:06: imported by "/home/mgr/src/github/AdaCore/RecordFlux/generated/librflxlang.gpr"
gnatcoll_gmp.gpr:45:43: unknown package or project "Gnatcoll"
gnatcoll_iconv.gpr:24:06: imported project file "gnatcoll" not found
gnatcoll_iconv.gpr:24:06: imported by "/home/mgr/src/github/AdaCore/RecordFlux/generated/gnatcoll-bindings/iconv/gnatcoll_iconv.gpr"
gnatcoll_iconv.gpr:24:06: imported by "/home/mgr/src/github/AdaCore/RecordFlux/generated/librflxlang.gpr"
gnatcoll_iconv.gpr:45:43: unknown package or project "Gnatcoll"
langkit_support.gpr:1:06: imported project file "gnatcoll" not found
langkit_support.gpr:1:06: imported by "/home/mgr/src/github/AdaCore/RecordFlux/generated/langkit/langkit/support/langkit_support.gpr"
langkit_support.gpr:1:06: imported by "/home/mgr/src/github/AdaCore/RecordFlux/generated/librflxlang.gpr"
gprbuild: "generated/librflxlang.gpr" processing failed
make: *** [Makefile:212: generated/lib/relocatable/dev/librflxlang.so] Error 4

The problem was, that the project files did not exist in the directories present in GPR_PROJECT_PATH generated by Alire in the eval $(make printenv_gnat) step.

To continue building, I had to run:

cd build/alire
alr build
cd -
make install_devel
``
@mgrojo mgrojo added the bug label May 17, 2024
@treiher
Copy link
Collaborator

treiher commented May 22, 2024

Thank you for the report! This problem is caused by a behavior change in Alire 2.0. It worked fine with previous Alire versions. We will update the Makefile accordingly.

adacore-bot pushed a commit that referenced this issue May 29, 2024
Ref. #1296, eng/recordflux/RecordFlux#1639
adacore-bot pushed a commit that referenced this issue May 29, 2024
Ref. #1296, eng/recordflux/RecordFlux#1639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants