Skip to content

Library_Interface generated files issues. #156

@Blady-Com

Description

@Blady-Com

When using GPR2 library in relocatable mode, I got this error:

Building for config (BuildMode.dev, LibraryType.relocatable)
Compile
   [Ada]          libadalang-unit_files.adb
   [Ada]          libadalang-env_hooks.adb
   [Ada]          libadalang-internal_default_provider.adb
   [Ada]          libadalang-config_pragmas.adb
libadalang-internal_default_provider.adb:6:06: error: file "gpr2-project-attr_values.ads" not found
...

Many installed GPR2 files for relocatable mode are missing:

% ls -1 /Users/me/xnadalib-2025/include/gpr2.static | wc -l
     336
% ls -1 /Users/me/xnadalib-2025/include/gpr2.relocatable | wc -l 
     146

When I comment out Library_Interface in gpr2.gpr I got the correct number of file and no more error:

% ls -1 /Users/me/xnadalib-2025/include/gpr2.static | wc -l
     336
% ls -1 /Users/me/xnadalib-2025/include/gpr2.relocatable | wc -l
     336

Both original gpr2@0.gpr and modified gpr2.gpr are provided:

GPR2.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions