[Galaxy S III Android Development] brianelv:
I can't compile the rom! The Terminal says:

/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:108:20: error: unistd.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:109:19: error: fcntl.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:110:20: error: string.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:111:20: error: stdlib.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:112:19: error: stdio.h: No such file or directory
In file included from /Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:113:
/Volumes/cm12/android/system/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:114:19: error: ctype.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:115:23: error: arpa/inet.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:116:20: error: alloca.h: No such file or directory
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘usage’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:132: warning: implicit declaration of function ‘fprintf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:132: warning: incompatible implicit declaration of built-in function ‘fprintf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:132: error: ‘stderr’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:132: error: (Each undeclared identifier is reported only once
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:132: error: for each function it appears in.)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:133: warning: implicit declaration of function ‘exit’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:133: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘print_cmdline’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:141: warning: implicit declaration of function ‘printf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:141: warning: incompatible implicit declaration of built-in function ‘printf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: At top level:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:144: error: ‘NULL’ undeclared here (not in a function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘grow_config’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:157: warning: implicit declaration of function ‘realloc’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:157: warning: assignment makes pointer from integer without a cast
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:159: warning: implicit declaration of function ‘perror’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:159: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘is_defined_config’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:175: warning: implicit declaration of function ‘memcmp’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘define_config’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:188: warning: implicit declaration of function ‘memcpy’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:188: warning: incompatible implicit declaration of built-in function ‘memcpy’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘use_config’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:207: warning: implicit declaration of function ‘alloca’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:207: warning: incompatible implicit declaration of built-in function ‘alloca’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:215: warning: incompatible implicit declaration of built-in function ‘memcpy’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:221: warning: implicit declaration of function ‘tolower’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:223: warning: incompatible implicit declaration of built-in function ‘printf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: At top level:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:226: error: expected declaration specifiers or ‘...’ before ‘size_t’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘parse_config_file’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:229: error: ‘len’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:237: warning: implicit declaration of function ‘isalnum’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘strrcmp’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:274: warning: implicit declaration of function ‘strlen’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:274: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘do_config_file’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:285: error: storage size of ‘st’ isn’t known
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:289: warning: implicit declaration of function ‘open’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:289: error: ‘O_RDONLY’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:291: warning: incompatible implicit declaration of built-in function ‘fprintf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:291: error: ‘stderr’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:293: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:295: warning: implicit declaration of function ‘fstat’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:297: warning: implicit declaration of function ‘close’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:300: warning: implicit declaration of function ‘mmap’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:300: error: ‘PROT_READ’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:300: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:300: warning: assignment makes pointer from integer without a cast
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:307: error: too many arguments to function ‘parse_config_file’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:309: warning: implicit declaration of function ‘munmap’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:285: warning: unused variable ‘st’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: At top level:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:314: error: expected declaration specifiers or ‘...’ before ‘size_t’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘parse_dep_file’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:317: error: ‘len’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:319: warning: incompatible implicit declaration of built-in function ‘alloca’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:321: warning: implicit declaration of function ‘memchr’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:321: warning: assignment makes pointer from integer without a cast
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:323: warning: incompatible implicit declaration of built-in function ‘fprintf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:323: error: ‘stderr’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:324: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:326: warning: incompatible implicit declaration of built-in function ‘memcpy’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:327: warning: incompatible implicit declaration of built-in function ‘printf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c: In function ‘print_deps’:
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:356: error: storage size of ‘st’ isn’t known
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:360: error: ‘O_RDONLY’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:362: warning: incompatible implicit declaration of built-in function ‘fprintf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:362: error: ‘stderr’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:364: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:368: warning: incompatible implicit declaration of built-in function ‘fprintf’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:372: error: ‘PROT_READ’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:372: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:372: warning: assignment makes pointer from integer without a cast
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:379: error: too many arguments to function ‘parse_dep_file’
/Volumes/cm12/android/system/external/busybox/scripts/basic/fixdep.c:356: warning: unused variable ‘st’
make[4]: *** [scripts/basic/fixdep] Error 1
make[3]: *** [scripts_basic] Error 2
make[2]: *** [include/autoconf.h] Error 2
make[1]: *** [prepare] Error 2
make: *** [/Volumes/cm12/android/system/out/target/product/i9300/obj/busybox/minimal/.config] Error 2
make: *** Deleting file `/Volumes/cm12/android/system/out/target/product/i9300/obj/busybox/minimal/.config'
make: *** Waiting for unfinished jobs....
host C: libpng_32 <= external/libpng/pngtrans.c

#### make failed to build some targets (03:59 (mm:ss)) ####

Brian-Mac:system brianvalente$

I'm using OS X 10.10.2 and I followed the CM instructions and yours.