Skip to content

SunOS process and thread support #105403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

SunOS process and thread support #105403

wants to merge 9 commits into from

Conversation

gwr
Copy link
Contributor

@gwr gwr commented Jul 24, 2024

Read binary psinfo for System.Diagnostic.Process on SunOS (Solaris or illumos).
No failures in System.Diagnostic.Process.Tests (but lots of skip)

BTW, I tried rebasing on main from Mon. this week and ran into problems downloading stuff.
Not sure why, but it didn't seem to have anything to do with my changes.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 24, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
See info in area-owners.md if you want to be subscribed.

@am11
Copy link
Member

am11 commented Jul 24, 2024

Lets drop the changes which are already submitted in other PRs.

@am11
Copy link
Member

am11 commented Jul 24, 2024

Good start! I've left initial feedback, which I anticipate the maintainers will point out. :)

@am11 am11 added the os-SunOS SunOS, currently not officially supported label Jul 24, 2024
@gwr
Copy link
Contributor Author

gwr commented Jul 24, 2024

Good start! I've left initial feedback, which I anticipate the maintainers will point out. :)

Thanks. I had not yet seen #105207 when I opened this. I think @AustinWise and I should figure out how to get the prerequisite fixes shown there (and here) all integrated, and then I'll rebase the last parts of this onto that.

@gwr
Copy link
Contributor Author

gwr commented Jul 24, 2024

Lets drop the changes which are already submitted in other PRs.

I'd love to, but I do not see a way to do "stacked" PRs, where one PR targets the branch of another PR.
If I drop the prerequisite changes then things break. Suggestions welcome.

@am11
Copy link
Member

am11 commented Jul 24, 2024

Create a local branch feature/illumos-port with all the miscellaneous changes. Then keep this branch only for System.Diagnostics.Port changes. You can git cherry-pick <spaces-separated commit hashes> across the branches.

@gwr
Copy link
Contributor Author

gwr commented Jun 21, 2025

Hi all, I've rebased this and have been trying to rebuild (after being away from it for a while) and my Ubuntu 22.04 system can't seem to get dotnet-runtime-10 etc. I have things setup as described in the README for this repo. but that seems to be out of date. Can anyone point me to more up-to-date instructions?

Actually, maybe it's some other sort of chicken/egg problem. I see:
There is no application host available for the specified RuntimeIdentifier 'illumos-x64'.

Here is the detailed error output:

/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
    0 Warning(s)
    8 Error(s)

@am11
Copy link
Member

am11 commented Jun 21, 2025

Yes, the build process has changed for community platforms: https://github.com/dotnet/runtime/blob/f0168ee80ba9aca18a7e7140b2bb436defda623c/docs/workflow/building/coreclr/cross-building.md#building-coreclr-with-bootstrapping

Old:

$ ./build.sh clr+libs --cross --os illumos

New:

$ ./build.sh clr+libs --cross --os illumos --bootstrap

For rebuild (incremental changes), replace --bootstrap with --use-bootstrap.

@gwr
Copy link
Contributor Author

gwr commented Jun 22, 2025

Thanks. I fixed a bunch of things. Here's what I get now when I try to build:

  Determining projects to restore...
  Tool 'coverlet.console' (version '6.0.4') was restored. Available commands: coverlet
  Tool 'dotnet-reportgenerator-globaltool' (version '5.4.3') was restored. Available commands: reportgenerator
  Tool 'microsoft.dotnet.xharness.cli' (version '10.0.0-prerelease.25255.1') was restored. Available commands: xharness
  Tool 'microsoft.visualstudio.slngen.tool' (version '12.0.15') was restored. Available commands: slngen
  
  Restore was successful.
  All projects are up-to-date for restore.
  Determining projects to restore...
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
  Nothing to do. None of the projects specified contain packages to restore.

Build FAILED.

/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
    0 Warning(s)
    8 Error(s)

Time Elapsed 00:00:34.13
Build failed with exit code 1. Check errors above.

More hints? Oh, I tried this, and it helped:

