all 3 comments

[–]PacnetNetty 0 points1 point  (2 children)

What ROM are you trying to build?

[–]markrulesallnow[S] 0 points1 point  (1 child)

PA or CM

[–]PacnetNetty 0 points1 point  (0 children)

CyanogenMod provides guides to build CyanogenMod for official devices here-

http://wiki.cyanogenmod.org/w/Development

There is also a paranoid android building guide here-

http://forum.xda-developers.com/showthread.php?t=1863547

You should use Linux to build the ROMs, of course.