MTK报错集锦
1.??????编译前须关闭项目文件夹下的相关文件。
2.??????Error:L6218E:UndefinedsymbolLCD_CtrlWrite_S6B33B1X(referredfromMiscFunctions.obj).
3.??????修改了.mak文件后,必须NEW
4.??????如新加了#include...后发现很多在一起的变量没定义,可以把该句移到其他#include背后。
5.??????当SVN系统,文件夹有黄色的叹号,表示冲突时,右击文件夹,选Resolved
即可
6.??????Error:L6218E:UndefinedsymbolDBG_PutUartStr1(referredfromkeybrd.obj).
此为keybrd.c文件中引用了DBG_PutUartStr1()函数,而找不到该函数的定义,原因是remake时未对包含该函数定义的文件进行重新编译链接,搜索发现DBG_PutUartStr1的定义在Drv_comm.c文件中,故删除F:\Z1700(BW1199)\Code\build\B1199\gprs\MT6223Po\drv\Drv_comm.obj,使其重新编译链接后PASS.
8..SVN上传更改的文件时,检测到非ASCII字符,并且不能转换自UTF-8
上传时未添加log注释,添加log后解决。
7.??????Fatalerror:L6031U:Couldnotopenscatterdescriptionfilecustom\system\MT6226_06B_BB\scatZ1204A_VICO.txt.
在此目录下自己新建一个scatZ1204A_VICO.txt
8.??????Warning:L6340W:optionsfirstandlastareignoredforlinktypeof-scattered
Error:L6218E:UndefinedsymbolRA_Hw_Init(referredfromra_hw.o).
Error:L6218E:UndefinedsymbolRA_Power_On(referredfromra_hw.o).
…
出现很多Undefined的这种错误,且都是一个模块的,(属于ry3601模块),在option.mak?????中添加CUS_REL_SRC_COMP+=ry3601,remake后OK.
9.??????"plutommi\mtkapp\soundrecorder\soundrecordersrc\soundrecordersrc.c",line517:Error:C2839E:junkatendof#endifline–ignored??
前面多了一个#endif,去掉后OK
10.???"plutommi\mmi\gpio\gpiosrc\generaldeviceinterface.c",line2085:Error:C2933E:typedisagreementfor''PlayAndStopRuningHorseLedWithMusic''
?????在函数定义前引用了此函数,而在文件头部没有进行声明,只须在文件前头端进行声明即可.
11.Error:L6218E:Undefinedsymbol__MAINLCD__MAINMENU__MATRIX__MM_BG_GIF(referredfromthemeres.obj).
查看代码发现__MAINLCD__MAINMENU__MATRIX__MM_BG_GIF的声明在Themecomponents.h中,搜索发现有两个文件未关联至服务器,导致未更新。将关联的服务器上文件对它们进行替换即可。
12.文件夹有黄色叹号,进行CLEANUP后出现如下提示:
。。。isnotaworkingcopydirectory.
SOLUTION:删除该文件夹再重新下载
13."plutommi\mmi\gui\gui_src\wgui_datetime.c",line3534:Error:C2285E:expected'';''or'',''-inserted'';''before''gui_clock_get_clock_show_time''
SOLUTION:在该函数前的语句忘了加分号“;”。
14.命令语法不正确。
make:[mtkapp.lib]Error1
"plutommi\MtkApp\EngineerMode\EngineerModeSrc\EngineerModeDeviceSrc.c",line8249:Error:C3028E::implicitcastofpointertonon-equalpointer
SOLUTION:一个函数形参为U8string,而实际赋给他的是charbuffer,导致类型不符,调用时进行强制转换:(PU8)dispbuff即可。
15.修改gsm2.mak后进行remake,报错,大意是缺少分隔符.
SOLUTION:察看修改的地方发现有一句不像其他语句一样开头空了几格,便将他开头空上几格后ok.
16.Fatalerror:L6002U:Couldnotopenfile.\build\Z1118\gprs\MT6225o\lib\mercury_master.lib.
原因:出现此ERROR时,使用的是rplutommi,改为全remake后,问题解决
17.新增一些代码后,编模拟器通不过,查看LOG,
..\..\kal\include\kal_trace.h(237):fatalerrorC1083:Cannotopenincludefile:''ps_trace.h'':Nosuchfileordirectory
app_asyncfile.c
原因:添加的\make\AS6200\下少加了个.def文件,加上后OK
或者提示:
..\..\kal\include\kal_trace.h(237):fatalerrorC1083:Cannotopenincludefile:''ps_trace.h'':NosuchfileordirectoryErrorexecutingcl.exe.
查看make\modis_fs\modis_fs.def,看到:
0030:modis_fs.inc:020:1:14=48041e4b:16=47d21313:MoDIS\FileSystem\FileSystemInc0030:modis_fs.lis:08F:1:14=48041e4b:16=47d21313:MoDIS\FileSystem\FileSystemSrc\FSSim_core.cMoDIS\FileSystem\FileSystemSrc\FSSim_data.cMoDIS\FileSystem\FileSystemSrc\FSSim_supplemental.c0030:modis_fs.pth:020:1:14=48041e4b:16=47d21313:MoDIS\FileSystem\FileSystemSrcmake\modis_fs\modis_fs.def0023:.:0:3:14=48041e4b:16=47d21313:0032:mtkdebug:000000000:2:14=48041e4b:16=47d21313:002F:mtkdebug.def:00:1:14=48041e4b:16=47d21313:
去掉上面垃圾内容即可。
18.Error:L6286E:Value(0x400f84)outofrange(-0x400000-0x3fffff)forrelocation#1(wrtsymbol__rt_sdiv)inm11303.obj(INTERNCODE)
Error:L6286E:Value(0x400786)outofrange(-0x400000-0x3fffff)forrelocation#1(wrtsymbol__rt_sdiv)inm11305.obj(INTERNCODE)
Error:L6286E:Value(0x400778)outofrange(-0x400000-0x3fffff)forrelocation#2(wrtsymbol__rt_sdiv)inm11305.obj(INTERNCODE)
Error:L6286E:Value(0x400766)outofrange(-0x400000-0x3fffff)forrelocation#4(wrtsymbol__rt_sdiv)inm11305.obj(INTERNCODE)
Error:L6286E:Value(0x400742)outofrange(-0x400000-0x3fffff)forrelocation#5(wrtsymbol__rt_sdiv)inm11305.obj(INTERNCODE)
SCAT文件中的代码分段,其中有的段超了。
19.make[1]:Noruletomaketarget`custom\drv\misc_drv\mt6225_gemini_bb\codegen\eint_drv.h'',neededby`eint_def.obj''.Stop.
20.make\gsm2.mak:1793:commandscommencebeforefirsttarget.Stop.
21.进行remake编译时,
F:\Z1801\Code\build\Z1801M\Z1801M_PCB01_gprs_MT6229_S02.MAUI_07B_W08_12_F2.bin\,是否确认(Y/N)?
将此目录删除后再remake,OK!
22.Error:L6220E:LoadregionROMsize(14740464bytes)exceedslimit(14680064bytes).NotenoughinformationtoproduceaSYMDEFsfile.
BIN超出限制,考虑给资源(字体,图片,音频等)减肥、关闭某摆设功能、关闭一些SP服务,三方软件等。
23.make:[.\tst\database_classb\BPLGUInfoCustomAppSrc]Error1
仔细查看make目录下的文件。
24.Error:L6850E:ArchivecontainsnonELFObjectCustImgRes.objmake[1]:[build/TELSDA25_GEMINI/gprs/MT6225o/lib/mmiresource.lib]Error1
25.Error:C2831E:unprintablechar0x1ffound-ignored
处理:将不可见字符转换为ASCII编码。
26.0[main]sh500handle_exceptions:Exception:STATUS_ACCESS_VIOLATION??2179[main]sh500open_stackdumpfile:Dumpingstacktracetosh.exe.stackdump
make:[CustResDeclare.o]Error101120??????ErrorinResGeneratingProcess!!??????PleaseCheckagain!!
27Error:L6286E:Value(0x44573)outofrange(0-0xff)forrelocation#4(wrtsymbolGetCurrGuiBuffer)inengineermodedevicesrc.obj(i.EntryEmDevBtRfTXRX)Error:L6286E:Value(0xf1c43)outofrange(0-0xff)forrelocation#3(wrtsymbolget_image)inphonebookmain.obj(i.mmi_phb_list_get_item)
28.MODISError:
OSC>main:MediaTekOSCARSTART......System>Initializingsystemmemory...System>Creatingbufferpool...System>InitializingKALresource...FSSim_Init():failtocreatedirectoryE,errorcode=183[1]Assertfail:0fssim_core.c4400x00x00x0-UNKNOWNabnormalprogramterminationPressanykeytocontinue
29.Error:C2832E:illegaloption-Dinit\include
Compilingnvram/src/nvram_context.c...Error:C2832E:illegaloption-Dinit\includeError:C2832E:illegaloption-Dl1\l1dError:C2832E:illegaloption-Dnvram\src\nvram_handler_tst.cError:C2832E:illegaloption-Dnvram\src\nvram_handler_read.cError:C2832E:illegaloption-Dnvram\fd\includeError:C2832E:illegaloption-Dnvram\src\nvram_handler_write.cError:C2832E:illegaloption-Dcustom\commonError:C2832E:illegaloption-Dnvram\src\nvram_ltable.cError:C2832E:illegaloption-Dnvram\src\nvram_io.cError:C2832E:illegaloption-Dnvram\src\nvram_handler_reset.cError:C2832E:illegaloption-Ddrv\includeError:C2832E:illegaloption-D002E:nvram.lis:01C6:1:14=48041e4b:16=47d21313:nvram\src\nvram_context.cError:C2832E:illegaloption-Dnvram\src\nvram_drval_fat.cError:C2832E:illegaloption-Dnvram\src\nvram_data_items.cError:C2832E:illegaloption-Dnvram\src\nvram_drv_int.cError:C2832E:illegaloption-D002D:nvram.inc:06A:1:14=48041e4b:16=47d21313:nvram\includeError:C2832E:illegaloption-D0023:.:0:3:14=48041e4b:16=47d21313:0035:obigo03cadp:000000000:2:14=48041e4b:16=47d21313:0030:NO_SEC:000000000:2:14=48041e4b:16=47d21313:0033:obigo03cadp.def:0EA:1:14=48041e4b:16=47d21313:MMI_ON_HARDWARE_PError:C2832E:illegaloption-Dnvram\src\nvram_ilm.cError:C2832E:illegaloption-Dnvram\src\nvram_l1def.cError:C2832E:illegaloption-Dnvram\src\nvram_ul1def.cError:C2832E:illegaloption-D002C:nvram.pth:0B:1:14=48041e4b:16=47d21313:nvram\srcError:C2832E:illegaloption-Dapplib\misc\includeError:C2832E:illegaloption-Dnvram\src\nvram_interface.cError:C2832E:illegaloption-Dnvram\src\nvram_handler_startup.cError:C2832E:illegaloption-Dnvram\src\nvram_main.cnvram\src\nvram_context.c:0warnings,25errors,0seriouserrorsmake[1]:[nvram_context.obj]Error1
遇見這問題,請檢查XXX\make\nvram\nvram.def文件
30."custom\system\XXX25_08A_GEMINI_BB\scatXXX25_08A_GEMINI.txt",line304:Warning:L6314W:custom\system\XXX25_08A_GEMINI_BB\scatXXX25_08A_GEMINI.txt(line304,col45)Nosectionmatchespattern(SBC_DYNAMIC_ZI)."custom\system\XXX25_08A_GEMINI_BB\scatXXX25_08A_GEMINI.txt",line309:Warning:L6314W:custom\system\XXX25_08A_GEMINI_BB\scatXXX25_08A_GEMINI.txt(line309,col44)Nosectionmatchespatternisp_comm.obj(INTERNZI1).Error:L6220E:ExecutionregionINTSRAM_DATAsize(25552bytes)exceedslimit(23040bytes).Warning:L6318W:osstub.o(i.gdi_layer_find_valid_handle_abc)containsbranchtoanon-codesymbolsccvv_fast.Warning:L6318W:osstub.o(i.gdi_layer_flatten_to_base_1234)containsbranchtoanon-codesymbolsccvv_fast.Warning:L6318W:osstub.o(i.gdi_layer_flatten_to_base_ddd)containsbranchtoanon-codesymbolsccvv_fast.
处理:INTSRAM_DATA这个部分超出了大小,把里面的内容挪动一下。
??????31.C2319E:type''enum''inconsistentwith''enum''
Compilingapplib/misc/src/app_datetime.c..."plutommi\MMI\Framework\NVRAMManager\NVRAMManagerInc\NVRAMType.h",line111:Seriouserror:C2319E:type''enum''inconsistentwith''enum''applib\misc\src\app_datetime.c:0warnings,0errors,1seriouserror
查看res_gen.log
InfileincludedfromCustResDeclare.c:37:../../MMI/Inc/CustDataRes.h:264:error:parseerrorbefore"CUSTOM_STRING"../../MMI/Inc/CustDataRes.h:279:error:parseerrorbefore"CUSTOM_STRING"../../MMI/Inc/CustDataRes.h:285:error:parseerrorbefore''}''tokenmake[1]:[CustResDeclare.o]Error1
比如我在这里查到的是CustDataRes.h文件中包含了#include"MMIDataType.h"这个,而在MMIDataType.h文件我才刚刚加了
#ifdef__XXX_MOBILE_MMI__#include"..\\..\\XXX_Software\\Resource\\XXX_ResIDDef.h"#endif//__XXX_MOBILE_MMI__
把上面屏蔽掉就编译通过,于是出错的地方就明显而知了,把错误地方改下就可以了。
在实在查找不出错误时,时刻记得查看是否是资源编译出错。
32.关于Image$$ZI$$Limit错误Error:L6218E:UndefinedsymbolImage$$ZI$$Limit(referredfromsys_stackheap.o).NotenoughinformationtoproduceaSYMDEFsfile.
网上能查到的一堆信息我就不写了,经查找是我用了fopen函数,注释掉重写就可以了.其实malloc,printf,strdup等Clib函数的使用也会导致ADS出现这个问题.
33.
..\custresource\PLUTO_MMI\Res_MMI\Res_VT.c..\custresource\PLUTO_MMI\Res_MMI\Res_Wap.c已复制???????86个文件。系统找不到指定的文件。MakingResources...系统找不到指定的路径。reimp:mmicustomizer.lib:Nosuchfileordirectory?????0[main]sh2348handle_exceptions:Exception:STATUS_ACCESS_VIOLATION???477[main]sh2348open_stackdumpfile:Dumpingstacktracetosh.exe.stackdumpmake:[CustResDeclare.o]Error101120ErrorinResGeneratingProcess!!PleaseCheckagain!!
34.make(e=2):系统找不到指定的文件。make:[gen_infolog]Error2
原来是tools\strcmpex.exe这个文件被360干掉了。
35.C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:Assemblermessages:C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:600339:Warning:.stabs:descriptionfield''10b67''toobig,tryadifferentdebugformatC:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:600340:Warning:.stabs:descriptionfield''10bb6''toobig,tryadifferentdebugformatC:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:600341:Warning:.stabs:descriptionfield''10bc4''toobig,tryadifferentdebugformatC:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:600342:Warning:.stabs:descriptionfield''10bd1''toobig,tryadifferentdebugformatC:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:600343:Warning:.stabs:descriptionfield''10bde''toobig,tryadifferentdebugformatC:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:600344:Warning:.stabs:descriptionfield''11442''toobig,tryadifferentdebugformatC:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:600345:Warning:.stabs:descriptionfield''11475''toobig,tryadifferentdebugformatC:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccs9aaaa.s:600346:Warning:.stabs:descriptionfield''114f6''toobig,tryadifferentdebugformat
|
|