Skip to content

Add openbsd non-portable probing#125557

Merged
elinor-fung merged 5 commits into
dotnet:mainfrom
am11:patch-46
Mar 26, 2026
Merged

Add openbsd non-portable probing#125557
elinor-fung merged 5 commits into
dotnet:mainfrom
am11:patch-46

Conversation

@am11

@am11 am11 commented Mar 14, 2026

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

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

@elinor-fung elinor-fung left a comment

Copy link
Copy Markdown
Member

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

am11 commented Mar 22, 2026

Copy link
Copy Markdown
Member Author

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.

@am11

am11 commented Mar 26, 2026

Copy link
Copy Markdown
Member Author

CI failures are unrelated (timeouts and QUIC test failure).

@elinor-fung

Copy link
Copy Markdown
Member

/ba-g #125806

@elinor-fung elinor-fung merged commit d71ebd2 into dotnet:main Mar 26, 2026
160 of 166 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 26, 2026
@am11 am11 deleted the patch-46 branch June 6, 2026 02:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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