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

Cannot build WASM with 6.0.0-beta5 #180

Open
kinosang opened this issue May 10, 2024 · 0 comments
Open

Cannot build WASM with 6.0.0-beta5 #180

kinosang opened this issue May 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kinosang
Copy link

kinosang commented May 10, 2024

Describe the bug
Cannot build WASM due to symbol conflict.

To Reproduce
Create a browser project and reference SukiUI 6.0.0-beta5.

Expected behavior
The project should build.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • Avalonia-Version 11.1.0-beta2

Additional context

 "C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.win-x64\8.0.4\tools\bin\wasm-ld.exe" -o \obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\dotnet.native.wasm ..\packages\skiasharp.nativeassets.webassembly\2.88.8\buildTransitive\netstandard1.0\..\..\build\netstandard1.0\libSkiaSharp.a\3.1.34\st\libSkiaSharp.a ..\packages\harfbuzzsharp.nativeassets.webassembly\7.3.0.2\buildTransitive\netstandard1.0\..\..\build\netstandard1.0\libHarfBuzzSharp.a\3.1.34\st\libHarfBuzzSharp.a ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\driver.o ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\corebindings.o "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libicudata.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libicui18n.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libicuuc.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-component-debugger-static.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-component-diagnostics_tracing-stub-static.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-component-hot_reload-static.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-component-marshal-ilgen-static.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-ee-interp.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-icall-table.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-profiler-aot.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-profiler-browser.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-wasm-eh-wasm.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-wasm-simd.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmonosgen-2.0.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libSystem.Globalization.Native.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libSystem.IO.Compression.Native.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libSystem.Native.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\wasm-bundled-timezones.a" "-LC:\Program Files\dotnet\packs\Microsoft.NET.Runtime.Emscripten.3.1.34.Cache.win-x64\8.0.4\tools\emscripten\cache\sysroot\lib\wasm32-emscripten" --whole-archive -lGL-webgl2 --no-whole-archive -lal -lhtml5 -lstubs-debug -lnoexit -lc-debug -ldlmalloc -lcompiler_rt-wasm-sjlj -lc++-except -lc++abi-debug-except -lunwind-except -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -mllvm -wasm-enable-eh -mllvm -exception-model=wasm --allow-undefined-file=..\AppData\Local\Temp\tmp9lt0y372.undefined --export-if-defined=free --export-if-defined=htons --export-if-defined=malloc --export-if-defined=memalign --export-if-defined=memset --export-if-defined=ntohs --export-if-defined=stackAlloc --export-if-defined=stackRestore --export-if-defined=stackSave --export-if-defined=fmod --export-if-defined=atan2 --export-if-defined=fma --export-if-defined=pow --export-if-defined=fmodf --export-if-defined=atan2f --export-if-defined=fmaf --export-if-defined=powf --export-if-defined=asin --export-if-defined=asinh --export-if-defined=acos --export-if-defined=acosh --export-if-defined=atan --export-if-defined=atanh --export-if-defined=cbrt --export-if-defined=cos --export-if-defined=cosh --export-if-defined=exp --export-if-defined=log --export-if-defined=log2 --export-if-defined=log10 --export-if-defined=sin --export-if-defined=sinh --export-if-defined=tan --export-if-defined=tanh --export-if-defined=asinf --export-if-defined=asinhf --export-if-defined=acosf --export-if-defined=acoshf --export-if-defined=atanf --export-if-defined=atanhf --export-if-defined=cbrtf --export-if-defined=cosf --export-if-defined=coshf --export-if-defined=expf --export-if-defined=logf --export-if-defined=log2f --export-if-defined=log10f --export-if-defined=sinf --export-if-defined=sinhf --export-if-defined=tanf --export-if-defined=tanhf --export-if-defined=__get_exception_message --export-if-defined=__cpp_exception --export-if-defined=__cxa_increment_exception_refcount --export-if-defined=__cxa_decrement_exception_refcount --export-if-defined=__thrown_object_from_unwind_exception --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__start_em_lib_deps --export-if-defined=__stop_em_lib_deps --export-if-defined=__start_em_js --export-if-defined=__stop_em_js --export-if-defined=fflush --export=emscripten_stack_get_end --export=emscripten_stack_get_free --export=emscripten_stack_get_base --export=emscripten_stack_get_current --export=emscripten_stack_init --export=stackSave --export=stackRestore --export=stackAlloc --export=__errno_location --export=malloc --export=free --export=__trap --export=__wasm_call_ctors --export=__dl_seterr --export=emscripten_builtin_memalign --export=htonl --export=htons --export=ntohs --export-table --growable-table -z stack-size=5242880 --initial-memory=97910784 --no-entry --max-memory=2147483648 --stack-first
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: gr_recording_context_is_abandoned
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: gr_recording_context_max_render_target_size
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: gr_recording_context_max_texture_size
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_canvas_get_matrix
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_canvas_new_from_raster
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_compatpaint_get_filter_quality
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_compatpaint_get_lcd_render_text
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_compatpaint_set_filter_quality
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_compatpaint_set_is_antialias
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_compatpaint_set_lcd_render_text
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_image_make_raw_shader
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_image_make_subset_raster
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_image_make_with_filter_raster
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_imagefilter_new_blend
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_imagefilter_new_image
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_imagefilter_new_image_simple
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_imagefilter_new_matrix_transform
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_imagefilter_new_merge_simple
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_imagefilter_new_picture_with_rect
3>wasm-ld: Error  : ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o: undefined symbol: sk_imagefilter_new_shader
3>wasm-ld: Error  : too many errors emitted, stopping now (use -error-limit=0 to see all errors)
3>emcc: Error  : '"C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.win-x64\8.0.4\tools\bin\wasm-ld.exe" -o ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\dotnet.native.wasm ..\packages\skiasharp.nativeassets.webassembly\2.88.8\buildTransitive\netstandard1.0\..\..\build\netstandard1.0\libSkiaSharp.a\3.1.34\st\libSkiaSharp.a ..\packages\harfbuzzsharp.nativeassets.webassembly\7.3.0.2\buildTransitive\netstandard1.0\..\..\build\netstandard1.0\libHarfBuzzSharp.a\3.1.34\st\libHarfBuzzSharp.a ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\pinvoke.o ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\driver.o ..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\corebindings.o "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libicudata.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libicui18n.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libicuuc.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-component-debugger-static.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-component-diagnostics_tracing-stub-static.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-component-hot_reload-static.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-component-marshal-ilgen-static.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-ee-interp.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-icall-table.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-profiler-aot.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-profiler-browser.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-wasm-eh-wasm.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmono-wasm-simd.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libmonosgen-2.0.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libSystem.Globalization.Native.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libSystem.IO.Compression.Native.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\libSystem.Native.a" "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\wasm-bundled-timezones.a" "-LC:\Program Files\dotnet\packs\Microsoft.NET.Runtime.Emscripten.3.1.34.Cache.win-x64\8.0.4\tools\emscripten\cache\sysroot\lib\wasm32-emscripten" --whole-archive -lGL-webgl2 --no-whole-archive -lal -lhtml5 -lstubs-debug -lnoexit -lc-debug -ldlmalloc -lcompiler_rt-wasm-sjlj -lc++-except -lc++abi-debug-except -lunwind-except -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -mllvm -wasm-enable-eh -mllvm -exception-model=wasm --allow-undefined-file=..\AppData\Local\Temp\tmp9lt0y372.undefined --export-if-defined=free --export-if-defined=htons --export-if-defined=malloc --export-if-defined=memalign --export-if-defined=memset --export-if-defined=ntohs --export-if-defined=stackAlloc --export-if-defined=stackRestore --export-if-defined=stackSave --export-if-defined=fmod --export-if-defined=atan2 --export-if-defined=fma --export-if-defined=pow --export-if-defined=fmodf --export-if-defined=atan2f --export-if-defined=fmaf --export-if-defined=powf --export-if-defined=asin --export-if-defined=asinh --export-if-defined=acos --export-if-defined=acosh --export-if-defined=atan --export-if-defined=atanh --export-if-defined=cbrt --export-if-defined=cos --export-if-defined=cosh --export-if-defined=exp --export-if-defined=log --export-if-defined=log2 --export-if-defined=log10 --export-if-defined=sin --export-if-defined=sinh --export-if-defined=tan --export-if-defined=tanh --export-if-defined=asinf --export-if-defined=asinhf --export-if-defined=acosf --export-if-defined=acoshf --export-if-defined=atanf --export-if-defined=atanhf --export-if-defined=cbrtf --export-if-defined=cosf --export-if-defined=coshf --export-if-defined=expf --export-if-defined=logf --export-if-defined=log2f --export-if-defined=log10f --export-if-defined=sinf --export-if-defined=sinhf --export-if-defined=tanf --export-if-defined=tanhf --export-if-defined=__get_exception_message --export-if-defined=__cpp_exception --export-if-defined=__cxa_increment_exception_refcount --export-if-defined=__cxa_decrement_exception_refcount --export-if-defined=__thrown_object_from_unwind_exception --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__start_em_lib_deps --export-if-defined=__stop_em_lib_deps --export-if-defined=__start_em_js --export-if-defined=__stop_em_js --export-if-defined=fflush --export=emscripten_stack_get_end --export=emscripten_stack_get_free --export=emscripten_stack_get_base --export=emscripten_stack_get_current --export=emscripten_stack_init --export=stackSave --export=stackRestore --export=stackAlloc --export=__errno_location --export=malloc --export=free --export=__trap --export=__wasm_call_ctors --export=__dl_seterr --export=emscripten_builtin_memalign --export=htonl --export=htons --export=ntohs --export-table --growable-table -z stack-size=5242880 --initial-memory=97910784 --no-entry --max-memory=2147483648 --stack-first' failed (returned 1)
3>WasmApp.Native.targets(513,5): Error MSB3073 : emcc "@C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\src\emcc-default.rsp" -msimd128 "@C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.4\runtimes\browser-wasm\native\src\emcc-link.rsp" "@..\obj\Debug\net8.0-browser\browser-wasm\wasm\for-build\emcc-link.rsp" exit 1
3>WasmApp.Native.targets(538,5): Error  : Use '-p:WasmAllowUndefinedSymbols=true' to allow undefined symbols
3>------- Finished building project: Browser. Succeeded: False. Errors: 24. Warnings: 0
Build completed in 00:00:10.189
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants