Opened 6 months ago

Closed 5 months ago

#70075 closed defect (fixed)

dotnet-cli @8.0.4: dyld: Symbol not found: ____chkstk_darwin

Reported by: diogob003 (Diogo) Owned by: tsabirgaliev (Tair Sabirgaliev)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: judaew (Vadym-Valdis Yudaiev)
Port: dotnet-cli dotnet-sdk-6

Description

I installed dotnet-sdk-6 and command dotnet from dotnet-cli does not work properly

MacOS: 10.13.6

MacPorts: 2.9.3

→ dotnet
dyld: Symbol not found: ____chkstk_darwin
  Referenced from: /opt/local/bin/dotnet (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
 in /opt/local/bin/dotnet
[1]    6539 abort      dotnet

The dotnet-cli match dotnet-sdk-8 MACOSX_DEPLOYMENT_TARGET, but not dotnet-sdk-6 min macos version that should still work on 10.13.

dotnet-cli should be split to match dotnet-sdk-6 and dotnet-sdk-8 build target.

The binaries from https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-6.0.422-macos-x64-binaries work properly without dylib problems.

Change History (5)

comment:1 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: judaew added
Owner: set to tsabirgaliev
Status: newassigned
Summary: dotnet-cli 8.0.4 : build for newer macosdotnet-cli @8.0.4: dyld: Symbol not found: ____chkstk_darwin

comment:2 Changed 5 months ago by tsabirgaliev (Tair Sabirgaliev)

https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md this page list macos 10.15+ as minimum supported version of Macos

comment:3 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Then that should be indicated in the Portfile:

  • dotnet/dotnet-cli/Portfile

    diff --git a/dotnet/dotnet-cli/Portfile b/dotnet/dotnet-cli/Portfile
    index d04ca0cebe2..7ea247f07cd 100644
    a b name dotnet-cli 
    2727version             8.0.6
    2828revision            0
    2929categories          dotnet
     30platforms           {darwin >= 19}
    3031license             MIT
    3132maintainers         {@tsabirgaliev gmail.com:tair.sabirgaliev} \
    3233                    {@judaew judaew} openmaintainer
    long_description .NET is a free, cross-platform, open source developer platfo 
    4445                    whichever is latest.
    4546
    4647homepage            https://dotnet.microsoft.com/
    47 platforms           darwin
    4848supported_archs     x86_64 arm64
    4949
    5050master_sites        https://dotnetcli.azureedge.net/dotnet/Runtime/${version}/

comment:4 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

And since you are installing a pre-compiled binary, the port's contents will not vary by macOS version, so you should indicate that as well:

  • dotnet/dotnet-cli/Portfile

    diff --git a/dotnet/dotnet-cli/Portfile b/dotnet/dotnet-cli/Portfile
    index d04ca0cebe2..0150c05073e 100644
    a b name dotnet-cli 
    2727version             8.0.6
    2828revision            0
    2929categories          dotnet
     30platforms           {darwin any} {darwin >= 19}
    3031license             MIT
    3132maintainers         {@tsabirgaliev gmail.com:tair.sabirgaliev} \
    3233                    {@judaew judaew} openmaintainer
    long_description .NET is a free, cross-platform, open source developer platfo 
    4445                    whichever is latest.
    4546
    4647homepage            https://dotnet.microsoft.com/
    47 platforms           darwin
    4848supported_archs     x86_64 arm64
    4949
    5050master_sites        https://dotnetcli.azureedge.net/dotnet/Runtime/${version}/

comment:5 Changed 5 months ago by judaew (Vadym-Valdis Yudaiev)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.