SimyriK

make fail

Aug 9th, 2020
972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 34.01 KB | None | 0 0
  1. simyrik@radxa:~/rockpi4$ make -j16
  2. ============================================
  3. PLATFORM_VERSION_CODENAME=REL
  4. PLATFORM_VERSION=9
  5. TARGET_PRODUCT=rk3399
  6. TARGET_BUILD_VARIANT=userdebug
  7. TARGET_BUILD_TYPE=release
  8. TARGET_ARCH=arm64
  9. TARGET_ARCH_VARIANT=armv8-a
  10. TARGET_CPU_VARIANT=cortex-a53
  11. TARGET_2ND_ARCH=arm
  12. TARGET_2ND_ARCH_VARIANT=armv7-a-neon
  13. TARGET_2ND_CPU_VARIANT=cortex-a15
  14. HOST_ARCH=x86_64
  15. HOST_2ND_ARCH=x86
  16. HOST_OS=linux
  17. HOST_OS_EXTRA=Linux-5.4.0-40-generic-x86_64-Ubuntu-20.04-LTS
  18. HOST_CROSS_OS=windows
  19. HOST_CROSS_ARCH=x86
  20. HOST_CROSS_2ND_ARCH=x86_64
  21. HOST_BUILD_TYPE=release
  22. BUILD_ID=PI
  23. OUT_DIR=out
  24. ============================================
  25. [1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
  26. [1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
  27. SurfaceFlinger want to conditional Compile
  28. librga want to conditional Compile
  29. libstagefright want to conditional Compile
  30. TARGET_PRODUCT: rk3399
  31. device/rockchip/rk3399/preinstall_del/preinstall.mk was modified, regenerating...
  32. out/soong/Android-rk3399.mk was modified, regenerating...
  33. Traceback (most recent call last):
  34.   File "/home/simyrik/rockpi4/.repo/repo/main.py", line 628, in <module>
  35.     _Main(sys.argv[1:])
  36.   File "/home/simyrik/rockpi4/.repo/repo/main.py", line 602, in _Main
  37.     result = run()
  38.   File "/home/simyrik/rockpi4/.repo/repo/main.py", line 595, in <lambda>
  39.     run = lambda: repo._Run(name, gopts, argv) or 0
  40.   File "/home/simyrik/rockpi4/.repo/repo/main.py", line 264, in _Run
  41.     result = cmd.Execute(copts, cargs)
  42.   File "/home/simyrik/rockpi4/.repo/repo/subcmds/manifest.py", line 99, in Execute
  43.     self._Output(opt)
  44.   File "/home/simyrik/rockpi4/.repo/repo/subcmds/manifest.py", line 86, in _Output
  45.     self.manifest.Save(fd,
  46.   File "/home/simyrik/rockpi4/.repo/repo/manifest_xml.py", line 453, in Save
  47.     output_projects(None, root, list(sorted(projects)))
  48.   File "/home/simyrik/rockpi4/.repo/repo/manifest_xml.py", line 356, in output_projects
  49.     output_project(parent, parent_node, project)
  50.   File "/home/simyrik/rockpi4/.repo/repo/manifest_xml.py", line 383, in output_project
  51.     value = p.work_git.rev_parse(HEAD + '^0')
  52.   File "/home/simyrik/rockpi4/.repo/repo/project.py", line 3410, in runner
  53.     raise GitError('%s %s: %s' %
  54. error.GitError: TWRP rev-parse: fatal: not a git repository (or any of the parent directories): .git
  55.  
  56. [4/1103] including bootable/recovery/Android.mk ...
  57. bootable/recovery/Android.mk:105: warning: *** Redirect log to UART
  58. [429/1103] including hardware/rockchip/omx_il/Android.mk ...
  59. tools/hooks .git/hooks
  60. [431/1103] including hardware/rockchip/sensor/Android.mk ...
  61. YD>>PLATFORM_VERSION=9
  62. YD>>ANDRIOD VERSION=9.9
  63. YD>>VERSION_L=, VERSION_KK=
  64. YD>>LOCAL_MODULE=sensors.rk30board
  65. YD>>LOCAL_MODULE=sensors.rk30board, LOCAL_SRC_FILES=sensors_mpl.cpp SamsungSensorBase.cpp LightSensor.cpp ProximitySensor.cpp, LOCAL_SHARED_LIBRARIES=libinvensense_hal libcutils libutils libdl liblog libmllite libhardware
  66. [610/1103] including system/sepolicy/Android.mk ...
  67. system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
  68. [1103/1103] including vendor/rockchip/common/vpu/Android.mk ...
  69. build/make/core/aapt2.mk:33: warning: overriding commands for target `out/target/common/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
  70. build/make/core/aapt2.mk:33: warning: ignoring old commands for target `out/target/common/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
  71. build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/rk3399/vendor/lib/libjpeghwenc.so'
  72. build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/rk3399/vendor/lib/libjpeghwenc.so'
  73. build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/rk3399/vendor/lib/libjpeghwdec.so'
  74. build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/rk3399/vendor/lib/libjpeghwdec.so'
  75. build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/rk3399/vendor/lib64/libjpeghwenc.so'
  76. build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/rk3399/vendor/lib64/libjpeghwenc.so'
  77. [ 11% 38/324] build out/target/product/rk3399/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
  78. out/host/linux-x86/bin/checkpolicy:  loading policy configuration from out/target/product/rk3399/obj/ETC/sepolicy_neverallows_intermediates/policy.conf
  79. out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
  80. out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to out/target/product/rk3399/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
  81. [ 20% 67/324] target  C++: recovery <= bootable/recovery/rktools.cpp
  82. bootable/recovery/rktools.cpp:155:27: warning: unused parameter 'arg' [-Wunused-parameter]
  83. void *thrd_led_func(void *arg) {
  84.                           ^
  85. bootable/recovery/rktools.cpp:325:80: warning: unused parameter 'c' [-Wunused-parameter]
  86. void SplitString(const std::string& s, std::string& result, const std::string& c){
  87.                                                                                ^
  88. 2 warnings generated.
  89. [ 22% 74/324] target  C++: recovery <= bootable/recovery/sdboot.cpp
  90. bootable/recovery/sdboot.cpp:320:36: warning: unused parameter 'szPrompt' [-Wunused-parameter]
  91. void handle_upgrade_callback(char *szPrompt)
  92.                                    ^
  93. 1 warning generated.
  94. [ 23% 76/324] target  C: libmtdutils <= bootable/recovery/mtdutils/rk29.c
  95. bootable/recovery/mtdutils/rk29.c:66:51: warning: unused parameter 'len' [-Wunused-parameter]
  96. int rk_make_ext4fs(const char *filename,long long len, const char *mountpoint)
  97.                                                   ^
  98. 1 warning generated.
  99. [ 35% 114/324] target  C++: librkupdate <= bootable/recovery/rkupdate/RKDevice.cpp
  100. bootable/recovery/rkupdate/RKDevice.cpp:231:7: warning: unused variable 'flashID' [-Wunused-variable]
  101.         BYTE flashID[5];
  102.              ^
  103. bootable/recovery/rkupdate/RKDevice.cpp:346:19: warning: comparison of integers of different signs: 'DWORD' (aka 'unsigned int') and 'int' [-Wsign-compare]
  104.                 if (dwReadSector>iValidSecCount)
  105.                     ~~~~~~~~~~~~^~~~~~~~~~~~~~~
  106. bootable/recovery/rkupdate/RKDevice.cpp:532:33: warning: array subscript is of type 'char' [-Wchar-subscripts]
  107.                 if(0 == m_flashInfo.blockState[bBegin++])
  108.                                               ^~~~~~~~~
  109. bootable/recovery/rkupdate/RKDevice.cpp:598:12: warning: comparison of integers of different signs: 'int' and 'UINT' (aka 'unsigned int') [-Wsign-compare]
  110.         for (i=0;i<uiIDBCount;i++)
  111.                  ~^~~~~~~~~~~
  112. bootable/recovery/rkupdate/RKDevice.cpp:630:12: warning: comparison of integers of different signs: 'int' and 'UINT' (aka 'unsigned int') [-Wsign-compare]
  113.                 for(j=0;j<uiSecCount;j++)
  114.                         ~^~~~~~~~~~~
  115. 5 warnings generated.
  116. [ 36% 117/324] target  C++: librkupdate <= bootable/recovery/rkupdate/RKImage.cpp
  117. bootable/recovery/rkupdate/RKImage.cpp:268:60: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat]
  118.                 printf("Md5Check update.img ulFwSize:%ld", ulFwSize);
  119.                                                      ~~~   ^~~~~~~~
  120.                                                      %lld
  121. 1 warning generated.
  122. [ 36% 118/324] target  C++: librkupdate <= bootable/recovery/rkupdate/RKComm.cpp
  123. bootable/recovery/rkupdate/RKComm.cpp:200:37: warning: unused parameter 'ucFlashCS' [-Wunused-parameter]
  124. int CRKUsbComm::RKU_EraseBlock(BYTE ucFlashCS,DWORD dwPos,DWORD dwCount,BYTE ucEraseType)
  125.                                     ^
  126. bootable/recovery/rkupdate/RKComm.cpp:200:53: warning: unused parameter 'dwPos' [-Wunused-parameter]
  127. int CRKUsbComm::RKU_EraseBlock(BYTE ucFlashCS,DWORD dwPos,DWORD dwCount,BYTE ucEraseType)
  128.                                                     ^
  129. bootable/recovery/rkupdate/RKComm.cpp:200:65: warning: unused parameter 'dwCount' [-Wunused-parameter]
  130. int CRKUsbComm::RKU_EraseBlock(BYTE ucFlashCS,DWORD dwPos,DWORD dwCount,BYTE ucEraseType)
  131.                                                                 ^
  132. bootable/recovery/rkupdate/RKComm.cpp:200:78: warning: unused parameter 'ucEraseType' [-Wunused-parameter]
  133. int CRKUsbComm::RKU_EraseBlock(BYTE ucFlashCS,DWORD dwPos,DWORD dwCount,BYTE ucEraseType)
  134.                                                                              ^
  135. bootable/recovery/rkupdate/RKComm.cpp:204:40: warning: unused parameter 'lpBuffer' [-Wunused-parameter]
  136. int CRKUsbComm::RKU_ReadChipInfo(BYTE* lpBuffer)
  137.                                        ^
  138. bootable/recovery/rkupdate/RKComm.cpp:208:39: warning: unused parameter 'lpBuffer' [-Wunused-parameter]
  139. int CRKUsbComm::RKU_ReadFlashID(BYTE* lpBuffer)
  140.                                       ^
  141. bootable/recovery/rkupdate/RKComm.cpp:227:75: warning: unused parameter 'bySubCode' [-Wunused-parameter]
  142. int CRKUsbComm::RKU_ReadLBA(DWORD dwPos,DWORD dwCount,BYTE* lpBuffer,BYTE bySubCode)
  143.                                                                           ^
  144. bootable/recovery/rkupdate/RKComm.cpp:292:38: warning: unused parameter 'bySubCode' [-Wunused-parameter]
  145. int CRKUsbComm::RKU_ResetDevice(BYTE bySubCode)
  146.                                      ^
  147. bootable/recovery/rkupdate/RKComm.cpp:297:39: warning: unused parameter 'ucFlashCS' [-Wunused-parameter]
  148. int CRKUsbComm::RKU_TestBadBlock(BYTE ucFlashCS,DWORD dwPos,DWORD dwCount,BYTE* lpBuffer)
  149.                                       ^
  150. bootable/recovery/rkupdate/RKComm.cpp:297:55: warning: unused parameter 'dwPos' [-Wunused-parameter]
  151. int CRKUsbComm::RKU_TestBadBlock(BYTE ucFlashCS,DWORD dwPos,DWORD dwCount,BYTE* lpBuffer)
  152.                                                       ^
  153. bootable/recovery/rkupdate/RKComm.cpp:297:67: warning: unused parameter 'dwCount' [-Wunused-parameter]
  154. int CRKUsbComm::RKU_TestBadBlock(BYTE ucFlashCS,DWORD dwPos,DWORD dwCount,BYTE* lpBuffer)
  155.                                                                   ^
  156. bootable/recovery/rkupdate/RKComm.cpp:317:44: warning: unused parameter 'dwTotal' [-Wunused-parameter]
  157. int CRKUsbComm::RKU_TestDeviceReady(DWORD *dwTotal,DWORD *dwCurrent,BYTE bySubCode)
  158.                                            ^
  159. bootable/recovery/rkupdate/RKComm.cpp:317:59: warning: unused parameter 'dwCurrent' [-Wunused-parameter]
  160. int CRKUsbComm::RKU_TestDeviceReady(DWORD *dwTotal,DWORD *dwCurrent,BYTE bySubCode)
  161.                                                           ^
  162. bootable/recovery/rkupdate/RKComm.cpp:317:74: warning: unused parameter 'bySubCode' [-Wunused-parameter]
  163. int CRKUsbComm::RKU_TestDeviceReady(DWORD *dwTotal,DWORD *dwCurrent,BYTE bySubCode)
  164.                                                                          ^
  165. bootable/recovery/rkupdate/RKComm.cpp:321:82: warning: unused parameter 'bySubCode' [-Wunused-parameter]
  166. int CRKUsbComm::RKU_WriteLBALoader(DWORD dwPos,DWORD dwCount,BYTE* lpBuffer,BYTE bySubCode)
  167.                                                                                  ^
  168. bootable/recovery/rkupdate/RKComm.cpp:390:76: warning: unused parameter 'bySubCode' [-Wunused-parameter]
  169. int CRKUsbComm::RKU_WriteLBA(DWORD dwPos,DWORD dwCount,BYTE* lpBuffer,BYTE bySubCode)
  170.                                                                            ^
  171. In file included from bootable/recovery/rkupdate/RKComm.cpp:3:
  172. bootable/recovery/rkupdate/RKAndroidDevice.h:184:16: warning: unused function 'volume_for_path' [-Wunused-function]
  173. static Volume* volume_for_path(const char* path) {
  174.                ^
  175. bootable/recovery/rkupdate/RKAndroidDevice.h:187:12: warning: unused function 'exec_cmd' [-Wunused-function]
  176. static int exec_cmd(const char* path, char* const argv[]) {
  177.            ^
  178. 18 warnings generated.
  179. [ 38% 124/324] target  C++: librkupdate <= bootable/recovery/rkupdate/Upgrade.cpp
  180. bootable/recovery/rkupdate/Upgrade.cpp:272:16: warning: comparison of integers of different signs: 'int' and 'DWORD' (aka 'unsigned int') [-Wsign-compare]
  181.         if (nParamSize<*pParamSize)
  182.             ~~~~~~~~~~^~~~~~~~~~~~
  183. bootable/recovery/rkupdate/Upgrade.cpp:465:12: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<STRUCT_PARAM_ITEM, std::__1::allocator<STRUCT_PARAM_ITEM> >::size_type' (aka 'unsigned long') [-Wsign-compare]
  184.         for (i=0;i<vecParam.size();i++)
  185.                  ~^~~~~~~~~~~~~~~~
  186. bootable/recovery/rkupdate/Upgrade.cpp:474:7: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<STRUCT_PARAM_ITEM, std::__1::allocator<STRUCT_PARAM_ITEM> >::size_type' (aka 'unsigned long') [-Wsign-compare]
  187.         if (i>=vecParam.size())
  188.             ~^ ~~~~~~~~~~~~~~~
  189. bootable/recovery/rkupdate/Upgrade.cpp:606:28: warning: unused parameter 'pComm' [-Wunused-parameter]
  190. bool IsDeviceLock(CRKComm *pComm,bool &bLock)
  191.                            ^
  192. bootable/recovery/rkupdate/Upgrade.cpp:760:7: warning: unused variable 'bRet' [-Wunused-variable]
  193.         bool bRet;
  194.              ^
  195. bootable/recovery/rkupdate/Upgrade.cpp:755:82: warning: unused parameter 'nKeySize' [-Wunused-parameter]
  196. bool UnlockDevice(CRKImage *pImage,CRKLog *pLog,unsigned char *pKey,unsigned int nKeySize)
  197.                                                                                  ^
  198. bootable/recovery/rkupdate/Upgrade.cpp:784:38: warning: variable 'nOutput' is uninitialized when used here [-Wuninitialized]
  199.                 pLog->PrintBuffer(strOutput,output+nOutput-32,32,16);
  200.                                                    ^~~~~~~
  201. bootable/recovery/rkupdate/Upgrade.cpp:759:22: note: initialize the variable 'nOutput' to silence this warning
  202.         unsigned int nOutput;
  203.                             ^
  204.                              = 0
  205. bootable/recovery/rkupdate/Upgrade.cpp:805:7: warning: unused variable 'nKeySize' [-Wunused-variable]
  206.         UINT nKeySize=514;
  207.              ^
  208. bootable/recovery/rkupdate/Upgrade.cpp:804:7: warning: unused variable 'key' [-Wunused-variable]
  209.         BYTE key[514];
  210.              ^
  211. bootable/recovery/rkupdate/Upgrade.cpp:795:86: warning: unused parameter 'szBootDev' [-Wunused-parameter]
  212. bool do_rk_firmware_upgrade(char *szFw,void *pCallback,void *pProgressCallback,char *szBootDev)
  213.                                                                                      ^
  214. bootable/recovery/rkupdate/Upgrade.cpp:1189:37: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
  215.         if(!download_backup_image(vecParam,PARTNAME_SYSTEM,dwBackupOffset,hdr,pComm,pLog))
  216.                                            ^
  217. bootable/recovery/rkupdate/RKAndroidDevice.h:129:27: note: expanded from macro 'PARTNAME_SYSTEM'
  218. #define PARTNAME_SYSTEM                 "system"
  219.                                         ^
  220. bootable/recovery/rkupdate/Upgrade.cpp:1162:12: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<STRUCT_PARAM_ITEM, std::__1::allocator<STRUCT_PARAM_ITEM> >::size_type' (aka 'unsigned long') [-Wsign-compare]
  221.         for (i=0;i<vecParam.size();i++)
  222.                  ~^~~~~~~~~~~~~~~~
  223. bootable/recovery/rkupdate/Upgrade.cpp:1280:17: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<STRUCT_PARAM_ITEM, std::__1::allocator<STRUCT_PARAM_ITEM> >::size_type' (aka 'unsigned long') [-Wsign-compare]
  224.     for(i = 0;i < vecParam.size();i++)
  225.               ~ ^ ~~~~~~~~~~~~~~~
  226. bootable/recovery/rkupdate/Upgrade.cpp:1338:9: warning: unused variable 'nParamSize' [-Wunused-variable]
  227.     int nParamSize = -1;
  228.         ^
  229. bootable/recovery/rkupdate/Upgrade.cpp:1331:31: warning: unused variable 'bLock' [-Wunused-variable]
  230.     bool bSuccess=false, bRet,bLock;
  231.                               ^
  232. bootable/recovery/rkupdate/Upgrade.cpp:1340:11: warning: unused variable 'dwBackupOffset' [-Wunused-variable]
  233.     DWORD dwBackupOffset = 0;
  234.           ^
  235. bootable/recovery/rkupdate/Upgrade.cpp:1339:11: warning: unused variable 'pParam' [-Wunused-variable]
  236.     char *pParam = NULL;
  237.           ^
  238. bootable/recovery/rkupdate/Upgrade.cpp:1350:26: warning: unused variable 'device' [-Wunused-variable]
  239.     STRUCT_RKDEVICE_DESC device;
  240.                          ^
  241. bootable/recovery/rkupdate/Upgrade.cpp:1348:10: warning: unused variable 'uid' [-Wunused-variable]
  242.     BYTE uid[RKDEVICE_UID_LEN];
  243.          ^
  244. bootable/recovery/rkupdate/Upgrade.cpp:1332:9: warning: unused variable 'i' [-Wunused-variable]
  245.     int i, iRet,iFileSize;
  246.         ^
  247. bootable/recovery/rkupdate/Upgrade.cpp:1330:40: warning: unused parameter 'pCallback' [-Wunused-parameter]
  248. bool do_rk_gpt_update(char *szFw,void *pCallback,void *pProgressCallback,char *szBootDev){
  249.                                        ^
  250. bootable/recovery/rkupdate/Upgrade.cpp:1330:56: warning: unused parameter 'pProgressCallback' [-Wunused-parameter]
  251. bool do_rk_gpt_update(char *szFw,void *pCallback,void *pProgressCallback,char *szBootDev){
  252.                                                        ^
  253. bootable/recovery/rkupdate/Upgrade.cpp:1330:80: warning: unused parameter 'szBootDev' [-Wunused-parameter]
  254. bool do_rk_gpt_update(char *szFw,void *pCallback,void *pProgressCallback,char *szBootDev){
  255.                                                                                ^
  256. bootable/recovery/rkupdate/Upgrade.cpp:1388:21: warning: comparison of integers of different signs: 'DWORD' (aka 'unsigned int') and 'int' [-Wsign-compare]
  257.     if(uiActualRead != iFileSize)
  258.        ~~~~~~~~~~~~ ^  ~~~~~~~~~
  259. bootable/recovery/rkupdate/Upgrade.cpp:1366:10: warning: variable 'm_gptBuffer' is uninitialized when used here [-Wuninitialized]
  260.     if (!m_gptBuffer)
  261.          ^~~~~~~~~~~
  262. bootable/recovery/rkupdate/Upgrade.cpp:1342:22: note: initialize the variable 'm_gptBuffer' to silence this warning
  263.     BYTE *m_gptBuffer;
  264.                      ^
  265.                       = nullptr
  266. In file included from bootable/recovery/rkupdate/Upgrade.cpp:4:
  267. bootable/recovery/rkupdate/RKAndroidDevice.h:184:16: warning: unused function 'volume_for_path' [-Wunused-function]
  268. static Volume* volume_for_path(const char* path) {
  269.                ^
  270. bootable/recovery/rkupdate/RKAndroidDevice.h:187:12: warning: unused function 'exec_cmd' [-Wunused-function]
  271. static int exec_cmd(const char* path, char* const argv[]) {
  272.            ^
  273. 27 warnings generated.
  274. [ 38% 125/324] target  C++: librkupdate <= bootable/recovery/rkupdate/RKSparse.cpp
  275. bootable/recovery/rkupdate/RKSparse.cpp:148:31: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  276.                 for (i = 0; i < uiWriteByte/4; i++)
  277.                             ~ ^ ~~~~~~~~~~~~~
  278. 1 warning generated.
  279. [ 41% 134/324] target  C++: librkupdate <= bootable/recovery/rkupdate/RKAndroidDevice.cpp
  280. bootable/recovery/rkupdate/RKAndroidDevice.cpp:132:18: warning: array subscript is of type 'char' [-Wchar-subscripts]
  281.                 m_idBlockOffset[i] = iIndex;
  282.                                ^~
  283. bootable/recovery/rkupdate/RKAndroidDevice.cpp:150:18: warning: array subscript is of type 'char' [-Wchar-subscripts]
  284.                 m_idBlockOffset[i] = iBlockIndex;
  285.                                ^~
  286. bootable/recovery/rkupdate/RKAndroidDevice.cpp:189:41: warning: array subscript is of type 'char' [-Wchar-subscripts]
  287.                 m_flashInfo.blockState[m_idBlockOffset[pos]+i]=1;//<B1><EA><BC><C7><C9>ϻ<B5><BF><E9>
  288.                                                       ^~~~
  289. bootable/recovery/rkupdate/RKAndroidDevice.cpp:191:31: warning: array subscript is of type 'char' [-Wchar-subscripts]
  290.         iBlockIndex = m_idBlockOffset[pos]+m_flashInfo.usPhyBlokcPerIDB;
  291.                                      ^~~~
  292. bootable/recovery/rkupdate/RKAndroidDevice.cpp:633:13: warning: comparison of integers of different signs: 'int' and 'DWORD' (aka 'unsigned int') [-Wsign-compare]
  293.         for (i=0; i<dwSectorNum; i++)
  294.                   ~^~~~~~~~~~~~
  295. bootable/recovery/rkupdate/RKAndroidDevice.cpp:657:42: warning: unused variable 'uiLen' [-Wunused-variable]
  296.         UINT uiOffset,uiTotal,uiWriteByte,uiCrc,uiLen,uiBegin;
  297.                                                 ^
  298. bootable/recovery/rkupdate/RKAndroidDevice.cpp:655:26: warning: unused variable 'end_write_sector_data' [-Wunused-variable]
  299.         STRUCT_END_WRITE_SECTOR end_write_sector_data;
  300.                                 ^
  301. bootable/recovery/rkupdate/RKAndroidDevice.cpp:657:24: warning: unused variable 'uiWriteByte' [-Wunused-variable]
  302.         UINT uiOffset,uiTotal,uiWriteByte,uiCrc,uiLen,uiBegin;
  303.                               ^
  304. bootable/recovery/rkupdate/RKAndroidDevice.cpp:659:13: warning: unused variable 'nTryCount' [-Wunused-variable]
  305.         int iRet,i,nTryCount=3;
  306.                    ^
  307. bootable/recovery/rkupdate/RKAndroidDevice.cpp:658:7: warning: unused variable 'uiBufferSize' [-Wunused-variable]
  308.         UINT uiBufferSize=16*1024;
  309.              ^
  310. bootable/recovery/rkupdate/RKAndroidDevice.cpp:656:7: warning: unused variable 'writeBuf' [-Wunused-variable]
  311.         BYTE writeBuf[16*1024];
  312.              ^
  313. bootable/recovery/rkupdate/RKAndroidDevice.cpp:657:36: warning: unused variable 'uiCrc' [-Wunused-variable]
  314.         UINT uiOffset,uiTotal,uiWriteByte,uiCrc,uiLen,uiBegin;
  315.                                           ^
  316. bootable/recovery/rkupdate/RKAndroidDevice.cpp:648:75: warning: unused parameter 'bErase' [-Wunused-parameter]
  317. int CRKAndroidDevice::WriteIDBlock(PBYTE lpIDBlock,DWORD dwSectorNum,bool bErase)
  318.                                                                           ^
  319. bootable/recovery/rkupdate/RKAndroidDevice.cpp:1334:13: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<int, std::__1::allocator<int> >::size_type' (aka 'unsigned long') [-Wsign-compare]
  320.         for ( i=0;i<vecUpgradePartition.size();i++ )
  321.                   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
  322. bootable/recovery/rkupdate/RKAndroidDevice.cpp:1697:102: warning: unused parameter 'totalByte' [-Wunused-parameter]
  323. bool CRKAndroidDevice::RKA_File_Download(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  324.                                                                                                      ^
  325. bootable/recovery/rkupdate/RKAndroidDevice.cpp:1875:99: warning: unused parameter 'totalByte' [-Wunused-parameter]
  326. bool CRKAndroidDevice::RKA_File_Check(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  327.                                                                                                   ^
  328. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2056:103: warning: unused parameter 'totalByte' [-Wunused-parameter]
  329. bool CRKAndroidDevice::RKA_Param_Download(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  330.                                                                                                       ^
  331. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2120:100: warning: unused parameter 'totalByte' [-Wunused-parameter]
  332. bool CRKAndroidDevice::RKA_Param_Check(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  333.                                                                                                    ^
  334. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2239:7: warning: unused variable 'uiLBALoopLimit' [-Wunused-variable]
  335.         UINT uiLBALoopLimit=(LBA_LOOP_SIZE)/uiLBATransferSize;
  336.              ^
  337. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2240:7: warning: unused variable 'uiLBASector' [-Wunused-variable]
  338.         UINT uiLBASector = uiLBATransferSize/SECTOR_SIZE;
  339.              ^
  340. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2245:7: warning: unused variable 'byRWMethod' [-Wunused-variable]
  341.         BYTE byRWMethod=RWMETHOD_IMAGE;
  342.              ^
  343. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2236:62: warning: unused parameter 'entry' [-Wunused-parameter]
  344. bool CRKAndroidDevice::RKA_Gpt_Download(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  345.                                                              ^
  346. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2236:101: warning: unused parameter 'totalByte' [-Wunused-parameter]
  347. bool CRKAndroidDevice::RKA_Gpt_Download(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  348.                                                                                                     ^
  349. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2314:7: warning: unused variable 'uiLBALoopLimit' [-Wunused-variable]
  350.         UINT uiLBALoopLimit=(LBA_LOOP_SIZE)/uiLBATransferSize;
  351.              ^
  352. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2315:7: warning: unused variable 'uiLBASector' [-Wunused-variable]
  353.         UINT uiLBASector = uiLBATransferSize/SECTOR_SIZE;
  354.              ^
  355. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2317:7: warning: unused variable 'byRWMethod' [-Wunused-variable]
  356.         BYTE byRWMethod=RWMETHOD_IMAGE;
  357.              ^
  358. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2311:59: warning: unused parameter 'entry' [-Wunused-parameter]
  359. bool CRKAndroidDevice::RKA_Gpt_Check(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  360.                                                           ^
  361. bootable/recovery/rkupdate/RKAndroidDevice.cpp:2311:98: warning: unused parameter 'totalByte' [-Wunused-parameter]
  362. bool CRKAndroidDevice::RKA_Gpt_Check(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  363.                                                                                                  ^
  364. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3020:7: warning: unused variable 'uiLBALoopLimit' [-Wunused-variable]
  365.         UINT uiLBALoopLimit=(LBA_LOOP_SIZE)/uiLBATransferSize;
  366.              ^
  367. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3017:108: warning: unused parameter 'totalByte' [-Wunused-parameter]
  368. bool CRKAndroidDevice::RKA_SparseFile_Download(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  369.                                                                                                            ^
  370. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3199:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  371.                                 for (i=0;i<uiWriteByte/4;i++)
  372.                                          ~^~~~~~~~~~~~~~
  373. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3242:7: warning: unused variable 'uiLBALoopLimit' [-Wunused-variable]
  374.         UINT uiLBALoopLimit=(LBA_LOOP_SIZE)/uiLBATransferSize;
  375.              ^
  376. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3239:105: warning: unused parameter 'totalByte' [-Wunused-parameter]
  377. bool CRKAndroidDevice::RKA_SparseFile_Check(STRUCT_RKIMAGE_ITEM &entry,long long &currentByte,long long totalByte)
  378.                                                                                                         ^
  379. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3439:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  380.                                 for (i=0;i<uiWriteByte/4;i++)
  381.                                          ~^~~~~~~~~~~~~~
  382. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3606:14: warning: unused variable 'gptMasterHead' [-Wunused-variable]
  383.         gpt_header *gptMasterHead = (gpt_header *)(master + SECTOR_SIZE);
  384.                     ^
  385. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3759:34: warning: unused variable 'posColon' [-Wunused-variable]
  386.         string::size_type line_size,pos,posColon,posComma;
  387.                                         ^
  388. bootable/recovery/rkupdate/RKAndroidDevice.cpp:3759:43: warning: unused variable 'posComma' [-Wunused-variable]
  389.         string::size_type line_size,pos,posColon,posComma;
  390.                                                  ^
  391. In file included from bootable/recovery/rkupdate/RKAndroidDevice.cpp:1:
  392. bootable/recovery/rkupdate/RKAndroidDevice.h:229:9: warning: private field 'm_uiResevedBlockSize' is not used [-Wunused-private-field]
  393.         UINT   m_uiResevedBlockSize;
  394.                ^
  395. 38 warnings generated.
  396. [ 42% 137/324] Copy xml: out/target/product/rk3399/vendor/commit_id.xml
  397. FAILED: out/target/product/rk3399/vendor/commit_id.xml
  398. /bin/bash -c "(out/soong/host/linux-x86/bin/xmllint commit_id.xml >/dev/null ) && (mkdir -p out/target/product/rk3399/vendor/ ) && (rm -f out/target/product/rk3399/vendor/commit_id.xml ) && (cp \"commit_id.xml\" \"out/target/product/rk3399/vendor/commit_id.xml\" )"
  399. commit_id.xml:1: parser error : Document is empty
  400.  
  401. ^
  402. [ 43% 140/324] build out/target/product/rk3399/obj/ETC/treble_sepolicy_tests_26.0_intermediates/built_26.0_plat_sepolicy
  403. out/host/linux-x86/bin/checkpolicy:  loading policy configuration from out/target/product/rk3399/obj/ETC/treble_sepolicy_tests_26.0_intermediates/26.0_plat_policy.conf
  404. out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
  405. out/host/linux-x86/bin/checkpolicy:  writing CIL to out/target/product/rk3399/obj/ETC/treble_sepolicy_tests_26.0_intermediates/built_26.0_plat_sepolicy
  406. [ 43% 142/324] build out/target/product/rk3399/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil
  407. out/host/linux-x86/bin/checkpolicy:  loading policy configuration from out/target/product/rk3399/obj/ETC/plat_sepolicy.cil_intermediates/plat_policy.conf
  408. out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
  409. out/host/linux-x86/bin/checkpolicy:  writing CIL to out/target/product/rk3399/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil
  410. [ 44% 143/324] build out/target/product/rk3399/obj/ETC/sepolicy.recovery_intermediates/sepolicy
  411. out/host/linux-x86/bin/checkpolicy:  loading policy configuration from out/target/product/rk3399/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
  412. out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
  413. out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to out/target/product/rk3399/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
  414. [ 44% 144/324] build out/target/product/rk3399/obj/ETC/treble_sepolicy_tests_27.0_intermediates/built_27.0_plat_sepolicy
  415. out/host/linux-x86/bin/checkpolicy:  loading policy configuration from out/target/product/rk3399/obj/ETC/treble_sepolicy_tests_27.0_intermediates/27.0_plat_policy.conf
  416. out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
  417. out/host/linux-x86/bin/checkpolicy:  writing CIL to out/target/product/rk3399/obj/ETC/treble_sepolicy_tests_27.0_intermediates/built_27.0_plat_sepolicy
  418. [ 46% 151/324] build TAs
  419. make: Entering directory '/home/simyrik/rockpi4/external/rk_tee_user'
  420. make[1]: Entering directory '/home/simyrik/rockpi4/external/rk_tee_user/ta'
  421. make[2]: Entering directory '/home/simyrik/rockpi4/external/rk_tee_user/ta/testapp'
  422.   CLEAN   .
  423. make[2]: Leaving directory '/home/simyrik/rockpi4/external/rk_tee_user/ta/testapp'
  424. make[2]: Entering directory '/home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage'
  425.   CLEAN   .
  426. make[2]: Leaving directory '/home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage'
  427. make[1]: Leaving directory '/home/simyrik/rockpi4/external/rk_tee_user/ta'
  428. make: Leaving directory '/home/simyrik/rockpi4/external/rk_tee_user'
  429. make: Entering directory '/home/simyrik/rockpi4/external/rk_tee_user'
  430. make[1]: Entering directory '/home/simyrik/rockpi4/external/rk_tee_user/ta'
  431. make[2]: Entering directory '/home/simyrik/rockpi4/external/rk_tee_user/ta/testapp'
  432.   /home/simyrik/rockpi4/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc      /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp/testapp_ta.o
  433.   CPP     /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp/ta.lds
  434.   /home/simyrik/rockpi4/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc      /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp/user_ta_header.o
  435.   LD      /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.elf
  436.   OBJDUMP /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.dmp
  437.   OBJCOPY /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.stripped.elf
  438.   SIGN    /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.ta
  439.   SIGN KEY /home/simyrik/rockpi4/external/rk_tee_user/export-user_ta/keys/oem_privkey.pem
  440. make[2]: Leaving directory '/home/simyrik/rockpi4/external/rk_tee_user/ta/testapp'
  441. make[2]: Entering directory '/home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage'
  442.   CPP     /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage/ta.lds
  443.   /home/simyrik/rockpi4/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc      /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage/testapp_storage_ta.o
  444.   /home/simyrik/rockpi4/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc      /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage/user_ta_header.o
  445.   LD      /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage/8dddf200-2450-11e4-abe20002a5d5c53d.elf
  446.   OBJDUMP /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage/8dddf200-2450-11e4-abe20002a5d5c53d.dmp
  447.   OBJCOPY /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage/8dddf200-2450-11e4-abe20002a5d5c53d.stripped.elf
  448.   SIGN    /home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage/8dddf200-2450-11e4-abe20002a5d5c53d.ta
  449.   SIGN KEY /home/simyrik/rockpi4/external/rk_tee_user/export-user_ta/keys/oem_privkey.pem
  450. make[2]: Leaving directory '/home/simyrik/rockpi4/external/rk_tee_user/ta/testapp_storage'
  451. make[1]: Leaving directory '/home/simyrik/rockpi4/external/rk_tee_user/ta'
  452. make: Leaving directory '/home/simyrik/rockpi4/external/rk_tee_user'
  453. [ 46% 152/324] build out/target/product/rk3399/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy
  454. out/host/linux-x86/bin/checkpolicy:  loading policy configuration from out/target/product/rk3399/obj/ETC/built_plat_sepolicy_intermediates/base_plat_policy.conf
  455. out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
  456. out/host/linux-x86/bin/checkpolicy:  writing CIL to out/target/product/rk3399/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy
  457. ninja: build stopped: subcommand failed.
  458. 07:25:59 ninja failed with: exit status 1
  459.  
  460. #### failed to build some targets (23:48 (mm:ss)) ####
  461.  
Advertisement
Add Comment
Please, Sign In to add comment