Skip to content

Add openbsd non-portable probing#125557

Open
am11 wants to merge 5 commits intodotnet:mainfrom
am11:patch-46
Open

Add openbsd non-portable probing#125557
am11 wants to merge 5 commits intodotnet:mainfrom
am11:patch-46

Conversation

@am11
Copy link
Member

@am11 am11 commented Mar 14, 2026

This fallback code (get_current_os_rid_platform) will probably go away in the future once #125076 has landed, but as it stands, we need this for parity. C++ libraries version-less symlinks are needed for cmake/clang to avoid falling back to non-fPIC libc++.a (because libc++.so.x.y is versioned).

With this patch, ./build.sh host.native --cross --os openbsd --arch x64 succeeds.

Upstream PR for eng/common change: dotnet/arcade#16564

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 14, 2026
@am11 am11 added the os-openbsd OpenBSD OS, currently not officially supported label Mar 14, 2026
@am11 am11 requested review from akoeplinger and jkotas March 14, 2026 13:56
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @agocke, @jeffschwMSFT, @elinor-fung
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@elinor-fung elinor-fung left a comment

Choose a reason for hiding this comment

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

This looks good to me from the parity perspective.

What part of the build was failing? I'm missing why this fallback path would affect just building host.native.

@am11
Copy link
Member Author

am11 commented Mar 22, 2026

I'm missing why this fallback path would affect just building host.native.

Sorry I misspoke. It wasn't a failure on main, the failure showed up while I was working on non-portable RID bits. OpenBSD has similarities with FreeBSD and SunOS. Here I had to align with sun-like headers to fix the failure.

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

Labels

area-Host community-contribution Indicates that the PR has been added by a community member os-openbsd OpenBSD OS, currently not officially supported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants