Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Failed to create lesson 5
Failed to create lesson 5 [message #542730] Fri, 25 June 2010 18:09 Go to next message
mans is currently offline mansFriend
Messages: 3
Registered: June 2010
Junior Member
Hello,
I am new in RTSC and I tried to built lesson 5, but I am getting the following error:

C:\ProgramFiles\RTSC\examples\lesson5>xdc test
making package.mak (because of package.bld) ...
generating interfaces for package lesson5 (because package/package.xdc.inc is older than package.xdc) ...
configuring prog.x64P from package/cfg/prog_x64P.cfg ...
cl64P prog.c ...
cl64P package/cfg/prog_x64P.c ...
lnk64P prog.x64P ...
running prog.x64P ...
Hello World
configuring prog.x86GW from package/cfg/prog_x86GW.cfg ...
Warning: xdc.cfg.INCOMPATIBLE_TARGET_VERSION: current target 'gnu.targets.Mingw'
[1,0,3.4,5] is not compatible with targets used to build the following packages
; package gnu.targets.rts86GW [in C:/ProgramFiles/RTSC/Texas Instruments/xdctool
s_3_20_00_41/packages/gnu/targets/rts86GW/] was built using 'gnu.targets.Mingw'
[1,0,4.4,0]

cl86GW prog.c ...
cl86GW package/cfg/prog_x86GW.c ...
lnk86GW prog.x86GW ...
C:\ProgramFiles\RTSC\Texas Instruments\xdctools_3_20_00_41\packages\gnu\targets\
rts86GW\lib\gnu.targets.rts86GW.a86GW(xdc_init.o86GW):xdc_in it.cpp:(.eh_frame+0x
11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
gmake.exe: *** [prog.x86GW] Error 1

Can you please help me to find the problem?

Regards
Re: Failed to create lesson 5 [message #542766 is a reply to message #542730] Fri, 25 June 2010 23:15 Go to previous messageGo to next message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
On 6/25/2010 11:09 AM, mans.0987@gmail.com wrote:
> Hello,
> I am new in RTSC and I tried to built lesson 5, but I am getting the
> following error:
>
[snip]
> configuring prog.x86GW from package/cfg/prog_x86GW.cfg ...
> Warning: xdc.cfg.INCOMPATIBLE_TARGET_VERSION: current target
> 'gnu.targets.Mingw'
> [1,0,3.4,5] is not compatible with targets used to build the following
> packages
> ; package gnu.targets.rts86GW [in C:/ProgramFiles/RTSC/Texas
> Instruments/xdctool
> s_3_20_00_41/packages/gnu/targets/rts86GW/] was built using
> 'gnu.targets.Mingw'
> [1,0,4.4,0]
>
This warning indicates that the package gnu.targets.rts86GW was built
using the 4.4.0 version of mingw gcc but you are using version 3.4.5.
Theere is a good chance that this package's pre-built libraries are
incompatible with your toolchain.

> cl86GW prog.c ...
> cl86GW package/cfg/prog_x86GW.c ...
> lnk86GW prog.x86GW ...
> C:\ProgramFiles\RTSC\Texas
> Instruments\xdctools_3_20_00_41\packages\gnu\targets\
> rts86GW\lib\gnu.targets.rts86GW.a86GW(xdc_init.o86GW):xdc_in
> it.cpp:(.eh_frame+0x
> 11): undefined reference to `__gxx_personality_v0'
> collect2: ld returned 1 exit status
> gmake.exe: *** [prog.x86GW] Error 1
>
This is a gcc linker error that results from trying to mix objects built
using different incompatible versions of gcc object files.

> Can you please help me to find the problem?
You can either upgrade your Mingw compiler to 4.4 or rebuild the
gnu.targets.rts86GW package using your existing compiler.

To rebuild the rts86GW package see
http://rtsc.eclipse.org/docs-tip/Working_with_xdc.runtime It may seem
strange that we document rebuilding xdc.runtime when you want to rebuild
gnu.targets.rts86GW, but the gnu.targets.rts86GW package exists simply
to build the source contained in xdc.runtime. This is how we can
support _any_ C compiler while at the same time providing pre-built
libraries that work for (at least some) users.

>
> Regards
Re: Failed to create lesson 5 [message #542835 is a reply to message #542766] Sat, 26 June 2010 15:16 Go to previous messageGo to next message
mans is currently offline mansFriend
Messages: 3
Registered: June 2010
Junior Member
Thanks for your reply.
Where can I download MingW version 4.4? I downloaded the latest version of mingw from its web site.

Regards

[Updated on: Sat, 26 June 2010 15:17]

Report message to a moderator

Re: Failed to create lesson 5 [message #542837 is a reply to message #542766] Sat, 26 June 2010 16:06 Go to previous messageGo to next message
mans is currently offline mansFriend
Messages: 3
Registered: June 2010
Junior Member
Hello,
Trying to build the target failed:

C:\ProgramFiles\RTSC\Texas Instruments\xdctools_3_20_00_41\packages\gnu\targets\rts86GW >xs xdc.tools.path -p
C:/ProgramFiles/RTSC/examples;C:/ProgramFiles/RTSC/Texas Instruments/xdctools_3_20_00_41/packages;C:/ProgramFiles/RTS C/Texas Instruments/xdctools_3_20_00_41/pac
kages/gnu/targets/rts86GW/./../../..;

C:\ProgramFiles\RTSC\Texas Instruments\xdctools_3_20_00_41\packages\gnu\targets\
rts86GW>xdc
making package.mak (because of .xdcenv.mak) ...
generating interfaces for package gnu.targets.rts86GW (because package/package.xdc.inc is older than package/build.cfg) ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/SysMin.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/knl/Thread.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/knl/GateThreadSupportNull.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/Assert.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/HeapStd.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/HeapMin.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/Timestamp.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/TimestampNull.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/Core-params.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/Core-label.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/knl/CacheSupportNull.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/Diags.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/Startup.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/knl/GateProcessSupportNull.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/TimestampStd.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/System.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/knl/SemProcess.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/knl/GateProcess.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/knl/Sync.c ...
cl86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/knl/GateThread.c ...
cpp86GW C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/xdc_init.cpp ...
C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/xdc_init.cpp:28: error: syntax error before string constant
C:/PROGRA~3/RTSC/TEXASI~1/xdctools_3_20_00_41/packages/xdc/r untime/xdc_init.cpp:45: error: initializer element is not constant
gmake.exe: *** [package/lib/lib/gnu.targets.rts86GW/xdc/runtime/xdc_init.o8 6GW]
Error 1

C:\ProgramFiles\RTSC\Texas Instruments\xdctools_3_20_00_41\packages\gnu\targets\
rts86GW>

Any suggestion?

Kind regards
Re: Failed to create lesson 5 [message #543910 is a reply to message #542837] Thu, 01 July 2010 05:05 Go to previous messageGo to next message
Sasha Slijepcevic is currently offline Sasha SlijepcevicFriend
Messages: 115
Registered: July 2009
Senior Member
Could you please try to build with 'xdc XDCOPTIONS=v'?
That would help us see which compiler and which options are being used.
The error you are getting indicates that C++ support is not enabled in the compiler you are using. Did you configure and rebuild your compiler, or you downloaded a binary?
Re: Failed to create lesson 5 [message #649809 is a reply to message #543910] Thu, 20 January 2011 16:00 Go to previous messageGo to next message
Guillaume  is currently offline Guillaume Friend
Messages: 2
Registered: January 2011
Junior Member
Hello

Hello,
I am new in RTSC and I tried to built lesson 5, but I am getting the following an unxecpected response:

When I invoke the command "xdc all", I do expect that the package will created for the target defined in my config.bld which is :


/*
* ======== config.bld ========
*/

var Build = xdc.useModule('xdc.bld.BuildEnvironment');

var C64P = xdc.useModule('ti.targets.C64P');
var GCC = xdc.useModule('gnu.targets.Mingw');


/* modify to match %c6xtools% */
C64P.rootDir = "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/456";
//C64P.ccOpts.prefix = "--no_compress";

C64P.platform = 'ti.platforms.sim64Pxx';

/* modify to match %gcctools% */
GCC.rootDir = "C:/MinGW";
GCC.ccOpts.prefix = "-O2";

Build.targets = [C64P, GCC];



But is instead of the packaging sequence is calling other targets :

C:\rtsc\examples\lesson5>xdc
making package.mak (because of package.bld) ...
generating interfaces for package lesson5 (because package/package.xdc.inc is ol
der than package.xdc) ...
configuring prog.x674 from package/cfg/prog_x674.cfg ...
cl674 prog.c ...
cl674 package/cfg/prog_x674.c ...
lnk674 prog.x674 ...
configuring prog.xea8f from package/cfg/prog_xea8f.cfg ...
clea8f package/cfg/prog_xea8f.c ...
clea8f prog.c ...
lnkea8f prog.xea8f ...
all files complete.

Can anybody explain why these targets ? And how I can make sure to use the config.bld file

Thanks,

Regards,


Re: Failed to create lesson 5 [message #650212 is a reply to message #649809] Sun, 23 January 2011 06:14 Go to previous messageGo to next message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
xdc creates a "hidden" file named .xdcenv.mak in the directory
containing package.bld. This file has the definition of the config.bld
that was used to build the package; look for the definition of
XDCBUILDCFG. Don't change this file, it simply records the file that
was used.

You can force the use of a specific config.bld file by specifying it on
the xdc command line:
xdc XDCBUILDCFG=/absolute/path/to/your/config.bld

For more details about how config.bld if found see:
http://rtsc.eclipse.org/cdoc-tip/xdc/bld/BuildEnvironment.ht ml#xdoc-desc

On 1/20/2011 8:00 AM, Guillaume wrote:
> Hello
>
> Hello,
> I am new in RTSC and I tried to built lesson 5, but I am getting the
> following an unxecpected response:
>
> When I invoke the command "xdc all", I do expect that the package will
> created for the target defined in my config.bld which is :
>
>
> /*
> * ======== config.bld ========
> */
>
> var Build = xdc.useModule('xdc.bld.BuildEnvironment');
>
> var C64P = xdc.useModule('ti.targets.C64P');
> var GCC = xdc.useModule('gnu.targets.Mingw');
>
>
> /* modify to match %c6xtools% */
> C64P.rootDir = "C:/Program Files/Texas
> Instruments/ccsv4/tools/compiler/c6000/456"; //C64P.ccOpts.prefix =
> "--no_compress";
>
> C64P.platform = 'ti.platforms.sim64Pxx';
>
> /* modify to match %gcctools% */
> GCC.rootDir = "C:/MinGW";
> GCC.ccOpts.prefix = "-O2";
>
> Build.targets = [C64P, GCC];
>
>
>
> But is instead of the packaging sequence is calling other targets :
> C:\rtsc\examples\lesson5>xdc
> making package.mak (because of package.bld) ...
> generating interfaces for package lesson5 (because
> package/package.xdc.inc is ol
> der than package.xdc) ...
> configuring prog.x674 from package/cfg/prog_x674.cfg ...
> cl674 prog.c ...
> cl674 package/cfg/prog_x674.c ...
> lnk674 prog.x674 ...
> configuring prog.xea8f from package/cfg/prog_xea8f.cfg ...
> clea8f package/cfg/prog_xea8f.c ...
> clea8f prog.c ...
> lnkea8f prog.xea8f ...
> all files complete.
>
> Can anybody explain why these targets ? And how I can make sure to use
> the config.bld file
>
> Thanks,
>
> Regards,
>
>
>
Re: Failed to create lesson 5 [message #650370 is a reply to message #650212] Mon, 24 January 2011 16:35 Go to previous message
Guillaume  is currently offline Guillaume Friend
Messages: 2
Registered: January 2011
Junior Member
Ok, now it's working correctly
Thanks for you reply
Previous Topic:xdc --xdcpath=${LOCAL_XDCPATH} -k -PD ${RUNTIME_DIR}/em/ti release
Next Topic:XDCtools for mac
Goto Forum:
  


Current Time: Sun Oct 06 04:32:24 GMT 2024

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

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

Back to the top