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.

Makefile generation mistake on CCS for Mac

Other Parts Discussed in Thread: SYSBIOS, MSPWARE

Hi,

I am using CCS for Mac version 6.1.0.00030. I installed the latest TI-RTOS revision (tirtos_msp43x_2_12_00_24) using the App Center. And, I created an "Empty" TI-RTOS project based on the MSP430F5529LP with the default options selected.

When I tried to simply "Re-build" the project, I saw these errors:

cle430X /Applications/Texas-Instruments/tirtos_msp43x_2_12_00_24/products/bios_6_41_03_51/packages/ti/sysbios/BIOS.c ...
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file

Upon inspection, I checked out this file in the project directory: ./src/sysbios/makefile and saw this:

INCS = $(BIOS_INC) $(TARGET_INC) --include_path="/Applications/Texas-Instruments/ccsv6/ccs_base/msp430/include" --include_path="/Applications/Texas-Instruments/ccsv6/tools/compiler/ti-cgt-msp430_4.4.3/include" --include_path="/Applications/Texas-Instruments/tirtos_msp43x_2_12_00_24/products/MSPWare_2_00_00_40a/driverlib/MSP430F5xx_6xx" -Instruments/ccsv6/ccs_base/msp430/include" -Instruments/ccsv6/tools/compiler/ti-cgt-msp430_4.4.3/include" -Instruments/tirtos_msp43x_2_12_00_24/products/MSPWare_2_00_00_40a/driverlib/MSP430F5xx_6xx"

The problem is -Instruments/ccsv6/ccs_base/msp430/include" -Instruments/ccsv6/tools/compiler/ti-cgt-msp430_4.4.3/include" -Instruments/tirtos_msp43x_2_12_00_24/products/MSPWare_2_00_00_40a/driverlib/MSP430F5xx_6xx"

Please note that the "/Applications/Texas-I" part has been truncated in these options!

  • Anup,

    I can reproduce this error and will file a bug to have this fixed for a future release.

    In the meantime, you can workaround it by editing the variable COMPILER_FLAGS that is passed to xdctools as additional compiler options. You can see where this is being passed by going to Project Properties->Build->XDCtools->Advanced Options.

    To edit the variable go to Project Properties->Build->Variables tab, check the box for "Show system variables". Double-click on the variable COMPILER_FLAGS to edit it and for each of the include paths, remove the "\" at the beginning and end of each path. Then rebuild your project. Let us know if this helps you get a successful build.

  • Hi Aarti,

    I can verify that this translates into a successful build! Thanks for the quick help.

    But, I'd like to mention that the INCS string created is still invalid because this is what it dumps:
    INCS = $(BIOS_INC) $(TARGET_INC) --include_path=/Applications/Texas-Instruments/ccsv6/ccs_base/msp430/include --include_path=/Applications/Texas-Instruments/ccsv6/tools/compiler/ti-cgt-msp430_4.4.3/include --include_path=/Applications/Texas-Instruments/tirtos_msp43x_2_12_00_24/products/MSPWare_2_00_00_40a/driverlib/MSP430F5xx_6xx -Instruments/ccsv6/ccs_base/msp430/include -Instruments/ccsv6/tools/compiler/ti-cgt-msp430_4.4.3/include -Instruments/tirtos_msp43x_2_12_00_24/products/MSPWare_2_00_00_40a/driverlib/MSP430F5xx_6xx

    Please notice that every path is repeated twice, once with "--include_path=" and another time as "-I", and the "-I" part is a wrong path. But, since the "--include_path" takes care of the dependencies, and the "-I" part despite the path not existing, is syntactically correct, so it happens to work!

    But, this is definitely still buggy!