~/libobjc2/build$ make
Scanning dependencies of target objc
[ 1%] Building C object CMakeFiles/objc.dir/abi_version.c.o
[ 2%] Building C object CMakeFiles/objc.dir/alias_table.c.o
[ 4%] Building C object CMakeFiles/objc.dir/block_to_imp.c.o
/home/abhi/libobjc2/block_to_imp.c:43:10: warning: implicit declaration of function 'asprintf' is invalid in C99
[-Wimplicit-function-declaration]
if (0 > asprintf(&tmpPattern, "%s/objc_trampolinesXXXXXXXXXXX", tmp))
^
1 warning generated.
[ 5%] Building C object CMakeFiles/objc.dir/caps.c.o
[ 7%] Building C object CMakeFiles/objc.dir/category_loader.c.o
[ 8%] Building C object CMakeFiles/objc.dir/class_table.c.o
[ 9%] Building C object CMakeFiles/objc.dir/dtable.c.o
[ 11%] Building C object CMakeFiles/objc.dir/eh_personality.c.o
[ 12%] Building C object CMakeFiles/objc.dir/encoding2.c.o
[ 14%] Building C object CMakeFiles/objc.dir/gc_none.c.o
[ 15%] Building C object CMakeFiles/objc.dir/hash_table.c.o
[ 16%] Building C object CMakeFiles/objc.dir/hooks.c.o
[ 18%] Building C object CMakeFiles/objc.dir/ivar.c.o
[ 19%] Building C object CMakeFiles/objc.dir/legacy_malloc.c.o
[ 21%] Building C object CMakeFiles/objc.dir/loader.c.o
[ 22%] Building CXX object CMakeFiles/objc.dir/mutation.m.o
[ 23%] Building C object CMakeFiles/objc.dir/protocol.c.o
[ 25%] Building C object CMakeFiles/objc.dir/runtime.c.o
[ 26%] Building C object CMakeFiles/objc.dir/sarray2.c.o
[ 28%] Building C object CMakeFiles/objc.dir/selector_table.c.o
[ 29%] Building C object CMakeFiles/objc.dir/sendmsg2.c.o
[ 30%] Building C object CMakeFiles/objc.dir/statics_loader.c.o
[ 32%] Building C object CMakeFiles/objc.dir/toydispatch.c.o
[ 33%] Building ASM object CMakeFiles/objc.dir/block_trampolines.S.o
[ 35%] Building ASM object CMakeFiles/objc.dir/objc_msgSend.S.o
[ 36%] Building C object CMakeFiles/objc.dir/NSBlocks.m.o
[ 38%] Building C object CMakeFiles/objc.dir/Protocol2.m.o
[ 39%] Building C object CMakeFiles/objc.dir/arc.m.o
[ 40%] Building C object CMakeFiles/objc.dir/associate.m.o
[ 42%] Building C object CMakeFiles/objc.dir/blocks_runtime.m.o
[ 43%] Building C object CMakeFiles/objc.dir/properties.m.o
Linking C shared library libobjc.so
[ 43%] Built target objc
Scanning dependencies of target objcxx
[ 45%] Building CXX object CMakeFiles/objcxx.dir/objcxx_eh.cc.o
Linking C shared library libobjcxx.so
[ 45%] Built target objcxx
Scanning dependencies of target libGNUObjCRuntime
[ 46%] Building CXX object opts/CMakeFiles/libGNUObjCRuntime.dir/ClassIMPCache.cpp.o
[ 47%] Building CXX object opts/CMakeFiles/libGNUObjCRuntime.dir/ClassMethodInliner.cpp.o
/home/abhi/libobjc2/opts/ClassMethodInliner.cpp:37:7: error: unknown type name 'InlineCostAnalyzer'; did you mean
'InlineCostAnalysis'?
InlineCostAnalyzer CA;
^~~~~~~~~~~~~~~~~~
InlineCostAnalysis
/home/abhi/llvm/include/llvm/Analysis/InlineCost.h:102:7: note: 'InlineCostAnalysis' declared here
class InlineCostAnalysis : public CallGraphSCCPass {
^
1 error generated.
make[2]: *** [opts/CMakeFiles/libGNUObjCRuntime.dir/ClassMethodInliner.cpp.o] Error 1
make[1]: *** [opts/CMakeFiles/libGNUObjCRuntime.dir/all] Error 2
make: *** [all] Error 2
~/libobjc2/build$