[LLVMbugs] [Bug 19525] New: libxml2 cache entries pass test when invalid

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 23 06:30:46 PDT 2014


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

            Bug ID: 19525
           Summary: libxml2 cache entries pass test when invalid
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: emanuelecestari at yahoo.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When building with all the 5 repos + lldb I noticed that if I set the cache
entries 

[ code ]
LIBXML2_INCLUDE_DIR:PATH="/opt/lib64/libxml2/2.9.1/include/libxml2"
LIBXML2_LIBRARIES:PATH="/opt/lib64/libxml2/2.9.1/lib"
LIBXML2_XMLLINT_EXECUTABLE:FILEPATH="/opt/lib64/libxml2/2.9.1/bin/xmllint"
[ /code ]

the cmake test for libxml2 is ok but the target c-index-test it's being dropped
even if cmake itself says that the target can only link to a "real" library

[ code ]
WARNING: Target "c-index-test" requests linking to directory
"/opt/lib64/libxml2/2.9.1/lib".  Targets may link only to libraries.  CMake is
dropping the item.

[ /code ]

So there is clearly something wrong with the test for libxml2 and it's probably
something inside the lldb repository since this project requires libxml2
explicitly. Of course with

[ code ]
LIBXML2_INCLUDE_DIR:PATH="/opt/lib64/libxml2/2.9.1/include/libxml2"
LIBXML2_LIBRARIES:PATH="/opt/lib64/libxml2/2.9.1/lib/libxml2.so"
LIBXML2_XMLLINT_EXECUTABLE:FILEPATH="/opt/lib64/libxml2/2.9.1/bin/xmllint"

[ /code ]

Everything is ok and cmake says "the test is passed and c-index-test is being
kept" but this is to prove that the "cmake test" for this library serves no
purpose at all.

-----

this is about the r206684 from the svn trunk, I also posted my configuration
and softwares used in a dedicated discussion on llvm-dev here
http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-April/072312.html

-- 
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/20140423/623e6365/attachment.html>


More information about the llvm-bugs mailing list