Skip to content

Fix build on the GNU Hurd. - #6111

Merged
martin-frbg merged 1 commit into
OpenMathLib:developfrom
nigkon:fix-build-on-hurd
Oct 8, 2026
Merged

martin-frbg merged 1 commit into
OpenMathLib:developfrom
nigkon:fix-build-on-hurd

Conversation

@nigkon

@nigkon nigkon commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Hello,

SYS_* system call numbers are not defined on the Hurd system. Three of them, SYS_mbind, SYS_set_mempolicy, and SYS_gettid, are used in "common_linux.h". The first two are about setting NUMA (Non‐Uniform Memory Access) policy. NUMA is not supported by the Hurd for now. The third one refers to the Linux specific model of threads. Therefore it is safe to simply disable these syscalls on the GNU Hurd.

OpenBLAS with the proposed patch was successfully build on the GNU Guix Hurd platforms
(both 32 and 64-bit versions), and merged into the GNU Guix, see https://codeberg.org/guix/guix/pulls/11496.

SYS_* system call numbers are not defined on the Hurd system.
Three of them, SYS_mbind, SYS_set_mempolicy, and SYS_gettid,
are used in "common_linux.h".  The first two are about setting NUMA
(Non‐Uniform Memory Access) policy.  NUMA is not supported by the Hurd
for now.  The third one refers to the Linux specific model of threads.
Therefore it is safe to simply disable these syscalls on the GNU Hurd.
@martin-frbg martin-frbg added this to the 0.3.35 milestone Oct 8, 2026
@martin-frbg

Copy link
Copy Markdown
Collaborator

Thank you

@martin-frbg
martin-frbg merged commit b366de2 into OpenMathLib:develop Oct 8, 2026
105 of 110 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