~/dotnet/runtime$ git diff
diff --git a/global.json b/global.json
index a9314aa32ef..aa41e2cdea5 100644
--- a/global.json
+++ b/global.json
@@ -1,11 +1,11 @@
 {
   "sdk": {
-    "version": "10.0.100-preview.6.25302.104",
+    "version": "10.0.100-preview.5.25277.114",
     "allowPrerelease": true,
     "rollForward": "major"
   },
   "tools": {
-    "dotnet": "10.0.100-preview.6.25302.104"
+    "dotnet": "10.0.100-preview.5.25277.114"
   },
   "msbuild-sdks": {
     "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25311.107",

though I assume that's a temporary work-around because that's the version of dotnet 10 I can easily get on my build system.

@am11
Copy link
Member

am11 commented Jun 22, 2025

Here's what I get now when I try to build:

You need to first build with --bootstrap each time you clean the repo. In the subsequent attempts (without cleaning), you can use --use-bootstrap instead to save time.

The desired SDK version is automatically downloaded at <repo>/.dotnet/

Revert global.json, git clean -xdf then ./build.sh clr+libs --cross --os illumos --bootstrap

@gwr
Copy link
Contributor Author

gwr commented Jun 23, 2025

Still failing in a clean repo.
(CXX build part runs a long time, ending with...)

sfx-finish -> Trimming illumos-x64 shared framework assemblies with ILLinker...
  Microsoft.NETCore.Platforms -> /home/gwr/dotnet/runtime/artifacts/bin/Microsoft.NETCore.Platforms/Debug/net10.0/Microsoft.NETCore.Platforms.dll
  Microsoft.NETCore.Platforms -> /home/gwr/dotnet/runtime/artifacts/bin/Microsoft.NETCore.Platforms/Debug/net472/Microsoft.NETCore.Platforms.dll
  Bootstrap files copied to /home/gwr/dotnet/runtime/artifacts/bootstrap

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:17:09.28
Cleaning up artifacts from bootstrap build...
  Determining projects to restore...
  Tool 'coverlet.console' (version '6.0.4') was restored. Available commands: coverlet
  Tool 'dotnet-reportgenerator-globaltool' (version '5.4.3') was restored. Available commands: reportgenerator
  Tool 'microsoft.dotnet.xharness.cli' (version '10.0.0-prerelease.25255.1') was restored. Available commands: xharness
  Tool 'microsoft.visualstudio.slngen.tool' (version '12.0.15') was restored. Available commands: slngen
  
  Restore was successful.
  All projects are up-to-date for restore.
  Determining projects to restore...
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
  Nothing to do. None of the projects specified contain packages to restore.

Build FAILED.

/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
/home/gwr/dotnet/runtime/.dotnet/sdk/10.0.100-preview.6.25302.104/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(188,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'illumos-x64'. [/home/gwr/dotnet/runtime/Build.proj]
    0 Warning(s)
    8 Error(s)

Time Elapsed 00:00:33.73
Build failed with exit code 1. Check errors above.

@gwr
Copy link
Contributor Author

gwr commented Jun 23, 2025

@am11 please see the latest commit on this branch, with my attempt to add support for platforms where !HAVE_DIRENT_D_TYPE (eg. illumos). This builds for me now. Thanks again for the help.
Should any of the commits I now have in this branch be promoted into separate pull requests?

@gwr gwr force-pushed the illumos5 branch 2 times, most recently from 2dd616d to f7d1a1d Compare June 24, 2025 01:31
@gwr
Copy link
Contributor Author

gwr commented Jun 24, 2025

I could use help figuring out what's causing all the automated test failures.

@am11
Copy link
Member

am11 commented Jun 24, 2025

I could use help figuring out what's causing all the automated test failures.

Those are build failures, not test failures. You can click one of them to and follow Azure DevOps link to see the details.

@gwr gwr force-pushed the illumos5 branch 2 times, most recently from c71e167 to 40cb08a Compare June 24, 2025 05:49
@gwr
Copy link
Contributor Author

gwr commented Jun 24, 2025

Trying the commits in a different order.

gwr and others added 8 commits June 24, 2025 02:09
  dotnet/runtime/src/native/minipal/debugger.c:127:5: error: implicit declaration of function 'snprintf' [-Werror=implicit-function-declaration]
    127 |     snprintf(statusFilename, sizeof(statusFilename), "/proc/%d/status", getpid());
        |     ^~~~~~~~
  src/native/minipal/thread.h:73:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
     73 |         tid = (size_t)(void*)pthread_self();
        |                       ^~~~~~~~~~~~~~~~~~~~~
  /home/gwr/dotnet/runtime/src/coreclr/pal/src/thread/thread.cpp:1367:5: error: 'cid' was not declared in this scope
   1367 |     cid = CLOCK_THREAD_CPUTIME_ID;
        |     ^~~
 src/native/libs/System.Native/pal_mount.c:164:38: error: 'struct statvfs' has no member named 'f_type'
    164 |         *formatType = (int64_t)(stats.f_type);
        |                                      ^
 src/coreclr/vm/appdomain.hpp:1934:40: error: declaration of 'constexpr SystemDomain** const cdac_data<SystemDomain>::SystemDomain' changes meaning of 'SystemDomain' [-Wchanges-meaning]
   1934 |     static constexpr PTR_SystemDomain* SystemDomain = &SystemDomain::m_pSystemDomain;
        |                                        ^~~~~~~~~~~~
  src/coreclr/vm/appdomain.hpp:1934:56: note: used here to mean 'class SystemDomain'
   1934 |     static constexpr PTR_SystemDomain* SystemDomain = &SystemDomain::m_pSystemDomain;
        |                                                        ^~~~~~~~~~~~
  src/coreclr/vm/appdomain.hpp:1629:7: note: declared here
   1629 | class SystemDomain final
        |       ^~~~~~~~~~~~
 coreclr/runtime/amd64/AllocFast.S: Assembler messages:
  coreclr/runtime/amd64/AllocFast.S:237: Error: missing ')'
  /runtime/src/coreclr/tools/superpmi/mcs/verbmerge.cpp: In static member function 'static bool verbMerge::DirectoryFilterDirectories(FilterArgType*)':
  /runtime/src/coreclr/tools/superpmi/mcs/verbmerge.cpp:188:19: error: 'verbMerge::FilterArgType' {aka 'struct dirent'} has no member named 'd_type'
    188 |     if (findData->d_type == DT_DIR)
        |                   ^~~~~~

and similar a few other places in this file
Read binary psinfo for System.Diagnostic.Process on SunOS

Thanks for initial prototype help from:
Austin Wise <[email protected]>

Add Try prefix to SunOS Interop functions
Get rid of unsafe for procfs get methods

Fix Copilot error in System/Diagnostics/ProcessManager.SunOS.cs
Co-authored-by: Copilot <[email protected]>
@gwr
Copy link
Contributor Author

gwr commented Jun 24, 2025

Building on top of the workaround am11@427f679
and getting errors I don't understand. hints?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Diagnostics.Process community-contribution Indicates that the PR has been added by a community member os-SunOS SunOS, currently not officially supported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants