Skip to content

#15, gpr2.gpr: Missing units in the relocatable Library_Interface attribute definition#16

Open
dsauvage wants to merge 1 commit intoAdaCore:mainfrom
AdaLabs:main-issue-15
Open

#15, gpr2.gpr: Missing units in the relocatable Library_Interface attribute definition#16
dsauvage wants to merge 1 commit intoAdaCore:mainfrom
AdaLabs:main-issue-15

Conversation

@dsauvage
Copy link

@dsauvage dsauvage commented Feb 3, 2026

The missing units below have been added to the relocatable Library_Interface attribute definition

GPR2.Build.Jobserver_Protocol.Pipe
GPR_Parser.Private_Converters
GPR2.Build.View_Tables.Update_Sources_List
GPR2.Tree_Internal.Load_Autoconf

Above fix is for instance required to successfully build libadalang (26.0.0), which depends on gpr2 (26.0..0)

@CLAassistant
Copy link

CLAassistant commented Feb 3, 2026

CLA assistant check
All committers have signed the CLA.

@Jicquel
Copy link
Collaborator

Jicquel commented Feb 3, 2026

Hi, I did not manage to reproduce the libadalang build issue. Could you please provide a reproducer?

@dsauvage
Copy link
Author

dsauvage commented Feb 3, 2026

Apologize i can not send you an automated reproducer
I can reproduce using the steps below;

  1. using the gnat_native 15.2.1 compiler from alire
  2. build gpr2 using its alire crate (libgpr2_26.0.0_99e9d2cd) both in static and relocatable mode
  3. install it
  4. build libadalang using its alire crate (libadalang_26.0.0_75276b8d) both in static and relocatable mode
    the first errors pop up during the call to gprclean before the build, but more errors to follow during the build on other units once you fix them
cd FOLDER/alire/crates/libadalang_26.0.0_75276b8d
gprclean -p -P libadalang.gpr -XLIBRARY_TYPE=static -XBUILD_MODE=prod
gprclean -p -P libadalang.gpr -XLIBRARY_TYPE=relocatable  -XGNATCOLL_ICONV_BUILD=relocatable -XLANGKIT_SUPPORT_BUILD=relocatable -XGNATCOLL_GMP_BUILD=relocatable -XBUILD_MODE=prod
gpr2.gpr:25:1111: "gpr2.build.view_tables.update_sources_list" is not a unit of this project
gpr2.gpr:25:2862: "gpr2.tree_internal.load_autoconf" is not a unit of this project
gprclean: "libadalang.gpr" processing failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants