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

Eli Friedman eli.friedman at gmail.com
Thu May 28 13:18:15 PDT 2009


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




More information about the cfe-dev mailing list