Make: *** No rule to make target 'otapackage'. Stop


#1

hi all,
修改內容如下

target thumb C: libpcre <= external/pcre/dist/pcre_compile.c
target thumb C: libpcre <= external/pcre/dist/pcre_config.c
external/pcre/dist/pcre_compile.c: In function ‘add_to_class’:
external/pcre/dist/pcre_compile.c:4135:50: warning: unused parameter ‘uchardptr’ [-Wunused-parameter]
add_to_class(pcre_uint8 *classbits, pcre_uchar **uchardptr, int options,
^
target thumb C: libpcre <= external/pcre/dist/pcre_dfa_exec.c
target thumb C: libpcre <= external/pcre/dist/pcre_exec.c
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s Config.in

using defaults found in .config

/home/vince/s905x/external/busybox/scripts/gcc-version.sh: line 11: aarch64-linux-gnu-gcc:命令找不到
SPLIT include/autoconf.h -> include/config/*
target thumb C: libpcre <= external/pcre/dist/pcre_fullinfo.c
GEN include/bbconfigopts.h
HOSTCC applets/usage
/home/vince/s905x/external/busybox/applets/usage.c: In function ‘main’:
/home/vince/s905x/external/busybox/applets/usage.c:52:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);
^
HOSTCC applets/applet_tables
/home/vince/s905x/external/busybox/applets/applet_tables.c: In function ‘main’:
/home/vince/s905x/external/busybox/applets/applet_tables.c:144:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line_old, sizeof(line_old), fp);
^
target thumb C: libpcre <= external/pcre/dist/pcre_get.c
GEN include/usage_compressed.h
target thumb C: libpcre <= external/pcre/dist/pcre_globals.c
GEN include/applet_tables.h
CC applets/applets.o
/bin/sh: 1: aarch64-linux-gnu-gcc: not found
/home/vince/s905x/external/busybox/scripts/Makefile.build:197: recipe for target ‘applets/applets.o’ failed
make[3]: *** [applets/applets.o] Error 127
/home/vince/s905x/external/busybox/Makefile:379: recipe for target ‘applets_dir’ failed
make[2]: *** [applets_dir] Error 2
Makefile:119: recipe for target ‘prepare’ failed
make[1]: *** [prepare] Error 2
make[1]: Leaving directory '/home/vince/s905x/external/busybox’
external/busybox/Android.mk:56: recipe for target ‘/home/vince/s905x/out/target/product/kvim/obj/busybox/full/.config’ failed
make: *** [/home/vince/s905x/out/target/product/kvim/obj/busybox/full/.config] Error 2
make: *** Deleting file '/home/vince/s905x/out/target/product/kvim/obj/busybox/full/.config’
make: *** Waiting for unfinished jobs…

make failed to build some targets (40:35 (mm:ss))

應該是這個問題才是, 麻煩了


#2

不是很明白你的意思?可以具体的描述一下吗?


#3

現在的錯誤如1F
我已經修正內容,再麻煩你,感恩:joy:


#4

请问一下你是编译android6.0出现问题还是?


#5

是的,上周五可以正常編譯, 今天重新開啟 virtualbox之後,再次進行編譯就發生了問題
編譯為 android 6.0


#6

安装工具
$ wget http://releases.linaro.org/archive/14.09/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.bz24
$ sudo mkdir /opt/toolchains
$ sudo tar -xjf gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.bz2 -C /opt/toolchains


#7

這個上週已經執行過了(感謝你的提醒,我有檢查opt/toolchain仍有這個項目),
目前正在重新編譯中。

補充說明
直接編譯 是可以正常工作的

$ cd ~/project/khadas/mmallow/uboot
$ make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-

我也改為
$ gedit ~/.bashrc

新增兩行 在上方後。
export PATH=/opt/toolchains/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin:$PATH
export CROSS_COMPILE=aarch64-linux-gnu-

$ source ~/.bashrc
$ make kvim_defconfig
$ make -j8


#8

正确的路径是 /opt/toolchains不是/opt/toolchain, 请确认一下。


#9

這已確認,如同前面所述 有s的,剛剛回復打錯而已, 目前仍在編譯中
$ gedit ~/.bashrc

export PATH=/opt/toolchains/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin:$PATH
export CROSS_COMPILE=aarch64-linux-gnu-

$ source ~/.bashrc


#10

莫名其妙的好了,我再思考看看差別在哪裡

using prebuilt boot.img from IMAGES…
amlogic extensions:BuildCustomerImage
amlogic extensions:FullOTA_InstallEnd
running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt
running: java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpjxBqy5 out/target/product/kvim/kvim-ota-20180326.zip
done.

感恩 關心


#11

燒錄編譯成功的update.img
在開機畫面 出現了,無法正常進去桌面
Unforutnately, Launcher3 has stopped.

該如何解決???

===============
我重編 uboot 後再編android就可以進入首次, reset(按鈕)之後就自動不停地自動reset 3-5次後(畫面重跑),可以再次進入


#12

出现这种情况,要先确保一下供电是否正常,USB Type-C端口要连接到适配器而不是PC, PC供电可能不够


#13

感謝你的提醒
我的確是接PC USB 2.0 port
等等換過測試
0…:slight_smile:

============
補充:
更換電源之後 一切都穩定了。


#14

請問 我又重開了一次系統,再次編譯

including ./hardware/amlogic/wifi/qcom9377/Android.mk …
including ./hardware/amlogic/wifi/qcom9378/Android.mk …
including ./hardware/amlogic/wifi/realtek/Android.mk …
including ./hardware/amlogic/wifi/rt3070/Android.mk …
including ./hardware/amlogic/wifi/wgt7310/wl1271/Android.mk …
including ./hardware/amlogic/wifi/wgt7310/wl1271_m603/Android.mk …
including ./hardware/arm/gpu/lib/Android.mk …
including ./hardware/broadcom/wlan/bcmdhd/Android.mk …
including ./hardware/libhardware/Android.mk …
build/core/base_rules.mk:157: *** hardware/libhardware/modules/gralloc: MODULE.TARGET.SHARED_LIBRARIES.gralloc.default already defined by hardware/amlogic/gralloc. Stop.

這是甚麼問題呢?


#15

把编译的全部信息提供一下,出现这种问题应该是你lunch有问题


#16

果然是 lunch有問題,
我把一連串的動作寫成 .sh 去執行,有些問題
單獨執行就正常了。