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.

BIOS project fails to build with remarks enabled

Other Parts Discussed in Thread: SYSBIOS

Tools used (selected in the CCS build by the sample project).

  • CCS 5.0.3
  • codegen 7.2.4
  • BIOS 6.32.04.49
  • XDC: 3.22.01.21
  • IPC: 1.23.01.26

I'm using the ti.platforms.evm6678 although I'm not trying to run the code.

Test case to reproduce the problem: create a new project based on the "Hello Example" template and build it.  It should build cleanly.

Now, edit the build properties, and under c6000 compiler, diagnostic options, "Issue remarks (--issue_remarks, -pdr)" and rebuild the project.  The following remarks at the end of this message come out.  Also, CCS fails the build with 46 errors reported (seems like CCS misinterprets remarks from the linker as errors).

While more than one tool seems involved with this problem, I chose the BIOS forum since this only occurs with BIOS projects and is complaining about bios runtime functions.  CCS also has a problem since it interprets remarks as errors.

This problem prevents me from testing my code with remarks enabled as required in certain coding guidelines.

 

 

Console log:

remark: automatic RTS selection:  linking in "rts6600_elf.lib" in place of
   index library "libc.a"
remark: symbol "xdc_runtime_LoggerBuf_write8__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write8__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write1__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write1__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "ti_sysbios_gates_GateMutex_query__E" is mapped to symbol
   "ti_sysbios_gates_GateMutex_query__F"; mapped symbol cannot have definition
   and reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write8__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write8__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write4__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write4__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write1__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write1__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write4__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write4__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write2__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write2__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_enable__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_enable__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_disable__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_disable__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write0__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write0__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write1__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write1__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write2__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write2__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write4__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write4__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write8__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write8__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_setFilterLevel__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_setFilterLevel__F"; mapped symbol cannot have
   definition and reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_getFilterLevel__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_getFilterLevel__F"; mapped symbol cannot have
   definition and reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write1__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write1__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_Error_print__E" is mapped to symbol
   "xdc_runtime_Error_print__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write4__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write4__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write2__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write2__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "ti_sysbios_gates_GateHwi_query__E" is mapped to symbol
   "ti_sysbios_gates_GateHwi_query__F"; mapped symbol cannot have definition
   and reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
remark: symbol "xdc_runtime_LoggerBuf_write2__E" is mapped to symbol
   "xdc_runtime_LoggerBuf_write2__F"; mapped symbol cannot have definition and
   reference in the same file ("C:\Documents and
   Settings\a0216521\workspace_50328_4\hello_test\Debug\configPkg\package\cfg\h
   ello_pe66.oe66")
'Finished building target: hello_test.out'

 

 

 

  • John,

    I believe this is a known issue.  I don't know who's fixing it or when it will be fixed.

    In BIOS, we are explicity supressing these remarks by doing the following and not issue "remarks".

      --diag_remark=10268

    Probably not a satisfactory answer but I don't think there's a way around this right now and I don't know what the fix involves.

    Judah

  • Disabling remarks isn't a good answer.  However, your --diag_remark gave me the idea to use --diag_suppress which "works" when placed in the c6000 compiler options, but for some reason does NOT work when put in the c6000 linker options in the project.

    Suppression is a good enough workaround for this so I can ensure my code doesn't generate remarks.  Since no standard exists for what remarks compilers should generate, I used a #pragma diag_suppress on another remark I don't want to fix (regarding unused parameters in inline functions; I don't want to delete the parameter since that would break backwards compatibility).  I'm wondering if the long term "fix" is to disable this remark in the compiler since it seems to have little diagnostic value.

    I'm wondering if there is something to be followed with the compiler and/or ccs regarding the other issues (why CCS treats these remarks as errors and fails the build, why putting the --diag_suppress in the linker options of the project doesn't work on a linker remark).

  • John --

    I did some research on this --symbol_map was a way to collapse our __E -> __F function calls in the linker.   XDC generates some wrapper functions that can be eliminated if the wrappers don't contain any diagnostic code (typical case).

    The newer TI/ELF linkers will do this for us.   I have asked that these --symbol_map aliases be removed from the generated .cmd file since they are no longer needed for ELF.  They will remain for COFF and will appear when user uses the --issue_remarks (or whatever) linker option.

     

    Bug 360745 - remove --symbol_map from linker.cmd (.xdl) files for TI/ELF targets

     

    -Karl-