[cfe-dev] Failure building x86_64-w64-mingw32 triplet of clang on Windows

NAKAMURA Takumi via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 14 06:59:45 PDT 2016


On Tue, Jun 14, 2016 at 10:50 PM Edward Diener via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On 6/14/2016 8:21 AM, NAKAMURA Takumi via cfe-dev wrote:
> > I guess you are building on msys2 with external mingw-w64.
>
> No, I am not. Ninja is calling mingw-64/gcc-5.3 directly to build
> llvm/clang

.
>
> CMake picks up msys2's libxml2, I guess.
>
> I do have a 32-bit libxml2 on my Windows PATH from the GnuWin32 package.
> But why is a build of llvm/clang requiring libxml2, whether a 32-bit or
> 64-bit version ?
>

I don't know why CMake finds but doesn't ignore it.
c-index-test uses libxml2 if available. libxml2 is not essential.

We could add extra checks if libxml2 would be really available.

> Could you try overriding CMake and reconfigure?
> >
> -DCMAKE_LIBRARY_PATH="C:/mingw-w64/x86_64-4.9.3-posix-seh-rt_v4-rev1/mingw64/x86_64-w64-mingw32/lib"
>
> Why would using gcc-4.9.3 make any difference ?
>

Excuse me. It was just an example. Please substitute with your mingw-w64's
path.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160614/c7e5f75c/attachment.html>


More information about the cfe-dev mailing list