This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cryptic linker error message - for static class element

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

I really appreciate cryptic error messages. So what does that really mean?

I just added a static member pointer to a class, which is called pThis.

"C:/ti/controlSUITE/device_support/f28m36x/v207/F28M36x_examples_Dual/mtoc_ipcdrivers_lite/c28/ccs/../../../../F28M36x_common/cmd/F28M36x_generic_wshared_C28_FLASH.cmd", line 156: remark:
 undefined                  first referenced
   object "GETBUFFER" is not allocated, but is being placed as part of
  symbol                        in file      
   allocated object "GROUP_8"
 ---------                  ----------------
"C:/ti/controlSUITE/device_support/f28m36x/v207/F28M36x_examples_Dual/mtoc_ipcdrivers_lite/c28/ccs/../../../../F28M36x_common/cmd/F28M36x_generic_wshared_C28_FLASH.cmd", line 157: remark:
 f28M36x_c28::IpcCom::pThis ./Ipc_Com_c28.obj
   object "GETWRITEIDX" is not allocated, but is being placed as part of

   allocated object "GROUP_8"
error: unresolved symbols remain
"C:/ti/controlSUITE/device_support/f28m36x/v207/F28M36x_examples_Dual/mtoc_ipcdrivers_lite/c28/ccs/../../../../F28M36x_common/cmd/F28M36x_generic_wshared_C28_FLASH.cmd", line 158: remark:
error: errors encountered during linking; "mtoc_ipcdrivers_lite_c28.out" not
   object "PUTREADIDX" is not allocated, but is being placed as part of
   built
   allocated object "GROUP_8"
gmake: *** [mtoc_ipcdrivers_lite_c28.out] Error 1

EDIT:

correction the error is generated after the following codeline was added to the constructor

IpcCom::IpcCom()
{
    pThis = this;

  • Those error diagnostics come from the linker.  When you copied them into your forum post, they got mangled.  I'd appreciate if you would capture them in a simple text file, then attach that to your next post.  After you click on Reply, then click on Use rich formatting.  A message compose interface comes up.  Use the paper clip icon to attach a file.

    While you are at it, please attach the linker command file mentioned in the diagnostics.  That's the file name mentioned at the end of the path which begins C:/ti/controlSUITE.  The forum only allows attaching files of a few different extensions.  So add ".txt" to the end of this file name.

    Thanks and regards,

    -George

  • Andreas Unterberger said:
    I really appreciate cryptic error messages. So what does that really mean?

    It means we need to start adding even more cryptic messages for you to enjoy.

    Andreas Unterberger said:
    object "GETBUFFER" is not allocated, but is being placed as part of allocated object "GROUP_8"

    Interesting, that's an error I haven't seen before.  The note "not allocated" means that this object doesn't exist in target memory; it only exists in the object file, like the debugging information, or DSECT or COPY sections.  This error message means a DSECT or COPY section is placed by the linker command file into a GROUP that specifies a run address.  I'm not sure why exactly the linker doesn't like that.

  • Hi
    I have the same error now again. I generated a ZIP file from the project contents and also added the console output as txt file to this ZIP file. I can send it via private message as long as you don't use the code for other purposes as discovering why this error occured and maybe help how I can avoid this error.

    please reply if you can help.

    best regards
    Andreas
  • Andreas Unterberger said:
    I can send it via private message

    Please do.  Float your mouse over my avatar or user name.  In the box that pops up, click on Send a private message.  A message compose interface comes up.  Use the paper clip icon to attach the .zip file.

    Thanks and regards,

    -George

  • Thank you for sending in the test case.  I can point out two errors in the project.  I cannot tell you the best way to fix them.

    Your link command refers to two different linker command files:  One is named F28M36x_Headers_nonBIOS.cmd and the other is named F28M36x_generic_wshared_C28_FLASH.cmd.  Among other problems, both of these files define a memory range named CTOMRAM and MTOCRAM.

    Your link command also refers to two different RTS libraries.  One is named libc.a and the other is named rts2800_fpu32.lib.  You only need one.

    Thanks and regards,

    -George

  • Hi George,

    thanks for the help, you are right there were 2 lib files specified, i removed the rts... file from the linker settings but it did not change anything. (It is a demo project from the ControlSUITE and I did not change anything among the libs)
    I also found in the linker settings that there was the second linker command file, when I removed that file also some other errors showed up because some sections have not been assigned to a memory area.
    So I put it back in but this time in the project explorer so it can be seen that this file is in the project!

    The problem was as you said the memory ranges which were defined doubled. When I removed that from one file the error disapeared.
    Thanks for the help! But I really dislike the CCS.