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.

no input section linked in with CCS 5.5, MATHLIB & ELF

Other Parts Discussed in Thread: MATHLIB

I followed the instructions of SLAU499 to add mathlib feature into project, but get linked error : "no input section linked in".  And this wiki post don't solved my  problems. http://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/10198.

Tool : CCS v5.5, Compiler 4.2.1

Output format :  ELF

Run time Library : Automatic

Target : MSP430F5529

The purpose to add mathlib is for sin, cos, atan2 ... floating calculation, hope there are answers for it...

  • Could you please copy and paste the full output in the CCS build console (when you build the project) to a text file and attach it here? That should help identify why the error is occuring.

  • Based on MATLAB R2013A and the latest version of CCS5.5 model design platform - SXD28335B

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/304404.aspx

  • Please help to check the build report...

    **** Build of configuration Debug for project HID Sensor Fusion_Float ****
    
    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all 
    'Building target: HID Sensor Fusion.out'
    'Invoking: MSP430 Linker'
    "C:/ti/ccsv5/tools/compiler/msp430_4.2.1/bin/cl430" -vmspx --abi=eabi --code_model=small --data_model=small -O0 -g --define=__MSP430F5529__ --diag_warning=225 --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=full -z -m"HID Sensor Fusion.map" --heap_size=160 --stack_size=160 --use_hw_mpy=F5 -i"C:/ti/ccsv5/ccs_base/msp430/include" -i"C:/ti/ccsv5/tools/compiler/msp430_4.2.1/lib" -i"C:/ti/ccsv5/tools/compiler/msp430_4.2.1/include" -i"C:/ti/ccsv5/ccs_base/msp430/lib" --reread_libs --warn_sections --xml_link_info="HID Sensor Fusion_linkInfo.xml" --rom_model -o "HID Sensor Fusion.out"  "./DCM_Algorithm/Vector.obj" "./DCM_Algorithm/Matrix.obj" "./DCM_Algorithm/DCM.obj" "./F5xx_F6xx_Core_Lib/HAL_UCS.obj" "./F5xx_F6xx_Core_Lib/HAL_TLV.obj" "./F5xx_F6xx_Core_Lib/HAL_PMM.obj" "./F5xx_F6xx_Core_Lib/HAL_PMAP.obj" "./F5xx_F6xx_Core_Lib/HAL_FLASH.obj" "./MSP-EXP430F5529_HAL/HAL_Wheel.obj" "./MSP-EXP430F5529_HAL/HAL_Dogs102x6.obj" "./MSP-EXP430F5529_HAL/HAL_Buttons.obj" "./MSP-EXP430F5529_HAL/HAL_Board.obj" "./USB_API/USB_CDC_API/UsbCdc.obj" "./USB_API/USB_Common/usb.obj" "./USB_API/USB_Common/dma.obj" "./USB_API/USB_HID_API/UsbHidReq.obj" "./USB_API/USB_HID_API/UsbHid.obj" "./USB_API/USB_MSC_API/UsbMscStateMachine.obj" "./USB_API/USB_MSC_API/UsbMscScsi.obj" "./USB_API/USB_MSC_API/UsbMscReq.obj" "./USB_API/USB_PHDC_API/UsbPHDC.obj" "./USB_config/descriptors.obj" "./USB_config/UsbIsr.obj" "./sensorlib/vector.obj" "./sensorlib/comp_dcm.obj" "./sensorlib/HAL_Cma3000.obj" "./usbEventHandling.obj" "./usbConstructs.obj" "./main.obj" "../MSPMATHLIB_CCS_msp430_small_code_small_data.lib" "../lnk_msp430f5529.cmd" "../msp430USB.cmd" -l"libmath.a" -l"libc.a" 
    warning: automatic library build: using library
    <Linking>
       "C:\ti\ccsv5\tools\compiler\msp430_4.2.1\lib\rts430x_sc_sd_eabi.lib" for the
       first time, so it must be built.  This may take a few minutes.
          1 [main] sh 5524 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  Please report this problem to
    the public mailing list cygwin@cygwin.com
    cygwin warning:
      MS-DOS style path detected: C:\SyncFolder\Platform\MSP430\CCS\HID Sensor Fusion_Float\Debug
      Preferred POSIX equivalent is: /cygdrive/c/SyncFolder/Platform/MSP430/CCS/HID Sensor Fusion_Float/Debug
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
          1 [main] sh 9044 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  Please report this problem to
    the public mailing list cygwin@cygwin.com
    cygwin warning:
      MS-DOS style path detected: C:\SyncFolder\Platform\MSP430\CCS\HID Sensor Fusion_Float\Debug
      Preferred POSIX equivalent is: /cygdrive/c/SyncFolder/Platform/MSP430/CCS/HID Sensor Fusion_Float/Debug
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
          0 [main] sh 1208 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  Please report this problem to
    the public mailing list cygwin@cygwin.com
    cygwin warning:
      MS-DOS style path detected: C:\SyncFolder\Platform\MSP430\CCS\HID Sensor Fusion_Float\Debug
      Preferred POSIX equivalent is: /cygdrive/c/SyncFolder/Platform/MSP430/CCS/HID Sensor Fusion_Float/Debug
      CYGWIN environment variable option "nodosfilewarning" turns off this warning.
      Consult the user's guide for more details about POSIX paths:
        http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
      -->  error: '*.obj
    ' not found
    gmake.exe[1]: *** [library] Error 1
    >> ERROR: mklib: gmake error during rts430x_sc_sd_eabi.lib build
    warning: automatic RTS selection:  resolving index library "libc.a" to
       "C:\ti\ccsv5\tools\compiler\msp430_4.2.1\lib\rts430x_sc_sd_eabi.lib", but
       "C:\ti\ccsv5\tools\compiler\msp430_4.2.1\lib\rts430x_sc_sd_eabi.lib" was not
       found
    error: no input section is linked in
    warning: entry-point symbol "_c_int00" undefined
    warning: no suitable entry-point found; setting to 0
    error: errors encountered during linking; "HID Sensor Fusion.out" not built
    
    >> Compilation failure
    gmake: *** [HID Sensor Fusion.out] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

  • The link step fails because the library build step prior to it failed, as a result of which the library was not found by the linker, and things went downhill from there.

    We have seen these types of errors with other users that have cygwin tools (other than the one that comes with CCS) installed and in their system PATH. If you do a search in these forums (CCS and Compiler forums), you will find a few other posts with a similar error.

    Please see this wiki link:
    http://processors.wiki.ti.com/index.php/Mklib#MKS_or_Cygwin_tools_in_your_path
    The suggestion is to remove all Cygwin paths from your system PATH before performing the build.

  • How to remove the Cygwin PATH in system PATH? can't find the related location to modify?