[cfe-dev] Using clang static analyzer on linux with Objective C for arm-apple-darwin9-gcc

Eli Friedman eli.friedman at gmail.com
Fri May 29 03:16:57 PDT 2009


On Thu, May 28, 2009 at 11:17 PM, Jay Bone<jbonedev at gmail.com> wrote:
> When using a cross compiler compiled with --with-sysroot we need to use:
> scan-build --use-cc
> To point to the location of our cross compiler.
>
> We need to hack lib/Frontend/InitHeaderSearch.cpp to remove system default
> include paths and add paths to our alternate sys root used by the cross
> compiler using AddPath()

Hopefully, we're going to have better cross-compilation support and
better documentation for how to use it in the near future.

> We need to add -D__VFP_FP__ to our cc compiler args. (I call these CFLAGS in
> my Makefiles) This fixes the error:
> #errorĀ  This fenv header and set of APIs is intended for the ARM (with VFP)
> architecture only.

That sounds like it might be a bug in clang's ARM support.  Would you
mind attaching the output of "gcc -dM -E -o - -x c /dev/null" with
your version of gcc?

-Eli




More information about the cfe-dev mailing list