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

[BUG] wasm-ld: Error : --shared-memory is disallowed by libHarfBuzzSharp.hb-common.o because it was not compiled with 'atomics' or 'bulk-memory' features. #2285

Closed
wieslawsoltes opened this issue Oct 12, 2022 · 4 comments
Milestone

Comments

@wieslawsoltes
Copy link

Description

wasm-ld: Error  : --shared-memory is disallowed by libHarfBuzzSharp.hb-common.o because it was not compiled with 'atomics' or 'bulk-memory' features.

Trying to build .NET 7 app with browser-wasm RID and true based on:
https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-7-rc-2/#webassembly-multithreading-experimental

Code

Expected Behavior

It builds

Actual Behavior

Linker error

Basic Information

  • Version with issue: 2.88.3, 2.8.2.3
  • Last known good version:
  • IDE:
  • Platform Target Frameworks: .NET 7 RC2
    • Android:
    • iOS:
    • Linux:
    • macOS:
    • Tizen:
    • tvOS:
    • UWP:
    • watchOS:
    • Windows Classic:
  • Target Devices:
Detailed IDE/OS information (click to expand)

PASTE ANY DETAILED VERSION INFO HERE

Screenshots

Reproduction Link

@mattleibow
Copy link
Contributor

Thanks for reporting! @jeromelaban is a hero on the case!

@mattleibow
Copy link
Contributor

Fixed in #2286

@wieslawsoltes
Copy link
Author

Fixed in #2286

@mattleibow Is the fix included in 2.8.2.4-preview.7 nightly build ?

If it is I still get that error.

@Numpsy
Copy link

Numpsy commented Nov 6, 2022

Fwiw, I've managed to get an Avalonia based app compiing with WasmEnableThreads set to true using the preview versions of SkiaSharp/HarfBuzzSharp, though I had to change the Avalonia.Web targets files to use a different version of the binaries to do it and haven't managed to get something running stabely yet

@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants