[llvm-bugs] [Bug 42168] New: ccc-analyzer expects an argument for "--sysroot" option

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 6 09:35:20 PDT 2019


            Bug ID: 42168
           Summary: ccc-analyzer expects an argument for "--sysroot"
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: analyze
          Assignee: unassignedbugs at nondot.org
          Reporter: fernando.lopes at furukawaelectric.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 22077
  --> https://bugs.llvm.org/attachment.cgi?id=22077&action=edit
fix --sysroot option parsing on ccc-analyzer

The ccc-analyzer is treating the option "--sysroot" as if it should have an
argument, but it should not. In fact, it has an argument that is provided after

I could not run the ccc-analyzer on my project because my configure script
would create a Makefile with  "--sysroot=/path/to/sysroot" followed by "-MT".
So clang would be called with the options "--sysroot=/path/to/sysroot -MT" and

The patch attached solved this problem for me.

>From "man gcc":
 Use dir as the logical root directory for headers and libraries.  For example,
if the compiler normally searches for headers in /usr/include and libraries in
/usr/lib, it instead searches dir/usr/include and dir/usr/lib.

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/20190606/4528f802/attachment.html>

More information about the llvm-bugs mailing list