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

Jay Bone jbonedev at gmail.com
Thu May 28 13:36:19 PDT 2009


On Thu, May 28, 2009 at 1:18 PM, Eli Friedman <eli.friedman at gmail.com>wrote:

> On Thu, May 28, 2009 at 12:21 PM, Jay Bone<jbonedev at gmail.com> wrote:
> > After doing that I get output like this below.
> >
> > /home/foo/Projects/iphone/clang/llvm/tools/clang/utils/ccc-analyzer -c
> > --sysroot=/home/foo/Projects/iphone/toolchain/toolchain/sys
> > -I/home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include
> > src/BrowseUITableViewController.m -o BrowseUITableViewController.o
> > In file included from src/BrowseUITableViewController.m:1:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/UIKit/UIKit.h:10:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/UIKit/UIActivityIndicatorView.h:8:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/UIKit/UIView.h:10:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/UIKit/UIInterface.h:10:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/UIKit/UIColor.h:9:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/CoreGraphics/CoreGraphics.h:25:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/CoreGraphics/CGEvent.h:17:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/CoreServices/CoreServices.h:21:
> > In file included from
> > /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/AE/AE.h:20:
> > In file included from
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/CarbonCore/CarbonCore.h:160:
> >
> /home/foo/Projects/iphone/toolchain/toolchain/sys/usr/include/fenv.h:41:6:
> > error: #error  This fenv header and set of APIs is intended for the ARM
> > (with VFP) architecture only.
> >     #error  This fenv header and set of APIs is intended for the ARM
> (with
> > VFP) architecture only.
> >      ^
>
> Probably clang is using the wrong target triple; try setting CLANG to
> "clang -ccc-host-triple arm-apple-darwin"
>
> -Eli
>


Adding this to my Makefile
CLANG='clang -ccc-host-triple arm-apple-darwin'
(Tried with and without single quotes if that matters)

I get

cannot find 'clang-cc' in 'clang' command
make: *** [GridRow.o] Error 9

-J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090528/55a367c1/attachment.html>


More information about the cfe-dev mailing list