Tool/software: TI C/C++ Compiler
Hi,
I am building the executable outside Code Composer Studio. I am trying to use the dependency option (preproc_dependency or preproc_includes) of compiler to build the executable. Some of the files which I am referring is in the path with spaces (C:/Users/apadmana/AppData/Local/Temp/24664/ml_qQqq/w s/matlab/toolbox/target/supportpackages/tic2000/src/c28004xBoard_Realtime_Support.c). In the make file (C28x_Build.mk) I use transformed path for the same (C:/Users/apadmana/AppData/Local/Temp/24664/ml_qQqq/WS6813~1/matlab/toolbox/target/supportpackages/tic2000/src/c28004xBoard_Realtime_Support.c).
- preproc_dependency option - The build process successfully creates the executable without any issues for the first build. But if I try to build the executable again it will fail with error message "gmake: *** No rule to make target `C:/Users/apadmana/AppData/Local/Temp/24664/ml_qQqq/w', needed by `c28004xBoard_Realtime_Support.obj'. Stop.". When I investigate further I find out that the dependency file created consists of .c file with the full path with spaces and all the related .h file with transformed pathwhich I am providing in the make file. Please refer to the sample c28004xBoard_Realtime_Support.pp file attached along with make file.
- Why does the dependency file created is taking the full path with spaces for only .c file when we provide transformed path in the make file? (The .h file is still using transformed path in dependency file)
- Why compiler does not add any escape sequence required for the paths?
- preproc_includes option - The build process successfully creates the executable without any issues for the first build. But if I try to build the executable again it will fail with error message "MW_c28xx_board.pp:1: *** missing separator. Stop.". When I investigate further I find out that the dependency file created only all the related .h file with transformed path which I am providing in the make file but some issues with spacing and line endings which causes the build failure. Please refer to the sample MW_c28xx_board.pp file attached along with make file.
- Why the dependency file created has bad formatting that the gmake fails to recognize the line endings and the file generated has arbitrary spaces?
What is the solution for the above issues? I am not able to make use of dependency options to ensure the .obj files are properly generated and are updated based on updates for.c and .h files.
Compiler version used : ti-cgt-c2000_16.9.2.LTS
Thanks,
Aditya