juce-framework / JUCE

JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.
https://juce.com
Other
6.54k stars 1.73k forks source link

[Bug]: JUCE_x86 failed to setup due to "The code execution cannot proceed because clang_rt.asan_dynamic-x86_64.dll was not found" on ASAN of windows with MSVC #1380

Open liukai12345614 opened 5 months ago

liukai12345614 commented 5 months ago

Detailed steps on how to reproduce the bug

Hi All,

[Bug]: JUCE_x86 failed to setup due to "The code execution cannot proceed because clang_rt.asan_dynamic-x86_64.dll was not found" on ASAN of windows with MSVC. It can be reproduced on latest commit https://github.com/juce-framework/JUCE/commit/4f43011b96eb0636104cb3e433894cda98243626 on master branch. Could you please help look at this issue? Thanks in advance.

Steps to reproduce the behavior:

  1. git clone https://github.com/juce-framework/JUCE F:\gitP\juce-framework\JUCE
  2. Open a VS2022 x86 cmd
  3. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=x86 -arch=x86 & set CL= /fsanitize=address /GS- /wd5072 & set LINK= /InferASanLibs /incremental:no /debug
  4. cd F:\gitP\juce-framework\JUCE && mkdir build_x86 && cd build_x86
  5. cmake -G "Visual Studio 17 2022" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DCMAKE_BUILD_TYPE=Release -DJUCE_BUILD_EXAMPLES=ON -DJUCE_BUILD_EXTRAS=ON ..

Error Message: CMake Error at extras/Build/CMake/JUCEUtils.cmake:547 (message): Running juceaide failed: command: F:/gitP/juce-framework/JUCE/build_x86/tools/extras/Build/juceaide/juceaide_artefacts/Debug/juceaide.exe

Execute juceaide.exe report an error "The code execution cannot proceed because clang_rt.asan_dynamic-x86_64.dll was not found. Reinstalling the program may fix this problem."

What is the expected behaviour?

cmake pass.

Operating systems

Windows

What versions of the operating systems?

VS 2022 + Windows Server 2022 Datacenter

Architectures

64-bit

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct