Make: *** No rule to make target ...rs_core_math.rsh

103 views
Skip to first unread message

Oyewale Oyediran

unread,
Jul 3, 2014, 5:10:52 AM7/3/14
to android-...@googlegroups.com
I'm building AOSP from source. I have followed all the instructions from source.android.com. I have extracted the vendor binaries
But running 'make' ends with the error below.

I have tried various build configurations (aosp_hammerhead-userdebug, full_hammerhead-userdebug) and I get the same error.

Thanks

Host Clang TableGen: libslang (gen-clang-diags-defs -clang-component=Common) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libslang (gen-clang-diags-defs -clang-component=Frontend) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libslang (gen-clang-diags-defs -clang-component=Sema) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libslang (gen-clang-decl-nodes) <= external/clang/include/clang/Basic/DeclNodes.td
Host Clang TableGen: libslang (gen-clang-stmt-nodes) <= external/clang/include/clang/Basic/StmtNodes.td
Host TableGen: libslang (gen-intrinsic) <= external/llvm/include/llvm/IR/Intrinsics.td
Host TableGen: libLLVMBitWriter_2_9 (gen-intrinsic) <= frameworks/compile/slang/BitWriter_2_9/../../../../external/llvm/include/llvm/IR/Intrinsics.td
Host TableGen: libLLVMBitWriter_2_9_func (gen-intrinsic) <= frameworks/compile/slang/BitWriter_2_9_func/../../../../external/llvm/include/llvm/IR/Intrinsics.td
Notice file: frameworks/compile/slang/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/llvm-rs-cc.txt
Notice file: frameworks/compile/slang/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libslang.a.txt
make: *** No rule to make target `frameworks/rs/scriptc/rs_core_math.rsh', needed by `out/target/common/obj/APPS/Galaxy4_intermediates/src/RenderScript.stamp'.  Stop.
make: *** Waiting for unfinished jobs....
Notice file: external/clang/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libclang.so.txt

Stefan Ivic

unread,
Jul 3, 2014, 2:41:17 PM7/3/14
to android-...@googlegroups.com
No rule to make target usually means that you are missing the file. Go to frameworks/rs/scriptc and see if you have rs_core_math.rsh.

Oyewale Oyediran

unread,
Jul 4, 2014, 9:17:47 AM7/4/14
to android-...@googlegroups.com
Thanks Stefan.
It worked.

I was working on the android-4.4_r1 branch
It seems the frameworks/rs/scriptc/rs_core_math.rsh file was missing from the branch

I had to clone the repo https://android.googlesource.com/platform/frameworks/rs/+/master and copied out the rs_core_math.rsh and copied it into the frameworks/rs/scriptc/ directory.

I ran 'make clean' before running a build, and it worked.

Thanks
Reply all
Reply to author
Forward
0 new messages