Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » Invalid macro definition error(Invalid macro defintion error)
Invalid macro definition error [message #534061] Mon, 17 May 2010 20:15 Go to next message
Badri is currently offline Badri
Messages: 17
Registered: July 2009
Junior Member
Champs,
I am using xdc version 3.16.02.32 and I added the following line to my config.bld:
Pkg.libTemplate = "ti/sdo/ce/utils/libvers.xdt";
After this change I get the following errors during compilation:
invalid macro definition: RCM_ti_sdo_ipc-D__xdc_bld_pkg_c__=package.bld.c
To solve this error I have to edit package.bld which have "defs" libAttr of multiple packages and modify from
libAttrs: {
defs: "-DRCM_ti_sdo_ipc"
}
to add a space after the define as
libAttrs: {
defs: "-DRCM_ti_sdo_ipc "
}

Please let me know if it is mandatory to add space at the end of defines and how this issue is related to the change in config.bld.
Regards
Badri








The full command line of build with XDCOPTION=v is :
D:/tools_wtbu_base_omx/cgt_470_4_6_1/bin/cl470 -c -qq -pdsw225 --endian=little -mv7M3 --abi=eabi -eo.oem3 -ea.sem3 -g -ms --gcc -D___DSPBIOS___ -D___DUCATI_FW___ -DPLATFORM_SIM -DSYSLINK_USE_TILER -D_DEBUG_=1 -DRCM_ti_sdo_ipc-D__xdc_bld_pkg_c__=package.bld.c -Dxdc_target_name__=M3 -Dxdc_target_ty
pes__=ti/targets/arm/elf/std.h -Dxdc_bld__profile_debug -Dxdc_bld__vers_1_0_4_6_1 --symdebug:dwarf -I. -ID:/tools_wtbu_base_omx/HDVPSS_01_00_01_12/packages -ID:/tools_wtbu_base_omx/syslink_02_00_00_43_pre-alpha3 -ID:/tools_wtbu_base_omx/ipc_1_20_01_26_eng/packages -ID:/tools_wtbu_base_omx/bios_6_21
_02_19/packages -ID:/tools_wtbu_base_omx/framework_components_3_10_00_14_eng /packages -ID:/tools_wtbu_base_omx/codec_engine_3_10_00_08_eng/package s -ID:/tools_wtbu_base_omx/ivahd_hdvicp20api_01_00_00_15_produ ction/packages -ID:/tools_wtbu_base_omx/dm816x_codecs_packages/packages -ID:/tools_wtbu_base
_omx/framework_components_3_10_00_14_eng/fctools/packages -ID:/tools_wtbu_base_omx/xdctools_3_16_02_32/packages -I../../.. -ID:/tools_wtbu_base_omx/cgt_470_4_6_1/include/rts -ID:/tools_wtbu_base_omx/cgt_470_4_6_1/include -fs=./package/lib/debug/rcm/package -fr=./package/lib/debug/rcm/package -fc pa
ckage/package_ti.sdo.rcm.c
Command-line error: invalid macro definition: RCM_ti_sdo_ipc-D__xdc_bld_pkg_c__=package.bld.c
Re: Invalid macro definition error [message #534336 is a reply to message #534061] Tue, 18 May 2010 17:24 Go to previous message
Dave Russo is currently offline Dave Russo
Messages: 172
Registered: July 2009
Senior Member
Badri,

This is a bug. Chris Ring recently discovered the same thing and it was
fixed in the head of both the 3.16 and 3.20 code streams; see Bug 312648
- "When assigning Pkg.libTemplate, compile options need extra space
padding."

We don't have a plan for a 3.16 patch release (yet) but 3.20 is due out
at the end of the month.

dave


On 5/17/2010 1:16 PM, Badri wrote:
> Champs,
> I am using xdc version 3.16.02.32 and I added the following line to my
> config.bld:
> Pkg.libTemplate = "ti/sdo/ce/utils/libvers.xdt";
> After this change I get the following errors during compilation:
> invalid macro definition: RCM_ti_sdo_ipc-D__xdc_bld_pkg_c__=package.bld.c
> To solve this error I have to edit package.bld which have "defs" libAttr
> of multiple packages and modify from libAttrs: {
> defs: "-DRCM_ti_sdo_ipc"
> }
> to add a space after the define as libAttrs: {
> defs: "-DRCM_ti_sdo_ipc "
> }
>
> Please let me know if it is mandatory to add space at the end of defines
> and how this issue is related to the change in config.bld.
> Regards
> Badri
>
>
>
>
>
>
>
>
> The full command line of build with XDCOPTION=v is :
> D:/tools_wtbu_base_omx/cgt_470_4_6_1/bin/cl470 -c -qq -pdsw225
> --endian=little -mv7M3 --abi=eabi -eo.oem3 -ea.sem3 -g -ms --gcc
> -D___DSPBIOS___ -D___DUCATI_FW___ -DPLATFORM_SIM -DSYSLINK_USE_TILER
> -D_DEBUG_=1 -DRCM_ti_sdo_ipc-D__xdc_bld_pkg_c__=package.bld.c
> -Dxdc_target_name__=M3 -Dxdc_target_ty
> pes__=ti/targets/arm/elf/std.h -Dxdc_bld__profile_debug
> -Dxdc_bld__vers_1_0_4_6_1 --symdebug:dwarf -I.
> -ID:/tools_wtbu_base_omx/HDVPSS_01_00_01_12/packages
> -ID:/tools_wtbu_base_omx/syslink_02_00_00_43_pre-alpha3
> -ID:/tools_wtbu_base_omx/ipc_1_20_01_26_eng/packages
> -ID:/tools_wtbu_base_omx/bios_6_21
> _02_19/packages
> -ID:/tools_wtbu_base_omx/framework_components_3_10_00_14_eng /packages
> -ID:/tools_wtbu_base_omx/codec_engine_3_10_00_08_eng/package s
> -ID:/tools_wtbu_base_omx/ivahd_hdvicp20api_01_00_00_15_produ
> ction/packages -ID:/tools_wtbu_base_omx/dm816x_codecs_packages/packages
> -ID:/tools_wtbu_base
> _omx/framework_components_3_10_00_14_eng/fctools/packages
> -ID:/tools_wtbu_base_omx/xdctools_3_16_02_32/packages -I../../..
> -ID:/tools_wtbu_base_omx/cgt_470_4_6_1/include/rts
> -ID:/tools_wtbu_base_omx/cgt_470_4_6_1/include
> -fs=./package/lib/debug/rcm/package -fr=./package/lib/debug/rcm/package
> -fc pa
> ckage/package_ti.sdo.rcm.c
> Command-line error: invalid macro definition:
> RCM_ti_sdo_ipc-D__xdc_bld_pkg_c__=package.bld.c
>
Previous Topic:not able to add an executable to a release
Next Topic:Ordering Module_startup
Goto Forum:
  


Current Time: Fri Oct 31 19:22:44 GMT 2014

Powered by FUDForum. Page generated in 0.02109 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software