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

[wasm] Clang instruction selection crash for PackedSimd.Shuffle in AOT #85023

Closed
kg opened this issue Apr 19, 2023 · 8 comments
Closed

[wasm] Clang instruction selection crash for PackedSimd.Shuffle in AOT #85023

kg opened this issue Apr 19, 2023 · 8 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono
Milestone

Comments

@kg
Copy link
Contributor

kg commented Apr 19, 2023

When AOTing the System.Numerics.Vectors.Tests assembly on main, clang instruction selection crashes when compiling PackedSimd.Shuffle, see https://gist.github.com/kg/450e9f560df6ca5c82c38eff1902a29b . If I remove PackedSimd.Shuffle entirely from the .cs files the AOT succeeds.

cc @radekdoulik

@kg kg added the arch-wasm WebAssembly architecture label Apr 19, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Apr 19, 2023
@ghost
Copy link

ghost commented Apr 19, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

When AOTing the System.Numerics.Vectors.Tests assembly on main, clang instruction selection crashes when compiling PackedSimd.Shuffle, see https://gist.github.com/kg/450e9f560df6ca5c82c38eff1902a29b . If I remove PackedSimd.Shuffle entirely from the .cs files the AOT succeeds.

cc @radekdoulik

Author: kg
Assignees: -
Labels:

arch-wasm

Milestone: -

@vargaz
Copy link
Contributor

vargaz commented Apr 19, 2023

Can't reproduce this, what is the command line ?

@kg
Copy link
Contributor Author

kg commented Apr 19, 2023

/home/kate/Projects/dotnet-runtime-wasm/dotnet.sh build /bl /t:Test /p:TargetOS=browser /p:TargetArchitecture=wasm /p:Configuration=Release /home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Numerics.Vectors/tests/System.Numerics.Vectors.Tests.csproj /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true /p:WasmEnableSIMD=true

Radek appears to have hit it before as well, see llvm/llvm-project#55559 . Might have something to do with OS packages or be a nondeterminism thing. Can't reproduce it on main right now, but I've blown away my checkout multiple times since then - will see if I can reconstruct it.

@kg
Copy link
Contributor Author

kg commented Apr 30, 2023

