-z means that every following option is for the linker, and since many compiler
options follow the expansion of usr.bld, you can't use -z in that file. Is
there not a link.cmd or linker.cmd file that can be used instead (and is
consumed by the XDC tooling)?
Regards,
- Rob
From: davinci-linux-open-source-boun...@linux.davincidsp.com
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of
Mohamed AbdElwahed
Sent: Tuesday, April 27, 2010 5:38 AM
To: Davinci Mailing list
Subject: Compile Error
I use DM6446 and i implemented my own codec and i success to compile(the CGT
is version 6.1.12) and run it.
but when i edit the "usr.bld" file by adding this options "-z -l forder.cmd" to
the compiler options, it fail with the below error.
# generating interfaces for package codecs.decode_slice_h264 (because
package/package.xdc.xml is older than package.xdc) ...
/opt/xdc_3_05/xs
-Dxdc.path="/ESDU/Wasiem/filesys/All_in_One/esdu_decode_slice_h264/codecs/decode_slice_h264/../..;/opt/codec_engine_2_10/cetools/packages;/opt/codec_engine_2_10/packages;/opt/bios_5_32_02/packages;/opt/xdc_3_05/packages;../.."
-Dxdc.root=/opt/xdc_3_05 -Dxdc.hostOS=Linux
-Dconfig.importPath=".;/ESDU/Wasiem/filesys/All_in_One/esdu_decode_slice_h264/codecs/decode_slice_h264/../..;/opt/codec_engine_2_10/cetools/packages;/opt/codec_engine_2_10/packages;/opt/bios_5_32_02/packages;/opt/xdc_3_05/packages;../..;/opt/xdc_3_05;/opt/xdc_3_05/etc"
-Dxdc.bld.targets="" -DTOOLS= -f xdc/services/intern/cmd/build.xs -m
package/package.xdc.dep -i package/package.xdc.inc package.xdc
translating DECODE_SLICE_H264
.interfaces files complete: Tue Apr 27 14:04:08 EET 2010.
.libraries
[/ESDU/Wasiem/filesys/All_in_One/esdu_decode_slice_h264/codecs/decode_slice_h264]
rm -f
package/lib/lib/decode_slice_h264/package/package_codecs.decode_slice_h264.o64P
#
# cl64P package/package_codecs.decode_slice_h264.c ...
/opt/TI/C6000CGT6.1.13/bin/cl6x -c -mt -mo --opt_for_speed=5 -O3
--program_level_compile --silicon_version=6446 --keep_asm --opt_for_speed=5 -z
-l forder.cmd -mv64p -eo.o64P -ea.s64P -D__xdc_bld_pkg_c__=package.bld.c
-Dxdc_target_name__=C64P -Dxdc_target_types__=ti/targets/std.h
-Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_6_1_13 -o2 -I.
-I/ESDU/Wasiem/filesys/All_in_One/esdu_decode_slice_h264/codecs/decode_slice_h264/../..
-I/opt/codec_engine_2_10/cetools/packages -I/opt/codec_engine_2_10/packages
-I/opt/bios_5_32_02/packages -I/opt/xdc_3_05/packages -I../..
-I/opt/TI/C6000CGT6.1.13/include
-fs=./package/lib/lib/decode_slice_h264/package
-fr=./package/lib/lib/decode_slice_h264/package -fc
package/package_codecs.decode_slice_h264.c
>> WARNING: invalid linker option -D__xdc_bld_pkg_c__=package.bld.c (ignored)
>> WARNING: invalid linker option -Dxdc_target_name__=C64P (ignored)
>> WARNING: invalid linker option -Dxdc_target_types__=ti/targets/std.h
>> (ignored)
>> WARNING: invalid linker option -Dxdc_bld__profile_release (ignored)
>> WARNING: invalid linker option -Dxdc_bld__vers_1_0_6_1_13 (ignored)
ERROR: argument to option -f ("value") is out of range
gmake[1]: ***
[package/lib/lib/decode_slice_h264/package/package_codecs.decode_slice_h264.o64P]
Error 1
gmake: ***
[/ESDU/Wasiem/filesys/All_in_One/esdu_decode_slice_h264/codecs/decode_slice_h264,.libraries]
Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/ESDU/Wasiem/filesys/All_in_One/esdu_decode_slice_h264/codecs/decode_slice_h264'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/ESDU/Wasiem/filesys/All_in_One/esdu_decode_slice_h264/codecs'
make: *** [all] Error 2
Any help is highly appreciated
Mohamed AbdElwahed Ibrahim [http://graphics.hotmail.com/i.p.emthup.gif]
> From: davinci-linux-open-source-requ...@linux.davincidsp.com
> Subject: Davinci-linux-open-source Digest, Vol 52, Issue 65
> To: davinci-linux-open-source@linux.davincidsp.com
> Date: Wed, 21 Apr 2010 07:11:32 -0500
>
> Send Davinci-linux-open-source mailing list submissions to
> davinci-linux-open-source@linux.davincidsp.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>
> or, via email, send a message with subject or body 'help' to
> davinci-linux-open-source-requ...@linux.davincidsp.com
>
> You can reach the person managing the list at
> davinci-linux-open-source-ow...@linux.davincidsp.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Davinci-linux-open-source digest..."
>
>
> Today's Topics:>
> 1. Re: [PATCH 4/4] DM365: Add platform resource ma