Skip to content
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

Not compatible with Apple Silicon #28433

Open
m-yukio opened this issue Dec 27, 2021 · 4 comments
Open

Not compatible with Apple Silicon #28433

m-yukio opened this issue Dec 27, 2021 · 4 comments
Labels
disposition/help wanted Maintainers do not have enough resources to allocate to this at the moment. Help is appreciated! kind/enhancement priority/P2

Comments

@m-yukio
Copy link

m-yukio commented Dec 27, 2021

Not compatible with Apple Silicon .
For example, Apple Silicon does not exist in the definition below.

BUILD

# Fuzzers can be built as fuzzers or as tests
...
config_setting(
    name = "windows_msvc",
    values = {"cpu": "x64_windows_msvc"},
)

config_setting(
    name = "mac_x86_64",
    values = {"cpu": "darwin"},
)

config_setting(
    name = "use_strict_warning",
    values = {"define": "use_strict_warning=true"},
)
...

grpc/src/python/grpcio/grpc_core_dependencies.py:

ASM_SOURCE_FILES = {
    ...
    'crypto_linux_x86_64': [
        ...
    ],
    'crypto_mac_x86': [
        ...
    ],
    'crypto_mac_x86_64': [
        ...
    ],
    'crypto_win_aarch64': [
        ...
    ],
    ...

grpc/setup.py:

asm_key = ''
if BUILD_WITH_BORING_SSL_ASM and not BUILD_WITH_SYSTEM_OPENSSL:
    boringssl_asm_platform = BUILD_OVERRIDE_BORING_SSL_ASM_PLATFORM if BUILD_OVERRIDE_BORING_SSL_ASM_PLATFORM else util.get_platform(
    )
    LINUX_X86_64 = 'linux-x86_64'
    LINUX_ARM = 'linux-arm'
    LINUX_AARCH64 = 'linux-aarch64'
    if LINUX_X86_64 == boringssl_asm_platform:
        asm_key = 'crypto_linux_x86_64'
    elif LINUX_ARM == boringssl_asm_platform:
        asm_key = 'crypto_linux_arm'
    elif LINUX_AARCH64 == boringssl_asm_platform:
        asm_key = 'crypto_linux_aarch64'
    elif "mac" in boringssl_asm_platform and "x86_64" in boringssl_asm_platform:
        asm_key = 'crypto_mac_x86_64'
    else:
        print("ASM Builds for BoringSSL currently not supported on:",
              boringssl_asm_platform)

Maybe AARCH64 or arm64 or arm64e.

@muhammadbilal20130
Copy link

...

@teamzz111
Copy link

Same here

"Error loading native library. Not found in any of the possible locations: /Users/andreslargo/Develop/Chamba/chamba-business/Chamba-Business-Feed/bin/Debug/net6.0/libgrpc_csharp_ext.arm64.dylib,/Users/andreslargo/Develop/Chamba/chamba-business/Chamba-Business-Feed/bin/Debug/net6.0/

StackTrace " at Grpc.Core.Internal.UnmanagedLibrary.FirstValidLibraryPath(String[] libraryPathAlternatives)\n at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives)\n at Grpc.Core.Internal.NativeExtension.LoadNativeMethodsUsingExplicitLoad()\n at Grpc.Core.Internal.NativeExtension.LoadNativeMethods()\n at Grpc.Core.Internal.NativeExtension..ctor()\n at Grpc.Core.Internal.NativeExtension.Get()\n at Grpc.Core.Internal.NativeMethods.Get()\n at Grpc.Core.GrpcEnvironment.GrpcNativeInit()\n at Grpc.Core.GrpcEnvironment..ctor()\n at Grpc.Core.GrpcEnvironment.AddRef()\n at Grpc.Core.Channel..ctor(String target, ChannelCredentials credentials, IEnumerable1 options)\n at Google.Api.Gax.Grpc.GrpcCore.GrpcCoreAdapter.CreateChannelImpl(String endpoint, ChannelCredentials credentials, GrpcChannelOptions options)\n at Google.Api.Gax.Grpc.GrpcAdapter.CreateChannel(String endpoint, ChannelCredentials credentials, GrpcChannelOptions options)\n at Google.Api.Gax.… string
`

@m-yukio
Copy link
Author

m-yukio commented Dec 28, 2021

I didn't know where to add Apple Silicon support, is it here?

grpc/bazel/grpc_build_system.bzl

def if_mac(a):
    return select({
        "//:mac_x86_64": a,
        "//conditions:default": [],
    })

@MitchDart
Copy link

Running into the same issue as @teamzz111. dotnet Core can't find binaries for arm64 on the latest Nuget version. Is there any workaround for this?

@donnadionne donnadionne added the disposition/help wanted Maintainers do not have enough resources to allocate to this at the moment. Help is appreciated! label Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disposition/help wanted Maintainers do not have enough resources to allocate to this at the moment. Help is appreciated! kind/enhancement priority/P2
Projects
None yet
Development

No branches or pull requests

5 participants