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.

Cannot build with CCS running on Linux

Other Parts Discussed in Thread: CCSTUDIO, MATHLIB, MSP430WARE, TMS320C6678

I am following the instructions from the example for the BIOS MCSDK user guide (http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_User_Guide#Example_3_-_Running_from_external_memory_.28DDR.29).

I can successfully build the project when CCS is run from Windows by right clicking on the project name, and selecting “Build Project”. When I try the same from the Linux version of CCS, the build console shows the following:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 /opt/ti/ccsv5/utils/bin/gmake -k all

 

/opt/ti/ccsv5/utils/bin/gmake -k all

Cannot run program "/opt/ti/ccsv5/utils/bin/gmake": Unknown reason

 

Error: Program "/opt/ti/ccsv5/utils/bin/gmake" not found in PATH

PATH=[/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games]

 

Error: Program "/opt/ti/ccsv5/utils/bin/gmake" is not found in PATH

 

PATH=[/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games]

 

**** Build Finished ****

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I verified that /opt/ti/ccsv5/utils/bin/gmake actually exists, and it does.

It should be noted that in step 5, when adding to the "Project->Properties->Build->C6000 linker->File Search Path" window in the Linux CCS, I used both "${TI_PDK_C6678_INSTALL_DIR}/packages/ti/platform/evmc6678l/platform_lib/lib/debug" and "/opt/ti/pdk_C6678_1_1_2_6/packages/ti/platform/evmc6678l/platform_lib/lib/debug". Neither of these work.

In the Windows CCS, I use "${TI_PDK_C6678_INSTALL_DIR}/packages/ti/platform/evmc6678l/platform_lib/lib/debug" in the "File search path". The project build succeeds.

It should also be noted that if I use "/opt/ti/ccsv5/eclipse/eclipse -noSplash -data /home/evertz/workspace_v5_3/ -application com.ti.ccstudio.apps.projectBuild -ccs.projects led_play_ddr3 -ccs.configuration Debug" from the command line, with "/opt/ti/..." in the "File search path", I get the following:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CCS headless build starting... [Thu Jun 13 13:56:34 EDT 2013]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

================================================================================
Pre processing...


================================================================================
Building...


**** Build of configuration Debug for project led_play_ddr3 ****

/opt/ti/ccsv5/utils/bin/gmake -k all
Building file: ../led_play_ddr3.cfg
Invoking: XDCtools
"/opt/ti/xdctools_3_24_05_48/xs" --xdcpath="/opt/ti/ccsv5/ccs_base;/opt/ti/bios_6_34_02_18/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r debug -c "/opt/ti/ccsv5/tools/compiler/c6000_7.4.1" "../led_play_ddr3.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring led_play_ddr3.xe66 from package/cfg/led_play_ddr3_pe66.cfg ...
Killed
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I am using the following Linux distro: Ubuntu 10.04LTS. According to http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_Getting_Started_Guide#Run_the_Installer_.26_Provide_the_installation_path, Ubuntu Linux is supported.

  • Tam,

    What is your CCS version? My CCS is 5.4 on Ubuntu 10.4 OS, I tried to install MCSDK 2.1.2.6 and have trouble to register the PDK package with CCS due to a known issue: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/268472/939376.aspx. So I can't reproduce your issue at this moment.

    I want to understand

    Cannot run program "/opt/ti/ccsv5/utils/bin/gmake": Unknown reason

    is a generic issue or particular to this LED project? Say, if you open an empty CCS project with a simple print "hello world" in main(), can you build or not?

    Regards, Eric

     

  • Linux CCS version is 5.3.0.00090.

    I noticed that when I right click the project, select "Show Build Settings...", then go to "General", and select the "RTSC" tab on both the Linux and Windows CCS, there are a lot less options in the "Products and Repositories" tab in the Linux version. Missing from the Linux CCS are: DSPLIB C66x, EDMA3 Low Level Driver, Grace (MSP430), IMGLIB C66x, MATHLIB C66x, MCSDK, MCSDK PDK TSM320C6657, MCSDK PDK TSM320C6670, MCSDK PDK TSM320C6678, MSP430ware, NDK, Open Event Machine, and OpenMP BIOS runtime library.

    I noticed that to get the Windows CCS build to work, I need to select MCSDK PDK TMS320C6678, SYS/BIOS 6.34.2.18, and Other Repositories - ${TARGET_CONTENT_BASE}. If I deselect MCSDK PDK TMS320C6678, and build the project from CCS, I get the following

    ----------------------------------------------------------------------------------------------------------------


    **** Build of configuration Debug for project led_play_ddr3 ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: ../led_play_ddr3.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_24_05_48/xs" --xdcpath="C:/ti/bios_6_34_02_18/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r debug -c "C:/ti/ccsv5/tools/compiler/c6000_7.4.1" "../led_play_ddr3.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring led_play_ddr3.xe66 from package/cfg/led_play_ddr3_pe66.cfg ...
    cle66 package/cfg/led_play_ddr3_pe66.c ...
    'Finished building: ../led_play_ddr3.cfg'
    ' '
    'Building file: ../main.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="./configPkg/compiler.opt"  "../main.c"
    "../main.c", line 17: fatal error #5: could not open source file "ti/platform/platform.h"

    >> Compilation failure
    1 fatal error detected in the compilation of "../main.c".
    Compilation terminated.
    gmake: *** [main.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    ----------------------------------------------------------------------------------------------------------------

    Running

    c:\ti\ccsv5\eclipse\eclipsec -noSplash -data "C:\ccs_workspace_v5_3" -application com.ti.ccstudio.apps.projectBuild -ccs.projects led_play_ddr3 -ccs.configuration Debug

    from a DOS box gives the following output:

    ----------------------------------------------------------------------------------------------------------------


    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    CCS headless build starting... [Thu Jun 13 15:52:56 EDT 2013]
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    ================================================================================

    Pre processing...


    ================================================================================

    Building...


    **** Build of configuration Debug for project led_play_ddr3 ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: ../led_play_ddr3.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_24_05_48/xs" --xdcpath="C:/ti/bios_6_34_02_18/packages;C:/ti/c
    csv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.pla
    tforms.evm6678 -r debug -c "C:/ti/ccsv5/tools/compiler/c6000_7.4.1" "../led_play
    _ddr3.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is
    older than package.xdc) ...
    configuring led_play_ddr3.xe66 from package/cfg/led_play_ddr3_pe66.cfg ...
    cle66 package/cfg/led_play_ddr3_pe66.c ...
    'Finished building: ../led_play_ddr3.cfg'
    ' '
    'Building file: ../main.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6600 --abi=eabi -g --includ
    e_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --display_error_number -
    -diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp" --cmd_fi
    le="./configPkg/compiler.opt"  "../main.c"
    "../main.c", line 17: fatal error #5: could not open source file "ti/platform/pl
    atform.h"

    >> Compilation failure
    1 fatal error detected in the compilation of "../main.c".
    Compilation terminated.
    gmake: *** [main.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****


    ================================================================================

    CCS headless build complete!

    ----------------------------------------------------------------------------------------------------------------

  • I also noticed in Linux, that after I ran "/opt/ti/ccsv5/eclipse/eclipse -noSplash -data /home/evertz/workspace_v5_3/ -application com.ti.ccstudio.apps.projectBuild -ccs.projects led_play_ddr3 -ccs.configuration Debug", if I try to build the project from CCS by right clicking on the project, and selecting "Build Project", the "gmake" error does not appear. Instead, I get the following on the console:

    ---------------------------------------------------------------------------------------------------------------------


    **** Build of configuration Debug for project *** ****

    /opt/ti/ccsv5/utils/bin/gmake -k all
    Building file: ../main.c
    Invoking: C6000 Compiler
    "/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6600 --abi=eabi -g --include_path="/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="./configPkg/compiler.opt"  "../main.c"
    "../main.c", line 17: fatal error #5: could not open source file "ti/platform/platform.h"

    >> Compilation failure
    1 fatal error detected in the compilation of "../main.c".
    Compilation terminated.
    gmake: *** [main.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    ---------------------------------------------------------------------------------------------------------------------

    From Linux CCS again, if I delete the "Debug" directory from CCS (right click "Debug", select "Delete"), and build from CCS again, CCS crashes.

    If I restart Linux CCS, and try to build, CCS will crash.

  • Geoffrey,

    Did you install MCSDK 2.1.2.6 in your Linux PC? If yes, why they didn't show up in the discovred RTSC packages? In your CCS window--->preference--->Code Composer Studio--->RTSC--->Products---->Tool Discovery Path, can you add the correct path for your MCSDK installation? So when you re-start CCS next time, it will find out MCSDK and PDK packages.

    Also, please let me know if you can build "hello world" in Linux?

    Regards, Eric

     

  • In CCS window--->preference--->Code Composer Studio--->RTSC--->Products---->Tool Discovery Path, I have added both /opt/ti/mcsdk_2_01_02_06 and /opt/ti/pdk_C6678_1_1_2_6. The PDK does not show up in the Discovered tools window.

    /opt/ti/pdk_C6678_1_1_2_6 was previously created by installation.

    I will get back to you on the "hello world"

  • From Linux CCS:
    - File -> New -> CCS Project
    - Set project name to hello_world, output type = executable, use default location = selected, family = C6000, Variant = generic C66xx device, project templates and examples = empty project (with main.c)
    - Right click hello_world, select "Build Project"
    - Console output is:
    ----------------------------------------------------------------------------------------------

    **** Build of configuration Debug for project hello_world ****

    /opt/ti/ccsv5/utils/bin/gmake -k all
    Building file: ../main.c
    Invoking: C6000 Compiler
    "/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6600 --abi=eabi -g --include_path="/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
    Finished building: ../main.c
     
    Building target: hello_world.out
    Invoking: C6000 Linker
    "/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6600 --abi=eabi -g --display_error_number --diag_warning=225 --diag_wrap=off -z -m"hello_world.map" -i"/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/lib" -i"/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --rom_model -o "hello_world.out"  "./main.obj" -l"libc.a"
    <Linking>
    warning #10210-D: creating ".stack" section with default size of 0x400; use the -stack option to change the default size
    Finished building target: hello_world.out
     

    **** Build Finished ****
    ----------------------------------------------------------------------------------------------

    ~/workspace_v5_3/hello_world/Debug/hello_world.out has been created.

    So, it looks like I can build a simple empty application.

  • Geoffrey,

    Thanks for trying the hello world and I uninstalled CCS 5.4.0 and re-installed CCS 5.3.0, then installed MCSDK 2.1.2.6, however MCSDK/PDK was not discovered by my CCS (same as your problem). I will look CCS team for some help before going back to your issue.

    Regards, Eric

  • Does CCS 5.4.0 have this issue? If not, it might be simpler if I just upgrade to CCS 5.4.0. Where can I download a copy?

  • Geoffrey,

    No, I metioned there was a known issue for CCS 5.4 + mcsdk 2.1.2.6 on Linux  http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/268472/939376.aspx. What is your development plan? Can you using the windows enviornment?

    Regards, Eric

  • I am trying to create a build server for my TMS320C6678 software. I am going to use this to make sure that anything under version control can at least compile, and also to do software releases.

    The build server runs on Ubuntu Linux, so I would need CCS to run properly on Linux to achieve this.

    I can do development on Windows, but the final release will need to be built on Linux.

  • Geoffrey,

    I checked with CCS team about the issue that can't add MCSDK/PDK to CCS 5.3 in Linux machine, they believe this needs to be fixed in the next MCSDK release. http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/272265/951907.aspx#951907

    This may take time. I suggest you work on CCS/MCSDK/your project on Windows enviornment for now. Then move to Linux server when fix is ready.

    Regards, Eric 

  • It has been about 9 months since this problem was reported. Has it been fixed yet?

    It should also be noted that the following RTSC tools cannot be discovered by CCS v5.3:

    ctoolslib_1_0_0_2

    dsplib_c64Px_3_2_0_1

    dsplib_c66x_3_1_0_0

    edma3_lld_02_11_05_02

    grace_2_00_01_65

    imglib_c66x_3_1_1_0

    mathlib_c66x_3_0_1_1

    mcsdk_2_01_02_06

    pdk_C6657_1_1_2_6

    pdk_C6670_1_1_2_6

    pdk_C6678_1_1_2_6

    msp430ware_1_25_00_30

    ndk_2_21_02_43

    ndk_2_21_01_38

    openem_1_0_0_2

    omp_1_01_03_02