[cfe-dev] Problem building latest clang on Windows for mingw/gcc
Edward Diener
eldlistmailingz at tropicsoft.com
Wed Jan 28 14:11:22 PST 2015
On 1/28/2015 10:49 AM, Michael Spencer wrote:
> On Wed, Jan 28, 2015 at 8:09 AM, Edward Diener
> <eldlistmailingz at tropicsoft.com> wrote:
>> Attempting to build the latest clang on Windows targeting mingw/gcc I
>> receive the error:
>>
>> "llvm-tblgen.exe - Entry Point Not Found
>>
>> The procedure entry point _set_abort_behavior could not be located in the
>> dynamic link library msvcrt.dll."
>>
>> Anybody have any idea what is happening ? It appears that llvm-tblgen.exe is
>> at fault since Dependency Walker is showing the same problem.
>>
>> I have the latest llvm/clang and am using CMake/ninja to build llvm/clang.
>> The mingw/gcc RTL is gcc-4.8.1. This has been previously working without a
>> problem.
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
> Sorry about that. I broke that recently. A patch is on it's way to fix
> this in CMake (http://reviews.llvm.org/D7224). For now you just need
> to add:
>
> -D__MSVCRT_VERSION__=0x<at least 90>0 -lmsvcr<at least 90>
>
> mingw links against the OS msvcrt.dll by default, which it really
> shouldn't be doing ;/
>
I see it is working again now with the latest llvm/clang updates. Thanks !
More information about the cfe-dev
mailing list