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.
Part Number: CCSTUDIO-MSP
Tool/software: TI C/C++ Compiler
Hi team,
I use CCS, the Version: 9.3.0.00012 buile MSP430FR2355 project, report below error, could you help on this, thank you.
>> Compilation failure
Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3/subdir_rules.mk:23: recipe for target 'Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3/DualRaySmokeAFE_HAL_IO_FR235x_SACL3.obj' failed
Command-line error #1965: cannot open preprocessing output file "Src\DualRaySmokeAFE_HAL\MSP430FR235x_SACL3\training Mass Building DualRaySmokeAFE_HAL_IO_FR235x_SACL3.d_raw"
1 catastrophic error detected in the compilation of "C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3/DualRaySmokeAFE_HAL_IO_FR235x_SACL3.c".
Compilation terminated.
gmake: *** [Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3/DualRaySmokeAFE_HAL_IO_FR235x_SACL3.obj] Error 1
Building file: "C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3/DualRaySmokeAFE_HAL_Sounder_FR235x_SACL4.c"
Invoking: MSP430 Compiler
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_18.12.4.LTS/bin/cl430" -vmspx --use_hw_mpy=F5 --include_path="C:/ti/ccs930/ccs/ccs_base/msp430/include" --include_path="C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/CCS/DualRaySmokeDetector_MSP430FR235x" --include_path="C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/Src" --include_path="C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/Src/include" --include_path="C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/Src/DualRaySmokeAFE_GUI" --include_path="C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/Src/DualRaySmokeAFE_HAL" --include_path="C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3" --include_path="C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/Src/DualRaySmokeAFELib" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_18.12.4.LTS/include" --advice:power="all" --advice:hw_config="all" --define=__MSP430FR2355__ --define=__ENABLE_GUI__ --define=__AFE_SACL3__ --define=_FRWP_ENABLE --define=_INFO_FRWP_ENABLE -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3/training Mass Building DualRaySmokeAFE_HAL_Sounder_FR235x_SACL4.d_raw" --obj_directory="Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3" "C:/training files/Mass Market/Building Automation/MSP430FR2353/slaa930/slaa930/software/DualRayFR2355/src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3/DualRaySmokeAFE_HAL_Sounder_FR235x_SACL4.c"
I'd appreciate if you would provide a more complete view of the build of the entire project. In CCS, please right-click on the name of the project and select Rebuild Project. In the Console (not Problems) view, please use the Copy Build Log icon to capture the complete build log. When you name the file, be sure to use the file extension .txt. Then attach that text file to your next post.
Thanks and regards,
-George
Betty,
This is a strange issue that seems to be triggered by very specific criteria. I tried a few things to reproduce the error with simple projects but have not been able to so far. Could you send us a test case (if possible a cut-down version of the project) to reproduce the issue? That will greatly help us to identify the root cause.
Betty,
I haven't narrowed it down exactly but it looks like the error is triggered either by a long command line path or by whitespaces in the path. If I create a similar directory path to yours then I can recreate the error. If you move the slaa930 directory to a shorter path and avoid whitespaces (something like c:\building_automation\MSP430FR2353/slaa930) then it should build without errors.
Another odd thing I noticed is that some of the options that appear on the command line (like the ones below) are not shown as enabled in the GUI. They also do not appear in the .cproject file. That's quite strange and not clear how/why those options are picked up for the build. Perhaps it was caused by an underlying project migration issue.
--preproc_with_compile --preproc_dependency="Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3/DualRaySmokeAFE_HAL_AFE_FR235x_SACL3.d_raw" --obj_directory="Src/DualRaySmokeAFE_HAL/MSP430FR235x_SACL3"
In any case, could you give the workaround a try and let us know if that helps?