[LLVMbugs] [Bug 22656] New: find_package in cmake doesn't work correctly with multilib

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 21 07:47:20 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22656

            Bug ID: 22656
           Summary: find_package in cmake doesn't work correctly with
                    multilib
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

GCC on my machine supports i386, x86-64 and x32.  But I only x86-64
version of libxml2 installed. When building for i386 clang with
"gcc -m32", find_package in cmake thinks I have i386 libxml2:

- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1") 

and build fails.  autoconf works fine:

checking for xml2-config... xml2-config
checking for libxml2 includes... -I/usr/include/libxml2
checking for xmlReadFile in -lxml2... no

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150221/496d4e6e/attachment.html>


More information about the llvm-bugs mailing list