Skip to content

linux-bionic-arm64 built from feature/net8.0: MarshalDirectiveException #2671

Open
@rene-descartes2021

Description

@rene-descartes2021

Error is in log, from running ./OmniSharp:
https://gist.github.com/rene-descartes2021/67209d2df3b22e17578a75c625f33ebb

Subset of the above log:

System.Runtime.InteropServices.MarshalDirectiveException: Array size control parameter must be an integral type.
[...]
at OmniSharp.MSBuild.Discovery.Providers.SdkInstanceProvider.GetInstances() in /data/data/com.termux/files/home/dev/omnisharp-roslyn/src/OmniSharp.Host/MSBuild/Discovery/Providers/SdkInstanceProvider.cs:line 33

I built OmniSharp on Termux, had to adjust scripts/platform.cake a bit to get it to detect the platform and emit the linux-bionic-arm64 rid for use by the Install target (not publishing for all platforms). Otherwise it emits linux-arm64 which won't work, that uses wrong libc. Here is link to a commit with most everything relevant.

Built by:

./build.sh --target Install --archive --test-configuration Release --configuration Release --verbosity diagnostic --use-global-dotnet-sdk --install-path "$HOME/.local/share/omnisharp"

Does anyone gets the same problem when running the linux-bionic-arm64 product of #2653 (which publishes for all platforms)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions