yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] Gandalf:
hey man,

what would the local_manifest.xml look like for the AT&T Galaxy S3 (d2att) ?
[Nexus 4 Android Development] inffy:
[GUIDE] Building CM10.1 for Nexus 4 with Mac OS X Mountain Lion (aka OS X 10.8)

No idea
[Nexus 4 Android Development] Imoseyon:
This is what mine looks like for d2vzw. I'd imagine you just replace the vzw with att:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_d2vzw" path="device/samsung/d2vzw" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_msm8960-common" path="device/samsung/msm8960-common" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_d2-common" path="device/samsung/d2-common" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-10.1" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung/" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_kernel_samsung_d2" path="kernel/samsung/d2" remote="github" />
</manifest>
[Nexus 4 Android Development] tulongest:
Re: [GUIDE] Building CM10.1 for Nexus 4 with Mac OS X Mountain Lion (aka OS X 10.8)

How big is the sparseimage you guys made? I tried with 5gb and it filled up without finishing. My Mac partition only got 10gb of free space.
[Nexus 4 Android Development] inffy:
[GUIDE] Building CM10.1 for Nexus 4 with Mac OS X Mountain Lion (aka OS X 10.8)

5gigs isä way too small.

The source hogs at least 15gb (about) and building takes at least the same. So I made a 70gb image so it wouldn't fill up
[Nexus 4 Android Development] EvoXOhio:
Awesome guide! Any chance you can tell us how to build it with the Linaro toolchain and Bionic stuff everyone says makes android faster?

---------- Post added at 01:27 PM ---------- Previous post was at 12:34 PM ----------

FYI this command is failing:

/usr/bin/ruby -e "$(/usr/bin/curl –fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

Looks like the URL is no good any more.

EDIT: This is the new command for downloading homebrew:

ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
[Nexus 4 Android Development] kirdroid:
Im getting the below error trying to install homebrew

/usr/bin/ruby -e "$(/usr/bin/curl –fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

curl: (6) Could not resolve host: –fsSL; nodename nor servname provided, or not known

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 223k 100 223k 0 0 110k 0 0:00:02 0:00:02 --:--:-- 140k

-e:1: syntax error, unexpected '<'

<!DOCTYPE html>

^

-e:2: syntax error, unexpected '<'

-e:4: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '('

Hello future GitHubber! I bet you're here ...

^

-e:5: syntax error, unexpected tIDENTIFIER, expecting $end

DRY up these templates and make 'em nice and re-usable, right?
[Nexus 4 Android Development] EvoXOhio:
lol, read the comment right before yours. I had the same problem and gave the new command to install homebrew.

I got past that, but then I had a problem doing a brew install of the pngcrush part. I dicked around with it awhile before I got it installed, and honestly don't really know what I did. I think I downloaded the tar.gz manually, did a make on it, and then copied the file manually to the brew Cellar folder, and then did a brew doctor and followed the instructions to link it right.
[Nexus 4 Android Development] kirdroid:
LOL ... thanks man. Didn't look at that :)
[Nexus 4 Android Development] EvoXOhio:
my mac mini is maybe 2-3 years old and it's been building for 3.5 hours and still going. For anyone who has done this, how long did it take to build?

---------- Post added at 08:37 PM ---------- Previous post was at 08:35 PM ----------

What does this mean? And what are the ramifications to doing it that way?
[Nexus 4 Android Development] grad061980:
Thanks for the tutorial.
[Nexus 4 Android Development] shrubz:
Re: [GUIDE] Building CM10.1 for Nexus 4 with Mac OS X Mountain Lion (aka OS X 10.8)

Does anyone know how I would built Xylon ROM from source. I have found their Git but only downloads about 250MB. What am I missing?
[Nexus 4 Android Development] ASimmons:
Cclobber removes all the build cache... Essentially it's build from scratch. I have the latest Mac mini with 16 gigs of memory and my First build was about 50 minutes... After this builds are about 10 20 minutes for make all. After a cclober it's back up to around 40 to 50 minutes. It is nice to see the CPU hit a solid 100 percent use finally as nothing else I have dove seems to.

Are you sure you syncing and not build... Cause this will take a while.
[Nexus 4 Android Development] jeroenqui:
If you get a similar error like this when building, here is the solution:

zcat: /Volumes/android/cm10.1/out/target/product/mako/ramdisk.img.Z: No such file or directory

Then it's because zcat is old and broken. Do this to fix it and use the newer version: gzcat

sudo mv /usr/bin/zcat /usr/bin/broken-zcat

sudo ln -s /usr/bin/gzcat /usr/bin/zcat

Spent an hour finding this solution, so I thought I might aswell share it with the community.
[Nexus 4 Android Development] inffy:
Sry been away from android and wondering elsewhere, now I'm back :)

Updated the OP and the 2nd post to reflect these. Thanks
[Nexus 4 Android Development] grad061980:
Thank you so much for this guide. I followed the OP to the letter, just changing the local manifest to reflect my supported carrier and phone (S3 d2usc - US Cellular), and it synced/built without issue on my fresh install of mountain lion. :D
[Nexus 4 Android Development] niiico69:
Hi,

I'm trying to compile CM10.1 for mako and I followed all the steps in first post, but I get an error you can find here : http://pastebin.com/1009pvP3

Any help?
[Nexus 4 Android Development] inffy:
[GUIDE] Building CM10.1 for Nexus 4 with Mac OS X Mountain Lion (aka OS X 10.8)

Yes read the first post again. You have missed a step
[Nexus 4 Android Development] niiico69:
I've done it two times... Will try a third

Edit: got it! Forgot to source .bash_profile...
[Nexus 4 Android Development] <remote>:
Try this ...... if you haven't already installed 10.6 sdk

NOTE: If you have an error regarding "Xcode" and the "10.6 SDK" when trying to build, download the MacOSX10.6.sdk.zip, decompress it, and place it in "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/".
[Nexus 4 Android Development] inffy:
[GUIDE] Building CM10.1 for Nexus 4 with Mac OS X Mountain Lion (aka OS X 10.8)

Not needed
[Nexus 4 Android Development] fairyshacker:
Hi,

i just need the usb drivers for mac osx (10.8.3)., can anybody source me please.

thanks.
[Nexus 4 Android Development] inffy:
Re: [GUIDE] Building CM10.1 for Nexus 4 with Mac OS X Mountain Lion (aka OS X 10.8)

There is no such thing...where would you read that
[Nexus 4 Android Development] eep2378:
That's one thing Apple does right with their computers. NO NEED for drivers of any kind.
[Nexus 4 Android Development] SchmilK:
I successfully built a working rom a few days ago. Now I'd like to just update what I have and build off a new nightly. Problem is when I run repo sync I get this

warning: local_manifest.xml is deprecated; put local manifests in `/Volumes/Android/cm10.1/.repo/local_manifests` instead
error: cannot open /Volumes/Android/cm10.1/.repo/manifests.git/FETCH_HEAD: Read-only file system

error: cannot open /Volumes/Android/cm10.1/.repo/manifests.git/FETCH_HEAD: Read-only file system

error: cannot open /Volumes/Android/cm10.1/.repo/repo/.git/FETCH_HEAD: Read-only file system

error: cannot open /Volumes/Android/cm10.1/.repo/projects/kernel/lge/mako.git/FETCH_HEAD: Read-only file system

error: cannot open /Volumes/Android/cm10.1/.repo/projects/prebuilt.git/FETCH_HEAD: Read-only file system

Exception in thread Thread-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/Volumes/Android/cm10.1/.repo/repo/subcmds/sync.py", line 242, in _FetchHelper
no_tags=opt.no_tags)
File "/Volumes/Android/cm10.1/.repo/repo/project.py", line 997, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/Volumes/Android/cm10.1/.repo/repo/project.py", line 1740, in _ApplyCloneBundle
os.remove(bundle_dst)
OSError: [Errno 30] Read-only file system: '/Volumes/Android/cm10.1/.repo/repo/.git/clone.bundle'

error: cannot open /Volumes/Android/cm10.1/.repo/projects/vendor/cm.git/FETCH_HEAD: Read-only file system

error: cannot open /Volumes/Android/cm10.1/.repo/projects/kernel/lge/mako.git/FETCH_HEAD: Read-only file system

error: cannot open /Volumes/Android/cm10.1/.repo/projects/vendor/cm.git/FETCH_HEAD: Read-only file system

error: cannot open /Volumes/Android/cm10.1/.repo/projects/prebuilt.git/FETCH_HEAD: Read-only file system

error: Cannot fetch CyanogenMod/android_vendor_cm
error: Cannot fetch CyanogenMod/lge-kernel-mako
error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors

I've tried manually chmod those files, but it doesn't seem to fix it. Do I just have to delete everything and start over?

*edit* deleted and started over. no biggy.
[Nexus 4 Android Development] andikicker:
I have the same Problem but no Solution in my .Bash _Profile is the right content or no?
[Nexus 4 Android Development] Planet X:
Thank you for this brilliant guide. Could you may be let us know how to add a cherry pick to this guide? Do I have to add the cherry pick to the manifest file?

I really would like to add the navigation height to the rom. Please help.
[Nexus 4 Android Development] bhundven:
I'm not sure what you mean by cherry picking the manifest file. Use a local_manifest.xml instead! ;)

EDIT: Read the very bottom of this page for "

Local Manifest

".
[Nexus 4 Android Development] bhundven:
On a different note, I'm running into this problem when using gcc-4.7 from homebrew:

host C++: clang-tblgen <= external/clang/utils/TableGen/ClangASTNodesEmitter.cpp
In file included from external/llvm/include/llvm/ADT/StringRef.h:18:0,
from external/llvm/include/llvm/ADT/FoldingSet.h:21,
from external/llvm/include/llvm/TableGen/Record.h:19,
from external/clang/utils/TableGen/ClangASTNodesEmitter.cpp:14:
/usr/local/Cellar/gcc47/4.7.3/gcc/lib/gcc/x86_64-apple-darwin12.4.0/4.7.3/../../../../include/c++/4.7.3/limits:1405:35: error: template argument 1 is invalid
/usr/local/Cellar/gcc47/4.7.3/gcc/lib/gcc/x86_64-apple-darwin12.4.0/4.7.3/../../../../include/c++/4.7.3/limits:1479:44: error: template argument 1 is invalid
make: *** [/Volumes/cm-10.1/work/cm-10.1/out/host/darwin-x86/obj/EXECUTABLES/clang-tblgen_intermediates/ClangASTNodesEmitter.o] Error 1

Anyone else ran into this?

EDIT: looking further into the issue, it seems that homebrew doesn't support the __int128 type?

I've tried with 4.6, and now 4.8.

SOLVED: The OP should be updated wrt gcc47 or 48 (which ever you use).

You need to add multilib to your homebrew gcc flags. I built with the following:

brew install --enable-cxx --enable-objc --enable-objcxx --enable-fortran --enable-nls --enable-multilib gcc47

You probably don't need all the other language support, but at least --enable-cxx and --enable-multilib.

I figured this out by finding this stackoverflow answer.
[Nexus 4 Android Development] bhundven:
I ended up having more problems after fixing the multilib problem.

I kept searching, and found more info on the command line tools for xcode and uninstalled all of home brew, and only installed what is in the OP.

I'm now able to get a complete build. So if things are going wrong with your build, you're doing it wrong :D :eek: :D
[Nexus 4 Android Development] inffy:
Guide updated for CM10.2

REMEMBER, that CM10.2 is still a work in progress, so features are propably missing or not working.

JUST DEAL WITH IT ;)
[Nexus 4 Android Development] xWolf13:
Is this normal? When syncing any repo I always get this error.

curl: (22) The requested URL returned error: 404

Server does not provide clone.bundle; ignoring.
[Nexus 4 Android Development] inffy:
Not normal. The problem is on Your environment
[Nexus 4 Android Development] shubhamchamaria:
Its fine ...happened with me but source seems to sync fine
[Nexus 4 Android Development] inffy:
Well if the Repo won't sync then everything is not fine.

I think the environment is corrupted
[Nexus 4 Android Development] xWolf13:
I have no clue on how to fix it.. I've uninstalled Homebrew and did a clean installation. Did all those steps, yet it keeps giving me the error. It does sync fine but I am unable to build..
[Nexus 4 Android Development] shubhamchamaria:
It shows that but after that continues to sync...Alteast thats what happened for me
[Nexus 4 Android Development] daewond3r:
I've always wanted to try this. Anyone know if it will work on 10.7.5?
[Nexus 4 Android Development] inffy:
Can't see a reason why not
[Nexus 4 Android Development] xWolf13:
where you able to build afterwards?
[Nexus 4 Android Development] shubhamchamaria:
Yes....successfully!
[Nexus 4 Android Development] inffy:
Anyone know if there is a way to use linaro tool chain on OSX
[Nexus 4 Android Development] bhundven:
From what I understand, Linaro's official stance is: no

But, you can build a toolchain on Mac OS X with crosstool-ng with linaro binutils, gcc, and gdb. But that is not going to cover the android platform toolchain (the cross-compiler that uses bionic instead of glibc), just the arm-eabi- cross-compiler that builds the kernel.

I think it would be an interesting project to fork the Linaro fork of the AOSP toolchain builder to build and work on Mac OS X.
[Nexus 4 Android Development] inffy:
Well as you guessed... OsX 10.9 (Mavericks) is not supported.
[Nexus 4 Android Development] fekle:
Thanks again :)

So my thought was right, OSX 10.9 is the problem... so I'll compile CM on my Debian server :) should be easier after all.
[Nexus 4 Android Development] smoki3:
How can i add Halo to stock cm 10.2? I am able to build stock cm 10.2.

Gesendet von meinem Nexus 4 mit Tapatalk 4
[Nexus 4 Android Development] :
Note: The tutorial does only apply to you if you use a bash-compatible shell!
[Nexus 4 Android Development] inffy:
Well yeah. OsX has bash compatible shell so this guide is based on a stock OsX base.
[Nexus 4 Android Development] 0.0:
noob at building. how would I build again the next day or following week? do I just type in "repo sync" in terminal after doing a "cd" to the volume, then follow the part of the guide that states on building the rom?
[Nexus 4 Android Development] inffy:
Yes.

Just do repo Sync and after that just build again
[Nexus 4 Android Development] 0.0:
if I wanted to sync up with another user's github, how would I do that? there is a user that makes kang cm10.2 ROMs for his device, and I would like to use his github to make it work for this device
[Nexus 4 Android Development] inffy:
Well then just do thr repo init command för his github.
[Nexus 4 Android Development] 0.0:
by doing that, it will combine the two and it should be fine?
[Nexus 4 Android Development] inffy:
No
[Nexus 4 Android Development] Planet X:
Thanks for your guide update. Is it possible to build odexed?
[Nexus 4 Android Development] 0.0:
I sent a PM to you [MENTION=251020]inffy[/MENTION], so it won't clutter this thread :)

Sent from my Nexus 4
[Nexus 4 Android Development] 0.0:
I get this error:

How do I fix this? I am trying to write the <manifest> to the xml file
[Nexus 4 Android Development] inffy:
That is only part of the error
[Nexus 4 Android Development] 0.0:
how would I get the full error?

sorry, I am such a noob at this :(

edit: I am working from the homebrew step. reinstalling it

edit 2: still not working. idk why I cant write and create an xml file

edit 3: i had to create the directory first, then I could create the file. strange...

edit 4: here's the errors I am getting now
[Nexus 4 Android Development] inffy:
And what version of OSX you have?
[Nexus 4 Android Development] 0.0:
I have 10.8.4

edit: i figured out how to merge another repo with the cm source. it may be because of it having linaro, since the other repo has added that in? could that be it?
[Nexus 4 Android Development] inffy:
Definitely. Linaro won't work with it. And if you just merge 2 github repos it definitely won't work
[Nexus 4 Android Development] Planet X:
Hi Inffy, did you see my post?

I managed already how to build odexed. In main.mk I set WITH_DEXPREOPT:true for userdebug builds. But I have an error that there is no dexo something in ...t/bin directory. Why that file isn't there? Do we need something extra in homebrew installed for example? I hope you have an idea.

Edit: I have one more question. I see you only have the Muppets in your roomservice.xml. Usually I have also the kernel in there. And as I build for different devices is it neccessary to have the kernel in there or not?
[Nexus 4 Android Development] inffy:
Only the Muppets stuff for Evert devicr you build needs to BE there. The CM build process will fetch the needed device and kernel stuff from github automatically
[Nexus 4 Android Development] Hooolm:
Neat guide - good job [MENTION=251020]inffy[/MENTION] :)

I ran through this process (for the m7ul = HTC One) and wound up with a "package completed" and a flashable zip.

Problem is, when I flash it and reboot the phone, it just hangs on a black screen after the HTC logo...what might I be doing wrong?

(Honestly I just needed a new aapt that understands the concept of xxhdpi folders in my Theme Chooser themes , but now I'm just stubborn :))
[Nexus 4 Android Development] inffy:
Hey there!

Only Thing that comes to mind is that you forgot to get the prebuilts. Or you flashed incompatible kernel ;)

I also have this guide on the htc one forum :)
[Nexus 4 Android Development] Hooolm:
I'll take my stupidity over there then :)

Follow-Up-To: http://xdaforums.com/showthread.php?p=44819701#post44819701
[Nexus 4 Android Development] packhex:
Excel lent Guide!

My error it's

idea?

including device/generic/armv7-a-neon/vendorsetup.sh

including device/generic/goldfish/vendorsetup.sh

including device/generic/mips/vendorsetup.sh

including device/generic/x86/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including vendor/cm/vendorsetup.sh

ls: device/*/mako/cm.mk: No such file or directory

build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_mako". Stop.

thanks
[Nexus 4 Android Development] shubhamchamaria:
You don't seem to have the device tree...

Try lunch mako
[Nexus 4 Android Development] packhex:
Reply

You're building on Darwin

(ohai, koush!)

Breakfast menu... pick a combo:

1. full-eng	21. cm_i605-userdebug	41. cm_m7tmo-userdebug	61. cm_r950-userdebug

2. cm_acclaim-userdebug	22. cm_i777-userdebug	42. cm_m7ul-userdebug	62. cm_spyder-userdebug

3. cm_apexqtmo-userdebug	23. cm_i925-userdebug	43. cm_maguro-userdebug	63. cm_t0lte-userdebug

4. cm_captivatemtd-userdebug	24. cm_i9100-userdebug	44. cm_mako-userdebug	64. cm_t0lteatt-userdebug

5. cm_crespo-userdebug	25. cm_i9100g-userdebug	45. cm_manta-userdebug	65. cm_t0ltetmo-userdebug

6. cm_d2att-userdebug	26. cm_i9300-userdebug	46. cm_maserati-userdebug	66. cm_targa-userdebug

7. cm_d2cri-userdebug	27. cm_i9305-userdebug	47. cm_n7000-userdebug	67. cm_tf300t-userdebug

8. cm_d2mtr-userdebug	28. cm_jflteatt-userdebug	48. cm_odin-userdebug	68. cm_tf700t-userdebug

9. cm_d2spr-userdebug	29. cm_jfltecan-userdebug	49. cm_odroidu2-userdebug	69. cm_toro-userdebug

10. cm_d2tmo-userdebug	30. cm_jfltecri-userdebug	50. cm_otter-userdebug	70. cm_umts_spyder-userdebug

11. cm_d2usc-userdebug	31. cm_jfltecsp-userdebug	51. cm_otter2-userdebug	71. cm_ville-userdebug

12. cm_d2vzw-userdebug	32. cm_jfltespr-userdebug	52. cm_ovation-userdebug	72. cm_mb886-userdebug

13. cm_e975-userdebug	33. cm_jfltetmo-userdebug	53. cm_p3100-userdebug	73. cm_xt897-userdebug

14. cm_endeavoru-userdebug	34. cm_jflteusc-userdebug	54. cm_p3110-userdebug	74. cm_xt897c-userdebug

15. cm_evita-userdebug	35. cm_jfltevzw-userdebug	55. cm_p5100-userdebug	75. cm_xt907-userdebug

16. cm_flo-userdebug	36. cm_jfltexx-userdebug	56. cm_p5110-userdebug	76. cm_xt925-userdebug

17. cm_galaxysbmtd-userdebug	37. cm_jewel-userdebug	57. cm_p760-userdebug	77. cm_xt926-userdebug

18. cm_galaxysmtd-userdebug	38. cm_l900-userdebug	58. cm_p880-userdebug	78. cm_yuga-userdebug

19. cm_grouper-userdebug	39. cm_m7att-userdebug	59. cm_pollux-userdebug

20. cm_hummingbird-userdebug	40. cm_m7spr-userdebug	60. cm_pollux_windy-userdebug

... and don't forget the bacon!

Which would you like? [aosp_arm-eng] 44

ls: device/*/mako/cm.mk: No such file or directory

