MT6589 Modem Ubuntu下编译出错
project_name = SIGNAL89_WET_JB2_MD1_HSPA
flavor = DEFAULT
clean build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/tmp/*.*
concatenate make/Modem_spec/mtk_MODEM_3G_WCDMA.mak
concatenate make/custom_config/SIGNAL89_WET_JB2_MD1_HSPA_EXT.mak
concatenate_proj_mak = build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/bin/~SIGNAL89_WET_JB2_MD1_HSPA.mak
*******************************************
recommended Build Environment
*******************************************
* [OS] : linux
* [PERL] : v5.10.1 or v5.14.2
* [MAKE] : GNU Make v3.81
* [SHELL] : GNU bash v4.1.5
* [COMPILER] : v4.6.2 or above
*******************************************
Start checking current Build Environment
*******************************************
* [PERL] : v5.14.2 [OK] !
* [MAKE] : GNU Make v3.81 [OK] !
* [SHELL] : GNU bash v4.2.37 [HIGHER THAN RECOMMENDED] !
* [COMPILER] : v4.6.2 [OK] !
*******************************************
Build Environment is ready!
*******************************************
makefile check is done
Cleaning directories under ./build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT ...
/bin/sh: 11: [: 0: unexpected operator
/bin/sh: 3: [: 0: unexpected operator
Cleaning dep files under ./build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/bin/dep
Cleaning obj files under ./build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/bin/obj
Cleaning lib files under ./build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/bin/lib
Cleaning lib files under ./build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/bin/lib
/bin/sh: 6: [: 255: unexpected operator
custom/driver/drv_gen/SIGNAL89_WET_JB2_MD1_BB/DEFAULT/codegen.dws
Gencode GPIO_var.c OK!
Gencode eint_drv.h OK!
Gencode eint_var.c OK!
Gencode ADC_var.c OK!
no Gencode uem_drv.c!
Gencode keypad_drv.h OK!
Gencode pMIC_drv.h OK!
start Drv feature check...
get feature list fROM drv_features.h...
get feature list from drv_features_option.h...
generate feature check file...
validate features...
infoFilename = ././build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/bin/log/info.log
check def/undef features for drv_features.h...
log generated at ././build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/bin/log/drv_features_option.log
[drv_features.h, drv_features_option.h]
All feature count = 1152
Defined count = 159
Undef count = 993
[drv_features_option.h]
Mismatch Config count = 0
DRV Feature Check - Done
Generate EMI settings
[Dependency] /home/tim/MTK/s7/modem/tools/objListGen.pl
[Dependency] /usr/share/perl/5.14.2/XSLoader.pm
[Dependency] /usr/share/perl/5.14.2/warnings/register.pm
[Dependency] /usr/lib/perl/5.14.2/List/Util.pm
[Dependency] /usr/lib/perl/5.14.2/Cwd.pm
[Dependency] /usr/share/perl/5.14.2/warnings.pm
[Dependency] /usr/share/perl/5.14.2/File/Copy.pm
[Dependency] /home/tim/MTK/s7/modem/tools/objListHelper.pm
[Dependency] /usr/share/perl/5.14.2/File/Basename.pm
[Dependency] /usr/lib/perl/5.14.2/Config.pm
[Dependency] /home/tim/MTK/s7/modem/tools/pack_dep_gen.pm
[Dependency] /usr/lib/perl/5.14.2/Fcntl.pm
[Dependency] /home/tim/MTK/s7/modem/tools/CommonUtility.pm
[Dependency] /usr/share/perl/5.14.2/Carp.pm
[Dependency] /usr/share/perl/5.14.2/Exporter/Heavy.pm
[Dependency] /usr/lib/perl/5.14.2/File/Spec/Unix.pm
[Dependency] /usr/lib/perl/5.14.2/Scalar/Util.pm
[Dependency] /usr/share/perl/5.14.2/strict.pm
[Dependency] /usr/share/perl/5.14.2/vars.pm
[Dependency] /usr/share/perl/5.14.2/Exporter.pm
[Dependency] /usr/share/perl/5.14.2/constant.pm
[Dependency] /home/tim/MTK/s7/modem/tools/FileInfoParser.pm
[Dependency] /usr/lib/perl/5.14.2/File/Spec.pm
[Dependency] /usr/share/perl/5.14.2/overload.pm
[Dependency] /usr/share/perl/5.14.2/File/Path.pm
[Dependency] /home/tim/MTK/s7/modem/tools/sysGenUtility.pm
[Dependency] /usr/lib/perl/5.14.2/Storable.pm
[Dependency] /home/tim/MTK/s7/modem/tools/sys_auto_gen.pl
[Dependency] /usr/share/perl/5.14.2/XSLoader.pm
[Dependency] /usr/share/perl/5.14.2/warnings/register.pm
[Dependency] /usr/lib/perl/5.14.2/List/Util.pm
[Dependency] /usr/share/perl/5.14.2/warnings.pm
[Dependency] /usr/lib/perl/5.14.2/Cwd.pm
[Dependency] /usr/share/perl/5.14.2/File/Copy.pm
[Dependency] /usr/lib/perl/5.14.2/Config.pm
[Dependency] /home/tim/MTK/s7/modem/tools/pack_dep_gen.pm
[Dependency] /home/tim/MTK/s7/modem/tools/CommonUtility.pm
[Dependency] /usr/lib/perl/5.14.2/File/Spec/Unix.pm
[Dependency] /usr/lib/perl/5.14.2/Scalar/Util.pm
[Dependency] /usr/share/perl/5.14.2/strict.pm
[Dependency] /usr/share/perl/5.14.2/vars.pm
[Dependency] /usr/share/perl/5.14.2/Exporter.pm
[Dependency] /usr/share/perl/5.14.2/constant.pm
[Dependency] /home/tim/MTK/s7/modem/tools/FileInfoParser.pm
[Dependency] /usr/lib/perl/5.14.2/File/Spec.pm
[Dependency] /usr/share/perl/5.14.2/overload.pm
[Dependency] /home/tim/MTK/s7/modem/tools/sysGenUtility.pm
[Dependency] /home/tim/MTK/s7/modem/tools/sysGen1.pl
[Dependency] /usr/share/perl/5.14.2/XSLoader.pm
[Dependency] /usr/share/perl/5.14.2/warnings/register.pm
[Dependency] /usr/share/perl/5.14.2/Exporter.pm
[Dependency] /usr/share/perl/5.14.2/vars.pm
[Dependency] /usr/share/perl/5.14.2/strict.pm
[Dependency] /usr/share/perl/5.14.2/constant.pm
[Dependency] /usr/share/perl/5.14.2/warnings.pm
[Dependency] /usr/lib/perl/5.14.2/Cwd.pm
[Dependency] /home/tim/MTK/s7/modem/tools/pack_dep_gen.pm
[Dependency] /home/tim/MTK/s7/modem/tools/sysGenUtility.pm
[Dependency] /home/tim/MTK/s7/modem/tools/scatGen.pl
[Dependency] /home/tim/MTK/s7/modem/tools/config_MEMSegment.pm
[Dependency] /usr/share/perl/5.14.2/XSLoader.pm
[Dependency] /usr/share/perl/5.14.2/warnings/register.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsInfo.pm
[Dependency] /usr/share/perl/5.14.2/warnings.pm
[Dependency] /usr/lib/perl/5.14.2/Cwd.pm
[Dependency] /home/tim/MTK/s7/modem/tools/scatInfo.pm
[Dependency] /usr/share/perl/5.14.2/File/Basename.pm
[Dependency] /home/tim/MTK/s7/modem/tools/pack_dep_gen.pm
[Dependency] /home/tim/MTK/s7/modem/tools/CommonUtility.pm
[Dependency] /usr/share/perl/5.14.2/strict.pm
[Dependency] /usr/share/perl/5.14.2/vars.pm
[Dependency] /usr/share/perl/5.14.2/Exporter.pm
[Dependency] /usr/share/perl/5.14.2/constant.pm
[Dependency] /home/tim/MTK/s7/modem/tools/FileInfoParser.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsInfoWrap.pm
[Dependency] /home/tim/MTK/s7/modem/tools/sysGenUtility.pm
[Dependency] /home/tim/MTK/s7/modem/tools/scatGen.pl
[Dependency] /home/tim/MTK/s7/modem/tools/config_MemSegment.pm
[Dependency] /usr/share/perl/5.14.2/XSLoader.pm
[Dependency] /usr/share/perl/5.14.2/warnings/register.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsInfo.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsFrame.pm
[Dependency] /usr/share/perl/5.14.2/warnings.pm
[Dependency] /usr/lib/perl/5.14.2/Cwd.pm
[Dependency] /home/tim/MTK/s7/modem/tools/scatInfo.pm
[Dependency] /usr/share/perl/5.14.2/File/Basename.pm
[Dependency] /home/tim/MTK/s7/modem/tools/pack_dep_gen.pm
[Dependency] /home/tim/MTK/s7/modem/tools/CommonUtility.pm
[Dependency] /usr/share/perl/5.14.2/strict.pm
[Dependency] /usr/share/perl/5.14.2/vars.pm
[Dependency] /usr/share/perl/5.14.2/Exporter.pm
[Dependency] /usr/share/perl/5.14.2/constant.pm
[Dependency] /home/tim/MTK/s7/modem/tools/FileInfoParser.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsInfoWrap.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsGenLib.pl
[Dependency] /home/tim/MTK/s7/modem/tools/sysGenUtility.pm
[Dependency] /home/tim/MTK/s7/modem/tools/scatGen.pl
[Dependency] /home/tim/MTK/s7/modem/tools/config_MemSegment.pm
[Dependency] /usr/share/perl/5.14.2/XSLoader.pm
[Dependency] /usr/share/perl/5.14.2/warnings/register.pm
[Dependency] /home/tim/MTK/s7/modem/tools/sysGen2.pl
[Dependency] /home/tim/MTK/s7/modem/tools/ldsInfo.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsFrame.pm
[Dependency] /usr/share/perl/5.14.2/warnings.pm
[Dependency] /usr/lib/perl/5.14.2/Cwd.pm
[Dependency] /home/tim/MTK/s7/modem/tools/scatInfo.pm
[Dependency] /usr/share/perl/5.14.2/File/Basename.pm
[Dependency] /home/tim/MTK/s7/modem/tools/pack_dep_gen.pm
[Dependency] /home/tim/MTK/s7/modem/tools/CommonUtility.pm
[Dependency] /usr/share/perl/5.14.2/strict.pm
[Dependency] /usr/share/perl/5.14.2/vars.pm
[Dependency] /usr/share/perl/5.14.2/Exporter.pm
[Dependency] /usr/share/perl/5.14.2/constant.pm
[Dependency] /home/tim/MTK/s7/modem/tools/FileInfoParser.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsInfoWrap.pm
[Dependency] /home/tim/MTK/s7/modem/tools/ldsGenLib.pl
[Dependency] /home/tim/MTK/s7/modem/tools/sysGenUtility.pm
Using an array as a reference is deprecated at tools/memoryUtility//LisFileParser.pm line 437.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 441.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 445.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 449.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 453.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 457.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 482.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 486.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 490.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 494.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 498.
Using an array as a reference is deprecated at tools/MemoryUtility//LisFileParser.pm line 502.
ckLDS: phase 1 not implemented yet
/bin/sh: 1: [: 0GCC: unexpected operator
/bin/sh: 1: [: 0./build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/header_temp: unexpected operator
2013/04/23 12:55:37
Generate config information
genmoduleinfo is done.
Generating .lis and .def files are done
2013/04/23 12:55:38
clean codegen list
/bin/sh: 2: [: 255: unexpected operator
make: *** [build/SIGNAL89_WET_JB2_MD1_HSPA/DEFAULT/bin/dep/codegen_dep/nvram_auto_gen.det] Error 2
=====================================================================
以上,求解答。
求大神指点。
* [SHELL] : GNU bash v4.2.37 [HIGHER THAN RECOMMENDED] !
你ubuntu的版本是不是12.04,安装推荐的版本就没这个问题了。
GCC的问题,去网站更新最新的GCC4.6.2
我用ubuntu12.10的
已经是最新的 4.6.2的, 专门下的
12.04 bash版本是4.2.24 编译也不行....
B2_MD1_HSPA.mak
*******************************************
recommended Build Environment
*******************************************
* [OS] : Linux
* [PERL] : v5.10.1 or v5.14.2
* [MAKE] : GNU Make v3.81
* [SHELL] : GNU bash v4.1.5
* [COMPILER] : v4.6.2 or above
*******************************************
Start checking current Build Environment
*******************************************
* [PERL] : v5.10.1 [OK] !
* [MAKE] : GNU Make v3.81 [OK] !
* [SHELL] : GNU bash v4.1.5 [OK] !
* [COMPILER] : v4.6.2 [OK] !
*******************************************
Build Environment is ready!
*******************************************
makefile check is done
tools/init/strcmpex_linux.exe: 1: Syntax error: word unexpected (expecting ")")
make: *** [getoptions] Error 2
liao@liao:~/share/modem$
无语了,换了系统,换了环境更加编译不行...
求高手指点。
没有做过89,看错误提示有exe文件,是不是要安装wine?你安装了没有?
GoEnjoy(253485762) 10:13:41
问题分析:strcmpex_linux.exe是 MTK SW中包含的linux环境下的可执行文件,该可执行文件是在ubuntu 64位操作系统中编译出来的,因此无法在ubuntu 32位的环境中执行。
解决方法:modem编译环境切换到ubuntu10.04 64位操作系统
谢谢蒋兄,
大家谁有6589 的编译方法, 分享一下。
查看错误log可知:
tools/NVRAMStatistic/src/nvram_auto_gen.c:571: fatal error: io.h: 没有那个文件或目录
compilation terminated.
make[1]: *** [nvram_auto_gen.o] 错误 1
没有找到io.h文件
你ubuntu的版本是不是12.04,安装推荐的版本就没这个问题了。
mark