Skip to content

[salome-med-fichier] fix cross-compilation failure on arm64-linux#52132

Merged
vicroms merged 1 commit into
microsoft:masterfrom
vicroms:fix/salome-med-fichier-cross-compile
Jun 2, 2026
Merged

[salome-med-fichier] fix cross-compilation failure on arm64-linux#52132
vicroms merged 1 commit into
microsoft:masterfrom
vicroms:fix/salome-med-fichier-cross-compile

Conversation

@vicroms
Copy link
Copy Markdown
Member

@vicroms vicroms commented Jun 2, 2026

Pass a host-compatible PKG_CONFIG_EXECUTABLE to cmake configure to prevent CMake from caching the target triplet's pkgconf binary (which cannot execute on the x86_64 host). This fixes the BUILD_FAILED regression where hdf5-config.cmake's find_dependency(MPI) fails because FindMPI cannot use the arm64 pkgconf to discover MPI libraries.

Follows the same pattern as freerdp, openvino, and other cross-compilation aware ports.

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version, or no changes were necessary.
  • Any fixed CI baseline and CI feature baseline entries are removed from that file, or no entries needed to be changed.
  • All patch files in the port are applied and succeed.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Exactly one version is added in each modified versions file.

Pass a host-compatible PKG_CONFIG_EXECUTABLE to cmake configure to prevent
CMake from caching the target triplet's pkgconf binary (which cannot execute
on the x86_64 host). This fixes the BUILD_FAILED regression where
hdf5-config.cmake's find_dependency(MPI) fails because FindMPI cannot use
the arm64 pkgconf to discover MPI libraries.

Follows the same pattern as freerdp, openvino, and other cross-compilation
aware ports.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vicroms vicroms changed the title salome-med-fichier: fix cross-compilation failure on arm64-linux [salome-med-fichier] fix cross-compilation failure on arm64-linux Jun 2, 2026
Copy link
Copy Markdown
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "gift" that keeps on giving :(

@vicroms vicroms merged commit e1dfb36 into microsoft:master Jun 2, 2026
16 checks passed
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.

2 participants