[Nook HD, HD+ Android Development] Zippy Dufus:
Another fence to climb ...

I tried doing a make clean with not luck.

Next I put a trace and debugging on the make command and I could not see any linker paths to the firmware. So I copied the firmware to a directory in the linker path and workaround the problem.

mkdir -p /home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/

Putting child 0x55d6e618fd70 (/home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit) PID 6048 on the chain.

Live child 0x55d6e618fd70 (/home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit) PID 6048

Reaping winning child 0x55d6e618fd70 PID 6048

echo "target Executable: pvrsrvinit (/home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit)"

Live child 0x55d6e618fd70 (/home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit) PID 6049

target Executable: pvrsrvinit (/home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit)

Reaping winning child 0x55d6e618fd70 PID 6049

prebuilts/misc/linux-x86/ccache/ccache prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-g++ -pie -nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -L/home/android/out/target/product/ovation/obj/lib -Wl,-rpath-link=/home/android/out/target/product/ovation/obj/lib /home/android/out/target/product/ovation/obj/lib/crtbegin_dynamic.o /home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/pvrsrvinit.o -Wl,--whole-archive -Wl,--no-whole-archive /home/android/out/target/product/ovation/obj/STATIC_LIBRARIES/libunwind_llvm_intermediates/libunwind_llvm.a /home/android/out/target/product/ovation/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9.x-google/../../../../arm-linux-androideabi/lib/libatomic.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9.x-google/libgcc.a -lc++ -ldl -lc -lm -o /home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu -Wl,--no-fix-cortex-a8 -L /home/android/out/target/product/ovation/system/vendor/lib -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined /home/android/out/target/product/ovation/obj/lib/crtend_android.o -lsrv_init_SGX544_112 -lsrv_um_SGX544_112

Live child 0x55d6e618fd70 (/home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit) PID 6050

/home/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9.x-google/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_init_SGX544_112

/home/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9.x-google/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_um_SGX544_112

hardware/ti/omap4/pvrsrvinit/pvrsrvinit.c:8: error: undefined reference to 'SrvInit'

collect2: error: ld returned 1 exit status

Reaping losing child 0x55d6e618fd70 PID 6050

build/core/executable_internal.mk:79: recipe for target '/home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit' failed

make: *** [/home/android/out/target/product/ovation/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit] Error 1

Removing child 0x55d6e618fd70 PID 6050 from chain.
​

repo sync -j1

repo_status=$?

if [ $repo_status -ne 0 ]; then

echo "repo sync failed[$repo_status]"

exit 1

fi

source build/envsetup.sh

lunch aosp_ovation-userdebug

# make clean

mkdir -p /home/android/out/target/product/ovation/system/vendor/lib

cp /home/android/vendor/ti/omap4/proprietary/vendor/lib/*.so /home/android/out/target/product/ovation/system/vendor/lib

make --trace -d otapackage
​

Alas, I hit the next issue that I am now investigating. I'm starting to wonder about the sanity of my build environment. I didn't have the trace/debugging on for this run. BTW, what version of JAVA is required for this ROM? I'm using

Made recovery image: /home/android/out/target/product/ovation/recovery.img

Symlink: /home/android/out/target/product/ovation/system/etc/firmware/ti-connectivity/wl1271-nvs.bin -> /rom/devconf/wl1271-nvs.bin

Building with Jack: /home/android/out/target/common/obj/APPS/MediaProvider_intermediates/with-local/classes.dex

Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/android/out/host/linux-x86/framework/jack-launcher.jar -cp /home/android/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer

ERROR: /home/android/packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:5368: The method getFatVolumeId() is undefined for the type StorageVolume

build/core/java.mk:643: recipe for target '/home/android/out/target/common/obj/APPS/MediaProvider_intermediates/with-local/classes.dex' failed

make: *** [/home/android/out/target/common/obj/APPS/MediaProvider_intermediates/with-local/classes.dex] Error 41
​

BTW, what version of JAVA is required for this ROM? I'm using:

java version "1.7.0_71"

OpenJDK Runtime Environment (fedora-2.5.3.3.fc20-x86_64 u71-b14)

OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)​