Skip to content

Port bootstrap build on OpenBSD#129080

Open
am11 wants to merge 1 commit into
dotnet:mainfrom
am11:feature/port/openbsd-bootstrap-misc-fixes
Open

Port bootstrap build on OpenBSD#129080
am11 wants to merge 1 commit into
dotnet:mainfrom
am11:feature/port/openbsd-bootstrap-misc-fixes

Conversation

@am11
Copy link
Copy Markdown
Member

@am11 am11 commented Jun 6, 2026

Contributes to #124911.

@am11 am11 requested a review from MichalStrehovsky as a code owner June 6, 2026 19:33
@am11 am11 added area-VM-coreclr port os-openbsd OpenBSD OS, currently not officially supported and removed area-NativeAOT-coreclr labels Jun 6, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jun 6, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

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

Comment thread src/native/minipal/thread.h
@am11 am11 force-pushed the feature/port/openbsd-bootstrap-misc-fixes branch from 12c4799 to a0f6b36 Compare June 8, 2026 14:39
list(APPEND _heimdal_hints
"${CMAKE_SYSROOT}/heimdal/lib"
"${CMAKE_SYSROOT}/usr/heimdal/lib")
"${CMAKE_SYSROOT}/usr/local/heimdal/lib")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These path updates in src/native/libs are compatible with dotnet/arcade#16990 and the real OpenBSD system where pkg_add icu4c openssl etc. install libs and headers.

@am11
Copy link
Copy Markdown
Member Author

am11 commented Jun 8, 2026

With dotnet/arcade#16990, #129124, #129103 and #129078, we can build runtime native src/coreclr/build-runtime.sh and with -component paltests on the OpenBSD system and get all PAL tests passing.

Also cross-build succeeds with these changes and hello world works with coreclr as well as NativeAOT. OpenBSD has similarities with Android, OSX and FreeBSD, so not much "new" here just needed to run a series of trail and error with AI to get the right balance without significant amount of new code.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants