[Q] No rule to make target error when compiling rockchip kernel - Android Q&A, Help & Troubleshooting

Hi,
I am new to AOSP and I am trying to make a kernel for rock chip for a vendor. When I run "make rk30xx_4.4_defconfig ARCH=arm"; I get the following error message.
HTML:
build/core/Makefile:32: warning: overriding commands for target `out/target/product/rk30xx/root/init.connectivity.rc'
build/core/base_rules.mk:529: warning: ignoring old commands for target `out/target/product/rk30xx/root/init.connectivity.rc'
make: *** No rule to make target `rk30xx_4.4_defconfig'. Stop.
Could some one tell how to fix it. Please let me know if I need to provide some additional information.
Thanks

Related

[Q] Preempt-rt and Android

Hey guys!
I'm working on a project that includes a task to achieve a real-time Android. Did anyone of you guys already tried that?
I patched the kernel with the Preempt-rt patch and tried to compile it but I got this error:
CC kernel/user.o
CC kernel/signal.o
kernel/signal.c: In function 'complete_signal':
kernel/signal.c:1018:6: warning: 't' is used uninitialized in this function [-Wuninitialized]
error, forbidden warning: signal.c:1018
scripts/Makefile.build:307: recipe for target 'kernel/signal.o' failed
make[1]: *** [kernel/signal.o] Error 1
Makefile:949: recipe for target 'kernel' failed
make: *** [kernel] Error 2​
Can someone help me with this please? I looked for solutions but I couldn't find anything. Thanks in advance

[Q] Build Error, need help?

Setup my build environment according to this post
http://forum.xda-developers.com/showthread.php?t=2639611
and trying to build this ROM
https://github.com/CarbonDev/android
I got a build error mid way
HTML:
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp: In member function 'void overlay::MdpCtrl::setColor(uint32 _t)':
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp:105:13: error: 'struct mdp_overlay' has no member named 'bg _color'
make: *** [/root/carbon/out/target/product/hammerhead/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] E rror 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay <= hardware/qcom/display/msm8974/liboverlay/overlayMdssRot.cpp
make: *** wait: No child processes. Stop.
I google and got this suggesting
Try switching hardware/qcom/display to cyanogenmod 's version
What file do I edit to change this?
Thanks.

Error Compiling Android 7.1.2 (Nougat)

error while compiling carbon for Redmi note 4 snapdragon using prebuilt kernel
including ./system/webservd/Android.mk ...
including ./test/vts/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
including ./tools/test/connectivity/Android.mk ...
including ./vendor/carbon/Android.mk ...
including ./vendor/chromium/Android.mk ...
including ./vendor/codeaurora/telephony/ims/Android.mk ...
including ./vendor/codeaurora/telephony/internal/Android.mk ...
including ./vendor/qcom/opensource/cryptfs_hw/Android.mk ...
including ./vendor/qcom/opensource/dataservices/Android.mk ...
including ./vendor/qcom/opensource/dpm/Android.mk ...
including ./vendor/qcom/opensource/time-services/Android.mk ...
including ./vendor/xiaomi/mido/Android.mk ...
No private recovery resources for TARGET_DEVICE mido
build/core/base_rules.mk:319: warning: overriding commands for target `/home/ramesh/car/out/target/product/mido/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/ramesh/car/out/target/product/mido/root/res/images/charger/battery_fail.png'
build/core/Makefile:51: warning: overriding commands for target `/home/ramesh/car/out/target/product/mido/system/bin/wcnss_service'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/ramesh/car/out/target/product/mido/system/bin/wcnss_service'
build/core/Makefile:51: warning: overriding commands for target `/home/ramesh/car/out/target/product/mido/system/lib/hw/audio.primary.msm8953.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/ramesh/car/out/target/product/mido/system/lib/hw/audio.primary.msm8953.so'
build/core/Makefile:51: warning: overriding commands for target `/home/ramesh/car/out/target/product/mido/system/lib64/hw/audio.primary.msm8953.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/ramesh/car/out/target/product/mido/system/lib64/hw/audio.primary.msm8953.so'
device/xiaomi/mido/mkbootimg.mk:39: warning: overriding commands for target `/home/ramesh/car/out/target/product/mido/boot.img'
build/core/Makefile:618: warning: ignoring old commands for target `/home/ramesh/car/out/target/product/mido/boot.img'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/ramesh/car/out/target/product/mido/ramdisk-recovery.img', needed by '/home/ramesh/car/out/target/product/mido/recovery.img', missing and no known rule to make it
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (19 seconds) ####
Build step 'Execute shell' marked build as failure
Finished: FAILURE

Compiling cyanogenmod?

Hello all. First I must apologize to the moderators if theres a better place for this question. I looked but couldn't find a place for code compiling.
I'm trying to compile cyanogenmod 12 from source. I had to copy a copy of default.xml to a different location to get the compilation to start.
I got no fatal errors till an hour and a half in where I get this...
Code:
target arm C: zip <= external/zip/src/trees.c
make: *** No rule to make target 'vendor/lge/e980/proprietary/lib/hw/camera.msm8960.so', needed by '/root/android/system/out/target/product/e980/system/lib/hw/camera.msm8960.so'. Stop.
make: *** Waiting for unfinished jobs....
target arm C: zip <= external/zip/src/unix/unix.c
external/zip/src/unix/unix.c: In function 'filetime':
external/zip/src/unix/unix.c:436:3: warning: pointer targets in passing argument 1 of 'unix2dostime' differ in signedness [-Wpointer-sign]
return unix2dostime(&s.st_mtime);
^
In file included from external/zip/src/unix/unix.c:14:0:
external/zip/src/unix/../zip.h:695:8: note: expected 'time_t *' but argument is of type 'long unsigned int *'
ulg unix2dostime OF((time_t *));
^
make: Leaving directory '/root/android/system'
#### make failed to build some targets (01:27:25 (hh:mm:ss)) ####
Can anyone please tell me whats wrong?
I'm 3 days into this and i feel like I'm getting real close.
Please let me know if theres any info I can provide.
Thanx in advance....

Help me anyone ....i was trying to build a custom rom for first time...(lineage os)

I am getting this errors while build Lineage os for moto e ...anyone help me.
Checking build tools versions...
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp
: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiu
mbigint.mk: libpdfiumbigint: Unused source files: bigint/Big
Integer.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc b
igint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has
integrated cameraserver into mediaserver. This is weakening
security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied
to find-subdir-assets
find: ‘/home/fb_riki_fb/lineage/out/target/common/obj/SHARED
_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or
directory
build/core/package_internal.mk:143: Empty argument supplied
to find-subdir-assets
build/core/Makefile:34: warning: overriding commands for tar
get `/home/fb_riki_fb/lineage/out/target/product/condor/syst
em/bin/rild'
build/core/base_rules.mk:320: warning: ignoring old commands
for target `/home/fb_riki_fb/lineage/out/target/product/con
dor/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for tar
get `/home/fb_riki_fb/lineage/out/target/product/condor/syst
em/lib/libril.so'
build/core/base_rules.mk:320: warning: ignoring old commands
for target `/home/fb_riki_fb/lineage/out/target/product/con
dor/system/lib/libril.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/fb_riki_fb/lineage/out/host/linux-x86/b
in/dtbToolCM', needed by '/home/fb_riki_fb/lineage/out/targe
t/product/condor/dt.img', missing and no known rule to make
it
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/fb_riki_fb/lineage'
#### make failed to build some targets (01:20 (mm:ss)) ####
[email protected]:~/lineage#
Roybabu said:
I am getting this errors while build Lineage os for moto e ...anyone help me.
Checking build tools versions...
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp
: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiu
mbigint.mk: libpdfiumbigint: Unused source files: bigint/Big
Integer.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc b
igint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has
integrated cameraserver into mediaserver. This is weakening
security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied
to find-subdir-assets
find: ‘/home/fb_riki_fb/lineage/out/target/common/obj/SHARED
_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or
directory
build/core/package_internal.mk:143: Empty argument supplied
to find-subdir-assets
build/core/Makefile:34: warning: overriding commands for tar
get `/home/fb_riki_fb/lineage/out/target/product/condor/syst
em/bin/rild'
build/core/base_rules.mk:320: warning: ignoring old commands
for target `/home/fb_riki_fb/lineage/out/target/product/con
dor/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for tar
get `/home/fb_riki_fb/lineage/out/target/product/condor/syst
em/lib/libril.so'
build/core/base_rules.mk:320: warning: ignoring old commands
for target `/home/fb_riki_fb/lineage/out/target/product/con
dor/system/lib/libril.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/fb_riki_fb/lineage/out/host/linux-x86/b
in/dtbToolCM', needed by '/home/fb_riki_fb/lineage/out/targe
t/product/condor/dt.img', missing and no known rule to make
it
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/fb_riki_fb/lineage'
#### make failed to build some targets (01:20 (mm:ss)) ####
[email protected]:~/lineage#
Click to expand...
Click to collapse
Have you cloned all the dependencies?
Android/device/qcom/common try cloning this and build...

Categories

Resources