build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_mako". Stop.
[Nexus 4 Android Development] 0.0:
I'm receiving this error:

any fix? thanks
[Nexus 4 Android Development] packhex:
My problem this one in the roomservice. I should have eliminated the folder local_manifests/roomservice.xml. And to create the file local_manifest.xml in .repo/local_manifest.xml.

Modifying it with this content

<manifest>

<project name="TheMuppets/proprietary_vendor_lge.git" path="vendor/lge" remote="github" revision="cm-10.2"/>

<project name="CyanogenMod/android_device_lge_mako" path="device/lge/mako" remote="github" revision="cm-10.2"/>

<project name="CyanogenMod/lge-kernel-mako" path="kernel/lge/mako" remote="github" revision="jellybean"/>

</manifest>
[Nexus 4 Android Development] inffy:
That is the ole way IT was done before.
[Nexus 4 Android Development] packhex:
The current form does not unload the tree of the device. I do not deal because to you if. The process this one in march. With some mistakes that I do not see with clarity

Thanks

external/webkit/Source/WebCore/dom/Element.cpp: In member function 'virtual void WebCore::Element::recalcStyle(WebCore::Node::StyleChange)':

external/webkit/Source/WebCore/dom/Element.cpp:1076:112: warning: converting 'false' to pointer type 'WebCore::RenderStyle*' [-Wconversion-null]

After 2 hours.. It threw this error

target thumb C: vim <= external/vim/src/term.c

target thumb C: vim <= external/vim/src/ui.c

target thumb C: vim <= external/vim/src/undo.c

target thumb C: vim <= external/vim/src/version.c

target thumb C: vim <= external/vim/src/window.c

make: *** No rule to make target `vendor/lge/mako/proprietary/bin/ATFWD-daemon', needed by `/Volumes/Android/CM10.2/out/target/product/mako/system/bin/ATFWD-daemon'. Stop.

make: *** Waiting for unfinished jobs....

:(

Nexus 4 Tapatalk
[Nexus 4 Android Development] inffy:
IF you follow the guide to tje letter it will work.

Roomservice.xml will only need the Muppets repo in it.

Everything else will be handled by the build process. You can also try breakfast mako command which will load the other needed trees
[Nexus 4 Android Development] mm46:
I have just completed the build of CM10.2 in OSX10.9 Mavericks :D I was getting similar errors as [MENTION=4380061]fekle[/MENTION], but after I added MacOSX10.6.sdk from this thread to "/Applications/Xcode5-DP3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs" it finished successfully and it seems that everything works as it should (on osx10.8 builds of cm10.1 sometimes radios did not work) :)

Ubuntu on VM was driving me crazy so I am really happy I can build in OSX again :)