Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10379

Project build linker error when building programs that are linked/added to the project and also reside in a path with whitespaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium

      A linker linker error when building libraries that are linked/added to the project that reside is a path with whitespaces.

      For example:

      Building target: "empty_MSP_EXP432P4111_tirtos_ccs.out"
      Invoking: ARM Linker
      "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-arm_20.2.4.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --advice:power=none -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on -z -m"empty_MSP_EXP432P4111_tirtos_ccs.map" -i"C:/ti/simplelink_msp432p4_sdk_3_40_01_02/source" -i"C:/ti/simplelink_msp432p4_sdk_3_40_01_02/kernel/tirtos/packages" -i"C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-arm_20.2.4.LTS/lib" --diag_wrap=off --display_error_number --warn_sections --xml_link_info="empty_MSP_EXP432P4111_tirtos_ccs_linkInfo.xml" --rom_model -o "empty_MSP_EXP432P4111_tirtos_ccs.out" "./empty.obj" "./syscfg/ti_drivers_config.obj" "./main_tirtos.obj" "./src/test_source.obj" "../MSP_EXP432P4111_TIRTOS.cmd" "C:/Users/xxxxxxx/Desktop/Folder Space/src/Libs/IQmathLib_CCS_MSP432.lib" "C:/Users/xxxxxxx/Desktop/Folder Space/src/Libs/QmathLib_CCS_MSP432.lib" -l"ti/display/lib/display.aem4f" -l"ti/grlib/lib/ccs/m4f/grlib.a" -l"third_party/spiffs/lib/ccs/m4f/spiffs.a" -l"ti/drivers/lib/drivers_msp432p4x1xi.aem4f" -l"third_party/fatfs/lib/ccs/m4f/fatfs.a" -l"ti/dpl/lib/dpl_msp432p4x1xi.aem4f" -l"C:/Users/xxxxxxx/Desktop/Folder Space/tirtos_builds_MSP_EXP432P4111_release_ccs/Debug/configPkg/linker.cmd" -l"ti/devices/msp432p4xx/driverlib/ccs/msp432p4xx_driverlib.lib" -llibc.a C:/Users/xxxxxxx/Desktop/Folder\ Space/src/Libs/IQmathLib.a C:/Users/xxxxxxx/Desktop/Folder\ Space/src/Libs/QmathLib.a
      <Linking>
      "C:\\Users\\xxxxxxx\\AppData\\Local\\Temp

      {0C4E3BC4-FF43-405D-B7AF-3FF9E78B4716}", line 38: error #10008-D: cannot find file "C:/Users/xxxxxxx/Desktop/Folder\
      "
      "C:\\Users\\xxxxxxx\\AppData\\Local\\Temp
      {0C4E3BC4-FF43-405D-B7AF-3FF9E78B4716}

      ", line 39: error #10008-D: cannot find file "Space/src/Libs/IQmathLib.a"
      "C:\\Users\\xxxxxxx\\AppData\\Local\\Temp

      {0C4E3BC4-FF43-405D-B7AF-3FF9E78B4716}", line 40: error #10008-D: cannot find file "C:/Users/xxxxxxx/Desktop/Folder\
      "
      "C:\\Users\\xxxxxxx\\AppData\\Local\\Temp
      {0C4E3BC4-FF43-405D-B7AF-3FF9E78B4716}

      ", line 41: error #10008-D: cannot find file "Space/src/Libs/QmathLib.a"
      error #10010: errors encountered during linking; "empty_MSP_EXP432P4111_tirtos_ccs.out" not built

      >> Compilation failure
      makefile:160: recipe for target 'empty_MSP_EXP432P4111_tirtos_ccs.out' failed
      gmake[1]: *** [empty_MSP_EXP432P4111_tirtos_ccs.out] Error 1
      makefile:153: recipe for target 'all' failed
      gmake: *** [all] Error 2

            • Build Finished ****

      In the errors above, the libraries in question are in a directory:
      C:\Users\xxxxxxx\Desktop\Folder Space\src\Libs

      The path is passed to the Linker as:
      C:/Users/xxxxxxx/Desktop/Folder\ Space/src/Libs

      Note the '\' character added after "Folder" and before "Space", likely an escape character.

      Instead, the path likely just needs to be passed in quotes, without the escape character

      Note that this issue only affects linking. There are no issue compiling source files in the same directory.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: