Skip to content

No rule to make target '[...]/kbuild/services4/srvkm/env/linux/osfunc.o', needed by '[...]kbuild/pvrsrvkm_sgx540_120.o' #3

@shasheene

Description

@shasheene

First off, it's pretty damn amazing to have a Galaxy Nexus Marshmallow AOSP ROM available after Google wasn't able to even release a 4.4 KitKat because TI dropped support for OMAP4. Great work guys!

That said, I was unable to build the ROM after doing a git checkout. I've ran the commands on the README.md in association to the AOSP build documentation. Also, as recommended by the AOSP documentation I am outputting to a separate physical drive, which happens to be mounted under a directory named '/vm'.

I am using Debian Stable (Jessie) and added jessie-backports to install OpenJDK 1.8 as suggested by the documentation. I was surprised when I ran the build script said it needed 1.7 contrary to the documentation, so I went ahead and installed OpenJDK 1.7 as well.

Anyway, after setting everything up, I ran a make -j2 (I am building on an older Core 2 Duo CPU). The build was going well for a few hours, until it got the following:

Makefile:118: "Assuming we want DVFS and dsscomp support."
Install: /vm/android//android/host/linux-x86/bin/adb
host SharedLib: libbacktrace_test_32 (/vm/android//android/host/linux-x86/obj32/lib/libbacktrace_test.so)
host SharedLib: liblog_32 (/vm/android//android/host/linux-x86/obj32/lib/liblog.so)
host SharedLib: libunwind_32 (/vm/android//android/host/linux-x86/obj32/lib/libunwind.so)
clang: warning: argument unused during compilation: '-nodefaultlibs'
host SharedLib: libcutils_32 (/vm/android//android/host/linux-x86/obj32/lib/libcutils.so)
Install: /vm/android//android/host/linux-x86/lib/libc++.so
  RM       /vm/android//android/target/product/tuna/host/intermediates /vm/android//android/target/product/tuna/target/intermediates /vm/android//android/target/product/tuna/target/kbuild
make[1]: Leaving directory '/home/sge/Documents/fungit/android/hardware/ti/omap4/pvr-source/eurasiacon/build/linux2/omap4430_android'
cp kernel/samsung/tuna/drivers/video/omap2/omapfb/omapfb.h /vm/android//android/target/product/tuna/obj/KERNEL_OBJ/drivers/video/omap2/omapfb/omapfb.h
make -j8 -C hardware/ti/omap4/pvr-source/eurasiacon/build/linux2/omap4430_android ARCH=arm KERNEL_CROSS_COMPILE=arm-eabi- CROSS_COMPILE=arm-eabi- KERNELDIR=/vm/android//android/target/product/tuna/obj/KERNEL_OBJ TARGET_PRODUCT="blaze_tablet" BUILD=release TARGET_SGX=540
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make[1]: Entering directory '/home/sge/Documents/fungit/android/hardware/ti/omap4/pvr-source/eurasiacon/build/linux2/omap4430_android'
host SharedLib: libbase (/vm/android//android/host/linux-x86/obj/lib/libbase.so)
Install: /vm/android//android/host/linux-x86/lib64/liblog.so
Install: /vm/android//android/host/linux-x86/lib64/libunwind.so
Install: /vm/android//android/host/linux-x86/lib64/libbacktrace_test.so
Install: /vm/android//android/host/linux-x86/lib64/libcutils.so
Install: /vm/android//android/host/linux-x86/bin/llvm-tblgen
Install: /vm/android//android/host/linux-x86/lib64/libcompiler_rt.so
host SharedLib: libnativehelper_32 (/vm/android//android/host/linux-x86/obj32/lib/libnativehelper.so)
host Executable: dalvikvm (/vm/android//android/host/linux-x86/obj/EXECUTABLES/dalvikvm_intermediates/dalvikvm64)
Install: /vm/android//android/host/linux-x86/lib64/libnativehelper.so
host C++: libart-compiler <= art/compiler/compiled_method.cc
make -C /home/sge/Documents/fungit/android/kernel/samsung/tuna O=/vm/android/android/target/product/tuna/obj/KERNEL_OBJ/. 
make -C /vm/android/android/target/product/tuna/obj/KERNEL_OBJ \
KBUILD_SRC=/home/sge/Documents/fungit/android/kernel/samsung/tuna \
KBUILD_EXTMOD="/vm/android/android/target/product/tuna/target/kbuild" -f /home/sge/Documents/fungit/android/kernel/samsung/tuna/Makefile \

  LD      /vm/android/android/target/product/tuna/target/kbuild/built-in.o
make[6]: *** No rule to make target '/vm/android/android/target/product/tuna/target/kbuild/services4/srvkm/env/linux/osfunc.o', needed by '/vm/android/android/target/product/tuna/target/kbuild/pvrsrvkm_sgx540_120.o'.  Stop.
make[6]: *** Waiting for unfinished jobs....
/home/sge/Documents/fungit/android/kernel/samsung/tuna/Makefile:1360: recipe for target '_module_/vm/android/android/target/product/tuna/target/kbuild' failed
make[5]: *** [_module_/vm/android/android/target/product/tuna/target/kbuild] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[4]: *** [sub-make] Error 2
Makefile:19: recipe for target 'all' failed
make[3]: *** [all] Error 2
eurasiacon/build/linux2/kbuild/kbuild.mk:56: recipe for target 'kbuild' failed
make[2]: *** [kbuild] Error 2
../config/core.mk:606: recipe for target 'build' failed
make[1]: *** [build] Error 2
make[1]: Leaving directory '/home/sge/Documents/fungit/android/hardware/ti/omap4/pvr-source/eurasiacon/build/linux2/omap4430_android'
device/samsung/tuna/BoardConfig.mk:42: recipe for target 'SGX_MODULES' failed
make: *** [SGX_MODULES] Error 2
make: *** Waiting for unfinished jobs....

(I tried again with just a make (ie, single thread) and had same failure.)

This is my first build of Android, so I may be doing something wrong. I'm very comfortable with git, but its the first time I'm using repo or doing an Android build.

Other than running the commands in the README.md, I don't believe there are any other git repositories I need to manually checkout other than this one...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions