Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Communication Framework » Compile error in cpudefs-mdep.c(Builing TCF on vxWorks for PPC target)
Compile error in cpudefs-mdep.c [message #1392575] Wed, 02 July 2014 14:32
Stephen Galperin is currently offline Stephen GalperinFriend
Messages: 1
Registered: July 2014
Junior Member
I am attempting to build the agent code to run on a PPC (e500mc) running VxWorks 6.9.

I created a project in the Wind River workbench using the instructions on TCF Getting Started page. When I build I get errors starting at line 37 of cpudefs-mdep.c.

Source code in question:

RegisterDefinition regs_def[] = {
# define REG_PC user.regs.gpr[32]
{ "gpr0", REG_OFFSET(user.regs.gpr[0]), 4, 0, 0, 1},
{ "gpr1", REG_OFFSET(user.regs.gpr[1]), 4, 1, 1, 1},
{ "gpr2", REG_OFFSET(user.regs.gpr[2]), 4, 2, 2, 1},

List of errors for the code:

"C:/Galperin/TCFAgent/agent/machine/powerpc/tcf/cpudefs-mdep.c", line 37: error (etoa:4136): struct "<unnamed>" has no field "user"
{ "gpr0", REG_OFFSET(user.regs.gpr[0]), 4, 0, 0, 1},
^
"C:/Galperin/TCFAgent/agent/machine/powerpc/tcf/cpudefs-mdep.c", line 37: error (etoa:4044): expression must have pointer type
{ "gpr0", REG_OFFSET(user.regs.gpr[0]), 4, 0, 0, 1},
^
"C:/Galperin/TCFAgent/agent/machine/powerpc/tcf/cpudefs-mdep.c", line 38: error (etoa:4136): struct "<unnamed>" has no field "user"
{ "gpr1", REG_OFFSET(user.regs.gpr[1]), 4, 1, 1, 1},
^
"C:/Galperin/TCFAgent/agent/machine/powerpc/tcf/cpudefs-mdep.c", line 38: error (etoa:4044): expression must have pointer type
{ "gpr1", REG_OFFSET(user.regs.gpr[1]), 4, 1, 1, 1},
^
"C:/Galperin/TCFAgent/agent/machine/powerpc/tcf/cpudefs-mdep.c", line 39: error (etoa:4136): struct "<unnamed>" has no field "user"
{ "gpr2", REG_OFFSET(user.regs.gpr[2]), 4, 2, 2, 1},
^
"C:/Galperin/TCFAgent/agent/machine/powerpc/tcf/cpudefs-mdep.c", line 39: error (etoa:4044): expression must have pointer type
{ "gpr2", REG_OFFSET(user.regs.gpr[2]), 4, 2, 2, 1},


These errors go on for about 50 lines.

Any ideas?

Thanks in advance.
Previous Topic:TCF Terminals Luna BETA
Next Topic:TCF Versions for Luna
Goto Forum:
  


Current Time: Thu Sep 20 12:44:17 GMT 2018

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

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

Back to the top