llvm compiled error

Hello,

when I build llvm from git source, some errors occured.

80>asan_new_delete.obj : error LNK2019: unresolved external symbol “void * __cdecl MemalignFromLocalPool(unsigned __int64,unsigned __int64)” (?MemalignFromLocalPool@@YAPEAX_K0@Z), “void * __cdecl operator new(unsigned __int64)” (??2@YAPEAX_K@Z)
80>D:\program\llvm\build\Debug\lib\clang\9.0.0\lib\windows\clang_rt.asan_dynamic-x86_64.dll : fatal error LNK1120
80>“clang_rt.asan-dynamic-x86_64.vcxproj” fail.

env:
cmake x64

win10, visualstudio2017 15.9.8

please help,

Best wishes,
Dian Chen

Ping,
any idea?
thanks in advance~

在 2019-03-11 22:44:12,“mirchd via llvm-dev” llvm-dev@lists.llvm.org 写道:

I assume you are using Visual Studio as your build tool? The LLVM project set turns into a bunch of Visual Studio project files, and my experience has been that they do not always coordinate correctly. Often just running the build again will solve a problem like this. I’m not really familiar with the sanitizers so I don’t have any ideas about the specific error, if re-running the build doesn’t solve it.

–paulr

I assume you are using Visual Studio as your build tool? The LLVM project set turns into a bunch of Visual Studio project files, and my experience has been that they do not always coordinate correctly. Often just running the build again will solve a problem like this. I’m not really familiar with the sanitizers so I don’t have any ideas about the specific error, if re-running the build doesn’t solve it.

–paulr

I used to build llvm/clang on windows a lot, and never had any issues.

But I never built asan on windows, maybe asan just doesn't build on windows?

+Kostya who is the sanitizer guru.

Hi, Any new idea?

Regards,
Dian Chen