[Droid Incredible Q&A, Help & Troubleshooting] wildstang83:
Hey guys, so I never built AOSP before and so I thought I would give it a try. kernel.org is still down so I used the alternative method here: Alternative Android Repo

So I downloaded the repo script:

curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
chmod a+x ~/bin/repo
PATH=~/bin:$PATH

Then I downloaded the Android source:

mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
repo sync

Once I had the source downloaded I went and found jdkoreclipse's How To Built AOSP guide. Combined with the official Source Building guide on the Android Source website, I was able to come up with somewhat of an instruction path to continue.

I read JDK's guide and skipped ahead to where I was in the process. Which is to setup the Vendor overlay. I used CM's Inc tree and did these commands:

mkdir inc
cd inc
git clone http://github.com/koush/android_device_htc_inc.git inc

Ok so after get clone I notice that in WORKING_DIRECTORY/device/htc/inc it had created a new inc directory. So I drug the new inc directory out to my desktop and then dragged the contents of it into the old WORKING_DIRECTORY/device/htc/inc directory.

Once that was complete I connected my phone and then did:

cd ~/WORKING_DIRECTORY/device/htc/inc

And then did:

./extract-files.sh

It runs and outputs stuff in Terminal:

joshua@joshua-Aspire-5552:~/WORKING_DIRECTORY/device/htc/inc$ ./extract-files.sh382 KB/s (34280 bytes in 0.087s)
68 KB/s (5412 bytes in 0.077s)
119 KB/s (9492 bytes in 0.077s)
173 KB/s (13724 bytes in 0.077s)
69 KB/s (5488 bytes in 0.077s)
123 KB/s (9808 bytes in 0.077s)
38 KB/s (3073 bytes in 0.077s)
9 KB/s (718 bytes in 0.077s)
2 KB/s (199 bytes in 0.077s)
1885 KB/s (3008536 bytes in 1.557s)
remote object '/system/etc/agps_rm' does not exist
remote object '/system/etc/firmware/BCM4329B1_002.002.023.0436.0439.hcd' does not exist
1072 KB/s (173004 bytes in 0.157s)
1072 KB/s (173004 bytes in 0.157s)
remote object '/system/etc/firmware/Incredible_C_20100319_VZW_Neo_324016_v8_default.acdb' does not exist
979 KB/s (137833 bytes in 0.137s)
979 KB/s (137833 bytes in 0.137s)
978 KB/s (137833 bytes in 0.137s)
14 KB/s (1156 bytes in 0.076s)
116 KB/s (9220 bytes in 0.077s)
remote object '/system/etc/pvasflocal.cfg' does not exist
976 KB/s (79936 bytes in 0.079s)
1283 KB/s (163008 bytes in 0.124s)
1800 KB/s (1746672 bytes in 0.947s)
1137 KB/s (206768 bytes in 0.177s)
718 KB/s (86336 bytes in 0.117s)
610 KB/s (67168 bytes in 0.107s)
708 KB/s (85220 bytes in 0.117s)
remote object '/system/lib/libgps.so' does not exist
385 KB/s (34548 bytes in 0.087s)
117 KB/s (9328 bytes in 0.077s)
1587 KB/s (449872 bytes in 0.276s)
1756 KB/s (1398720 bytes in 0.777s)
remote object '/system/lib/libomx_wmadec_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_wmvdec_sharedlibrary.so' does not exist
remote object '/system/lib/libpvasfcommon.so' does not exist
remote object '/system/lib/libpvasflocalpb.so' does not exist
remote object '/system/lib/libpvasflocalpbreg.so' does not exist
remote object '/system/lib/libspeech.so' does not exist
0 KB/s (32 bytes in 0.077s)
3 KB/s (245 bytes in 0.077s)
28 KB/s (2265 bytes in 0.077s)
joshua@joshua-Aspire-5552:~/WORKING_DIRECTORY/device/htc/inc$

I notice a bunch of 'does not exist' but I keep going anyway.

Once that was done I went to build the source:

cd WORKING_DIRECTORY
. build/envsetup.sh

It outputs:

including device/htc/inc/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh

I do:

lunch full-eng

It outputs:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRJ90
============================================

I do:

make

And then it just errors out of control, lol:

joshua@joshua-Aspire-5552:~/WORKING_DIRECTORY$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRJ90
============================================
build/core/base_rules.mk:105: *** Module name: hostapd contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: hostapd_cli contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: nt_password_hash contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: hlr_auc_gw contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: Stk contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:146: user tag on app Stk at packages/apps/Stk - add your app to core.mk instead
build/core/base_rules.mk:105: *** Module name: ip contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libqsap_sdk contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libQWiFiSoftApCfg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: pvplayer contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_common contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_author contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_player contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_avcdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_m4vdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_aacdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/base_rules.mk:105: *** Module name: libomx_amrdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_mp3dec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_amrenc_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_net_support contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_downloadreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_download contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_rtspreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_rtsp contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_mp4localreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_mp4local contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libOmxCore contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libmm-omxcore contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: librefcne contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: cnd contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: QualcommSoftAP contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:146: user tag on app QualcommSoftAP at packages/apps/QualcommSoftAP - add your app to core.mk instead
host C: acp <= build/tools/acp/acp.c
In file included from /usr/include/features.h:388:0,
from /usr/include/stdlib.h:25,
from build/tools/acp/acp.c:11:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
joshua@joshua-Aspire-5552:~/WORKING_DIRECTORY$

I don't know whats going on but I know it can't be good, lol

I was hoping someone could give some pointers or incite on what I need to do or if I'm doing it wrong all together.

Thanks in advance.