Hi,

On Sun, Jun 12, 2022 at 10:12 PM K.Takata <[email protected]> wrote:

> Hmm, I couldn't build with the MINGW64 version of clang:
>
> $ clang++ -O1 -g -fsanitize=address -fno-omit-frame-pointer 
> example_UseAfterFree.cc
> C:/msys64/mingw64/bin/ld: cannot find 
> C:/msys64/mingw64/lib/clang/14.0.4/lib/windows/libclang_rt.asan_dynamic-x86_64.dll.a:
>  No such file or directory
> C:/msys64/mingw64/bin/ld: cannot find 
> C:/msys64/mingw64/lib/clang/14.0.4/lib/windows/libclang_rt.asan_dynamic_runtime_thunk-x86_64.a:
>  No such file or directory
> C:/msys64/mingw64/bin/ld: cannot find 
> C:/msys64/mingw64/lib/clang/14.0.4/lib/windows/libclang_rt.asan_dynamic_runtime_thunk-x86_64.a:
>  No such file or directory
> clang++: error: linker command failed with exit code 1 (use -v to see 
> invocation)
>
> example_UseAfterFree.cc is coming from the official document of clang:
> https://clang.llvm.org/docs/AddressSanitizer.html
>
>
> You are correct. I don't know how it worked for me before. I uninstalled
and
reinstalled all the Mingw clang packages and tried to build Vim again and
couldn't build with ASAN.  But I am able to build Vim with ASAN using the
mingw-w64-clang-{x86_64,i686}-clang package. I have updated the help to
reflect this.

Regards,
Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3D9iDwZkfey1R1BDBDa-RSOazXZJYTqaX3B7RJ8rJO%2ByQ%40mail.gmail.com.

Raspunde prin e-mail lui