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.

Compiler: TI's Arm compiler v18.1.0 LTS issue

Other Parts Discussed in Thread: CCSTUDIO, AM5728

Tool/software: TI C/C++ Compiler

Hello.

Today I installed the new version of TI's compiler for ARM and I got the following message error that before wasn't present::

<Linking>
error: symbol "vsnprintf" redeclared with incompatible type:
   "int [ExplSign](unsigned char *, size_t, const unsigned char *, va_list)"
   in "vsnprintf.c" at line 71 and:
   "int [ExplSign](unsigned char *, size_t, const unsigned char *, va_list)"
   in
   "/home/gtbldadm/processor-sdk-rtos-morty-build/build-CORTEX_1/arago-tmp-exte
   rnal-linaro-toolchain/sysroots/x86_64-linux/usr/share/ti/ti-cgt-arm/include/
   stdio.h" at line 267)
fatal error #10192: Failed linktime optimization
gmake[1]: *** [M4_ASampleProj.out] Error 1
gmake: *** [all] Error 2

The same code is compiled and linked by the previous version of the compiler v17.9.0 STS.

Best regards,

Scianni Vincenzo

  • Unfortunately, I am unable to reproduce the error.  Please show the build options you use when building one C file, and the build options you use when linking.  I think that will allow me to reproduce the problem, but I cannot guarantee it.

    Thanks and regards,

    -George

  • I'd appreciate if you would supply the additional information I requested.

    Thanks and regards,

    -George

  • Hi George

    My Company is having the same problem which we have recreated in a minimal build with a blank project

    We are using the TMS570 Arm R5 

    I attach the cproject file - which I hope gives the information you need.

    If we change the otimisation to 3 from 4 then it builds.

    Best Regards

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
    <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
    <cconfiguration id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.695399850">
    <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.695399850" moduleId="org.eclipse.cdt.core.settings" name="Debug">
    <externalSettings/>
    <extensions>
    <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
    <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
    <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
    <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
    <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
    </extensions>
    </storageModule>
    <storageModule moduleId="cdtBuildSystem" version="4.0.0">
    <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.695399850" name="Debug" parent="com.ti.ccstudio.buildDefinitions.TMS470.Debug">
    <folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.695399850." name="/" resourcePath="">
    <toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.DebugToolchain.918891194" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.linkerDebug.1002421013">
    <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.373090048" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
    <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex R.TMS570LC43xx"/>
    <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=be32"/>
    <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
    <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
    <listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
    <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
    </option>
    <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.726320200" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="18.1.0.LTS" valueType="string"/>
    <targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.targetPlatformDebug.192003010" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.targetPlatformDebug"/>
    <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.builderDebug.735774258" keepEnvironmentInBuildfile="false" name="GNU Make" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.builderDebug"/>
    <tool id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.compilerDebug.870465803" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.compilerDebug">
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE.1217344509" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.CODE_STATE.32" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION.938652659" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.SILICON_VERSION.7R5" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.FLOAT_SUPPORT.1385661429" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.FLOAT_SUPPORT.VFPv3D16" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI.1546631110" name="Application binary interface. (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ABI.eabi" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ENUM_TYPE.1134294454" name="Designate enum type (--enum_type)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ENUM_TYPE" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.ENUM_TYPE.packed" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.INCLUDE_PATH.625409382" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.INCLUDE_PATH" valueType="includePath">
    <listOptionValue builtIn="false" value="${PROJECT_ROOT}"/>
    <listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/include"/>
    </option>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL.2132729171" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WARNING.691340963" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WARNING" valueType="stringList">
    <listOptionValue builtIn="false" value="225"/>
    </option>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP.1050100626" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DISPLAY_ERROR_NUMBER.1733852787" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL.213859165" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__C_SRCS.1275670806" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__C_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__CPP_SRCS.1275424016" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__CPP_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__ASM_SRCS.1710040191" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__ASM_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__ASM2_SRCS.130988494" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.compiler.inputType__ASM2_SRCS"/>
    </tool>
    <tool id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.linkerDebug.1002421013" name="ARM Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exe.linkerDebug">
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.ARM_BIG_ENDIAN_MODES.1433585461" name="ARM big endian modes [See 'General' page to edit]" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.ARM_BIG_ENDIAN_MODES" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.ARM_BIG_ENDIAN_MODES.BE32" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.HEAP_SIZE.1939531977" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.HEAP_SIZE" value="0x800" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.STACK_SIZE.267740734" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.STACK_SIZE" value="0x800" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.MAP_FILE.927930524" name="Link information (map) listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.MAP_FILE" value="${ProjName}.map" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.OUTPUT_FILE.808849154" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.OUTPUT_FILE" value="${ProjName}.out" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.LIBRARY.486254680" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.LIBRARY" valueType="libs">
    <listOptionValue builtIn="false" value="libc.a"/>
    </option>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.SEARCH_PATH.1633067845" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.SEARCH_PATH" valueType="libPaths">
    <listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/lib"/>
    <listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/include"/>
    </option>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP.1275520944" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DISPLAY_ERROR_NUMBER.846073945" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.XML_LINK_INFO.1757255794" name="Detailed link information data-base into &lt;file&gt; (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.linkerID.XML_LINK_INFO" value="${ProjName}_linkInfo.xml" valueType="string"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__CMD_SRCS.1338786582" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__CMD_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__CMD2_SRCS.147252530" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__CMD2_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__GEN_CMDS.261121550" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.exeLinker.inputType__GEN_CMDS"/>
    </tool>
    <tool id="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex.1425643092" name="ARM Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_18.1.hex"/>
    </toolChain>
    </folderInfo>
    </configuration>
    </storageModule>
    <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
    </cconfiguration>
    <cconfiguration id="com.ti.ccstudio.buildDefinitions.TMS470.Release.1000764770">
    <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.TMS470.Release.1000764770" moduleId="org.eclipse.cdt.core.settings" name="Release">
    <externalSettings/>
    <extensions>
    <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
    <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
    <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
    <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
    <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
    </extensions>
    </storageModule>
    <storageModule moduleId="cdtBuildSystem" version="4.0.0">
    <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Release.1000764770" name="Release" parent="com.ti.ccstudio.buildDefinitions.TMS470.Release">
    <folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Release.1000764770." name="/" resourcePath="">
    <toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.ReleaseToolchain.2113576910" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.linkerRelease.1135261242">
    <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.125033820" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
    <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex R.TMS570LC43xx"/>
    <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=be32"/>
    <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
    <listOptionValue builtIn="false" value="CCS_MBS_VERSION=6.1.3"/>
    <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
    <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
    </option>
    <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.340616035" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="16.9.6.LTS" valueType="string"/>
    <targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.targetPlatformRelease.771049098" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.targetPlatformRelease"/>
    <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.builderRelease.463732214" keepEnvironmentInBuildfile="false" name="GNU Make" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.builderRelease"/>
    <tool id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.compilerRelease.135002164" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.compilerRelease">
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.CODE_STATE.1394748652" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.CODE_STATE" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.CODE_STATE.32" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.SILICON_VERSION.975887494" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.SILICON_VERSION" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.SILICON_VERSION.7R5" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.FLOAT_SUPPORT.55386089" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.FLOAT_SUPPORT" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.FLOAT_SUPPORT.VFPv3D16" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.ABI.572308636" name="Application binary interface. (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.ABI" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.ABI.eabi" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.ENUM_TYPE.1916219997" name="Designate enum type (--enum_type)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.ENUM_TYPE" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.ENUM_TYPE.packed" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.DIAG_WARNING.1657028565" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.DIAG_WARNING" useByScannerDiscovery="false" valueType="stringList">
    <listOptionValue builtIn="false" value="225"/>
    </option>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.DISPLAY_ERROR_NUMBER.1972466033" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.DISPLAY_ERROR_NUMBER" useByScannerDiscovery="false" value="true" valueType="boolean"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.DIAG_WRAP.1887464387" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.DIAG_WRAP" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.INCLUDE_PATH.1516054734" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compilerID.INCLUDE_PATH" valueType="includePath">
    <listOptionValue builtIn="false" value="${PROJECT_ROOT}"/>
    <listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/include"/>
    </option>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compiler.inputType__C_SRCS.1514617688" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compiler.inputType__C_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compiler.inputType__CPP_SRCS.362962286" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compiler.inputType__CPP_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compiler.inputType__ASM_SRCS.1332033172" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compiler.inputType__ASM_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compiler.inputType__ASM2_SRCS.647479304" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.compiler.inputType__ASM2_SRCS"/>
    </tool>
    <tool id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.linkerRelease.1135261242" name="ARM Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exe.linkerRelease">
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.ARM_BIG_ENDIAN_MODES.469912224" name="ARM big endian modes [See 'General' page to edit]" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.ARM_BIG_ENDIAN_MODES" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.ARM_BIG_ENDIAN_MODES.BE32" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.HEAP_SIZE.195722596" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.HEAP_SIZE" useByScannerDiscovery="false" value="0x800" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.STACK_SIZE.589173177" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.STACK_SIZE" useByScannerDiscovery="false" value="0x800" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.OUTPUT_FILE.15164461" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.OUTPUT_FILE" useByScannerDiscovery="false" value="${ProjName}.out" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.MAP_FILE.1063433666" name="Link information (map) listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.MAP_FILE" useByScannerDiscovery="false" value="${ProjName}.map" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.XML_LINK_INFO.225605210" name="Detailed link information data-base into &lt;file&gt; (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.XML_LINK_INFO" useByScannerDiscovery="false" value="${ProjName}_linkInfo.xml" valueType="string"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.DISPLAY_ERROR_NUMBER.637608152" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.DISPLAY_ERROR_NUMBER" useByScannerDiscovery="false" value="true" valueType="boolean"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.DIAG_WRAP.97941996" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.DIAG_WRAP" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.SEARCH_PATH.1421955770" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.SEARCH_PATH" valueType="libPaths">
    <listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/lib"/>
    <listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/include"/>
    </option>
    <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.LIBRARY.1067070259" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.linkerID.LIBRARY" useByScannerDiscovery="false" valueType="libs">
    <listOptionValue builtIn="false" value="libc.a"/>
    </option>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exeLinker.inputType__CMD_SRCS.1699723112" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exeLinker.inputType__CMD_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exeLinker.inputType__CMD2_SRCS.44612095" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exeLinker.inputType__CMD2_SRCS"/>
    <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exeLinker.inputType__GEN_CMDS.1601915258" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.exeLinker.inputType__GEN_CMDS"/>
    </tool>
    <tool id="com.ti.ccstudio.buildDefinitions.TMS470_16.9.hex.1515180454" name="ARM Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.9.hex"/>
    </toolChain>
    </folderInfo>
    </configuration>
    </storageModule>
    <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
    </cconfiguration>
    </storageModule>
    <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
    <storageModule moduleId="cdtBuildSystem" version="4.0.0">
    <project id="Test1.com.ti.ccstudio.buildDefinitions.TMS470.ProjectType.1399457240" name="TMS470" projectType="com.ti.ccstudio.buildDefinitions.TMS470.ProjectType"/>
    </storageModule>
    <storageModule moduleId="scannerConfiguration"/>
    <storageModule moduleId="org.eclipse.cdt.core.language.mapping">
    <project-mappings>
    <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
    <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
    <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
    <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
    <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
    </project-mappings>
    </storageModule>
    </cproject>

  • Jeffrey Smith89 said:
    My Company is having the same problem which we have recreated in a minimal build with a blank project

    I'd appreciate if you would zip that project up as described in the article Project Sharing, and attach that to your next post.

    Thanks and regards,

    -George

  • 6201.Test1.zip

    As suggested 

    Best regards 

    Jeff 

  • Thank you for sending in a project.  However, when I build it, I get the same errors discussed in your other thread.  I did not see this error ...

    Vincenzo Scianni54 said:
    <Linking>
    error: symbol "vsnprintf" redeclared with incompatible type:
       "int [ExplSign](unsigned char *, size_t, const unsigned char *, va_list)"
       in "vsnprintf.c" at line 71 and:
       "int [ExplSign](unsigned char *, size_t, const unsigned char *, va_list)"
       in
       "/home/gtbldadm/processor-sdk-rtos-morty-build/build-CORTEX_1/arago-tmp-exte
       rnal-linaro-toolchain/sysroots/x86_64-linux/usr/share/ti/ti-cgt-arm/include/
       stdio.h" at line 267)
    fatal error #10192: Failed linktime optimization

    This is a different problem.  Until I get a test case which allows me to reproduce it, nothing can be done.

    Thanks and regards,

    -George

  • I'd appreciate if you would submit a project which has the vsnprintf problem.  

    Thanks and regards,

    -George

  • Apologies - this is not my post and I moved my issue to a completely different one and will stop looking at this thread myself.

  • This reply is directed at Scianni Vincenzo, who wrote the first post.  Since it has been while, I presume you have resolved your problem.  I would appreciate hearing how you resolved it.

    Thanks and regards,

    -George

  • Hello Mr Mock.

    I apologize for delay I'm answering but I was very busy in the last weeks: the problem is yet present, finally I created a simple project reproducing it but I'm not able to attach anything because the link for attaching a file brings me in another page where there is no way to perform the attachment

  • After you click Reply, click on the link on the lower right labeled Insert Code, Attach Files and more ...  This brings up another message compose interface that has more features.  Use the paper clip icon to attach the file.  Note only a few file types of files are accepted, including .zip and .txt.  

    Thanks and regards,

    -George

  • LinkingProblemProj.7zLinkerProblemProj.zip

    This is the effect (first format is 7z, the second one is zip)

    Best Regards,

    Scianni Vincenzo

  • Hello Mr. Mock.
    Sorry for my previous message but what was shown in the page was completely misleading me: now I'm realizing that the attachment is working. So let me explain that in zip file you will find the project and a folder "utility" containing some configuration files coming from examples in VPS folder from TI's SDK: I customized a little but the structure is the same.
    Thank you and best regards,
    Scianni Vincenzo
  • Hello Vincenzo,

    Thank you for the project test case. However, I am unable to build it. I believe there are several dependencies for this project which I need to resolve. Your project relies on a device variant that is unrecognized: Cortex M.AM5728.AM572X_PHYCORE_RDK. I don't recognize this variant either. I assume it is some custom one and you installed some device package in your CCS installation to gain support for it. Where can I get this device package? I believe there are other dependencies. If you can clearly list all these dependencies (BIOS, SDK?), it would be very helpful for us.

    Thanks

    ki

  • Hello Ki.

    Sorry I missed some explanations but I don't think they will explain the problem because I prepared another version without dependence from AM572X_PHYCORE_RDK and I have the same issue.

    In any case let me clarify: currently I'm working with phycoreAM572x that is a SOM based on AM5728. In December Phytec released a TI-RTOS SDK and I used immediately to avoid potential problems coming from different pinmux configuration: for the rest it's the same product and this is true because until December I used a modified version of TI's evmAm572x SDK. And, in any case, Phytec SDK that you can find here :  is based on ti-processor-sdk-rtos-am57xx-evm-04.01.00.06 so it's hard for me to understand why the previous versions of the compiler are working without any problems and version 18.0.1 has problems in release mode with optimizations enabled. I attached another version of the project reproducing the same problem even if I removed the dependence from AM572X_PHYCORE_RDK.

    LinkingProblemProj180313.zip

    Thank you and best regards,

    Scianni Vincenzo.

  • Hello,
    That last project attached still has a dependency to AM572X_PHYCORE_RDK. The device variant is set to it. I likely need to install some device support package to CCS to get support for it. I installed BSP-RTOS-TI-AM57x-PD17.1.0 but it did not resolve the issue.

    If you could provide a simple test case without any dependencies to AM572X_PHYCORE_RDK, that can be built out of the box with a standard AM5728 variant, that would be most helpful.

    Thanks
    ki
  • I'd appreciate if we could get this test case ...

    Ki-Soo Lee said:
    a simple test case without any dependencies to AM572X_PHYCORE_RDK

    Thanks and regards,

    -George

  • Hello

    Sorry again for delay but I'm very busy in this period: I created a new project for evmAM572x and I added a custom platform I'm using to be able to link with bspCommonBIOS_m4-cfg: the linking problem arises as soon as you try to compile in Release mode with the latest version of ARM compiler (ver 18.1.1 LTS but the problem was present in the previous version too 18.1.0). As already stated, the problem is not present in version 17.x.x  of the compiler.

    LinkProblem.zip

    Best Regards,

    Scianni Vincenzo