[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 Created: 04/Jun/21  Updated: 11/Jun/21

Status: Accepted
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: TI User Assignee: TI User
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: Code Composer Studio IDE
Internal ID: CCSIDE-4017
Forum URL: https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1006874/codecomposer-error-linking-libraries-in-linked-folder-with-spaces-in-path
Found In Release: CCS_10.3.0
Affected Platform/Device: Generic

 Description   

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.


Generated at Tue Apr 01 13:26:22 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.