Hit this again trying to AOT a different test suite.

  [180/184] xunit.execution.dotnet.dll.bc -> xunit.execution.dotnet.dll.o [took 5.298s]
  [181/184] System.Memory.Tests.dll.bc -> System.Memory.Tests.dll.o [took 23.777s]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : Failed to compile /home/kate/Projects/dotnet-runtime-wasm/artifacts/obj/System.Memory.Tests/Release/net8.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc -> /home/kate/Projects/dotnet-runtime-wasm/artifacts/obj/System.Memory.Tests/Release/net8.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.o [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : emcc: warning: linker setting ignored during compilation: 'EXPORT_ES6' [-Wunused-command-line-argument] [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  "/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang++" -target wasm32-unknown-emscripten -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -O2 -g3 -v -fwasm-exceptions -msimd128 -c /home/kate/Projects/dotnet-runtime-wasm/artifacts/obj/System.Memory.Tests/Release/net8.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc -o /tmp/tmpCcaoe0.tmp [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : clang version 17.0.0 (https://github.com/llvm/llvm-project a031f72187ce495b9faa4ccf99b1e901a3872f4b) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : Target: wasm32-unknown-emscripten [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : Thread model: posix [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : InstalledDir: /home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  (in-process) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  "/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang-17" -cc1 -triple wasm32-unknown-emscripten -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name System.Private.CoreLib.dll.bc -mrelocation-model static -mframe-pointer=none -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-feature +exception-handling -mllvm -wasm-enable-eh -target-feature +exception-handling -exception-model=wasm -target-cpu generic -target-feature +simd128 -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests -resource-dir /home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/lib/clang/17 -O2 -fdebug-compilation-dir=/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests -ferror-limit 19 -fvisibility=default -fgnuc-version=4.2.1 -exception-model=wasm -vectorize-loops -vectorize-slp -iwithsysroot/include/fakesdl -iwithsysroot/include/compat -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -o /tmp/tmpCcaoe0.tmp -x ir /home/kate/Projects/dotnet-runtime-wasm/artifacts/obj/System.Memory.Tests/Release/net8.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : clang -cc1 version 17.0.0 based upon LLVM 17.0.0git default target x86_64-unknown-linux-gnu [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : Stack dump: [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : 0.   Program arguments: /home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -O2 -g3 -v -fwasm-exceptions -msimd128 -c /home/kate/Projects/dotnet-runtime-wasm/artifacts/obj/System.Memory.Tests/Release/net8.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc -o /tmp/tmpCcaoe0.tmp [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : 1.   Code generation [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : 2.   Running pass 'Function Pass Manager' on module '/home/kate/Projects/dotnet-runtime-wasm/artifacts/obj/System.Memory.Tests/Release/net8.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc'. [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : 3.   Running pass 'WebAssembly Instruction Selection' on function '@corlib_System_Runtime_Intrinsics_Wasm_PackedSimd_Shuffle_System_Runtime_Intrinsics_Vector128_1_sbyte_System_Runtime_Intrinsics_Vector128_1_sbyte_System_Runtime_Intrinsics_Vector128_1_sbyte' [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #0 0x000055848f6d5a18 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x2dbda18) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #1 0x000055848f6d337e llvm::sys::RunSignalHandlers() (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x2dbb37e) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #2 0x000055848f6d4cd1 llvm::sys::CleanupOnSignal(unsigned long) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x2dbccd1) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #3 0x000055848f644919 CrashRecoverySignalHandler(int) (.llvm.276048425087711484) CrashRecoveryContext.cpp:0:0 [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #4 0x00007f83cf44e140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x13140) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #5 0x000055848e4d1e08 llvm::WebAssemblyTargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&) const WebAssemblyISelLowering.cpp:0:0 [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #6 0x0000558490843600 (anonymous namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*) (.llvm.11157231605826257144) LegalizeDAG.cpp:0:0 [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #7 0x0000558490842fcd llvm::SelectionDAG::Legalize() (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x3f2afcd) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #8 0x0000558490918c5b llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x4000c5b) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error :  #9 0x0000558490917be1 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x3fffbe1) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #10 0x000055849091498f llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x3ffc98f) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #11 0x000055848ebf19f8 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x22d99f8) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #12 0x000055848f12654a llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x280e54a) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #13 0x000055848f1301a3 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x28181a3) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #14 0x000055848f1273b6 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x280f3b6) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #15 0x000055848feeeb68 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::__2::unique_ptr<llvm::raw_pwrite_stream, std::__2::default_delete<llvm::raw_pwrite_stream>>) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x35d6b68) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #16 0x0000558490453973 clang::CodeGenAction::ExecuteAction() (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x3b3b973) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #17 0x0000558490363581 clang::FrontendAction::Execute() (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x3a4b581) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #18 0x00005584902b8f00 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x39a0f00) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #19 0x000055849044dd86 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x3b35d86) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #20 0x000055848e4404f1 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x1b284f1) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #21 0x000055848e43cfc1 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0 [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #22 0x00005584900d1399 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__2::optional<llvm::StringRef>>, std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char>>*, bool*) const::$_0>(long) Job.cpp:0:0 [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #23 0x000055848f64469c llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x2d2c69c) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #24 0x00005584900d0be5 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__2::optional<llvm::StringRef>>, std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char>>*, bool*) const (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x37b8be5) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #25 0x00005584900875fe clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x376f5fe) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #26 0x00005584900ace2c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__2::pair<int, clang::driver::Command const*>>&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x3794e2c) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #27 0x000055848e43be9b clang_main(int, char**, llvm::ToolContext const&) (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x1b23e9b) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #28 0x000055848e44df21 main (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x1b35f21) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #29 0x00007f83cf0fdd0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d0a) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : #30 0x000055848e3ae42a _start (/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang+++0x1a9642a) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : clang version 17.0.0 (https://github.com/llvm/llvm-project a031f72187ce495b9faa4ccf99b1e901a3872f4b) [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : Target: wasm32-unknown-emscripten [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : Thread model: posix [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : InstalledDir: /home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : clang++: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/build/WasmApp.Native.targets(358,5): error : emcc: error: '/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=/home/kate/Projects/dotnet-runtime-wasm/src/mono/wasm/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -O2 -g3 -v -fwasm-exceptions -msimd128 -c /home/kate/Projects/dotnet-runtime-wasm/artifacts/obj/System.Memory.Tests/Release/net8.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc -o /tmp/tmpCcaoe0.tmp' failed (returned 1) [took 52.938s] [/home/kate/Projects/dotnet-runtime-wasm/src/libraries/System.Memory/tests/System.Memory.Tests.csproj]
  [182/184] System.Private.Xml.dll.bc -> System.Private.Xml.dll.o [took 77.646s]
  [183/184] aot-instances.dll.bc -> aot-instances.dll.o [took 120.245s]

@vargaz
Copy link
Contributor

vargaz commented May 6, 2023

Looks like both the wasm.shuffle intrinsic, and the llvm shufflevector instruction requires constant arguments, so this will be hard to implement efficiently.

@lewing lewing added this to the 8.0.0 milestone Jul 10, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jul 10, 2023
@lewing
Copy link
Member

lewing commented Jul 10, 2023

@radekdoulik update this with the current thinking

@unicomp21
Copy link

I forget, is this really a chrome issue?

@lewing lewing closed this as completed May 16, 2024
@unicomp21
Copy link

unicomp21 commented May 17, 2024

What was the fix @lewing @radekdoulik ?

@github-actions github-actions bot locked and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono
Projects
None yet
Development

No branches or pull requests

5 participants