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.

CCS/LAUNCHXL-CC2640R2: Compilation Errors on Windows 10.

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi,

     I'm having difficulties getting Code Composer Studio 7 to compile _apps with my Windows 10 machine.   It works perfectly on my Windows 7 machine.  I've uninstalled several times and cleared the workspaces.  I even went so far as to uninstall it completely from the windows 7 machine and use the Problems Steps Recorder during reinstallation through a sample project build, and then followed the steps on the Win10 machine to make sure I wasn't missing anything.  The issue persists for all _app projects I've tried to compile in the example BLE_Simple, and BLE5_Simple.)

Any idea what is set up incorrectly and how to fix it?  I noticed similar complaints in the forums from Windows 10 users.

What information can I provide to you that will help you to diagnose the problem?

Thanks,

Mark

  • Hi Mark,

    Mark Hughes said:
     I'm having difficulties getting Code Composer Studio 7 to compile _apps with my Windows 10 machine.

    What exactly are some of the issues you see? Please provide full build error messages, etc

    Mark Hughes said:
    I noticed similar complaints in the forums from Windows 10 users.

    Can you provide some links to these other similar complaints?

    Thanks

    ki

  • Hi Ki,
    Unfortunately, the errors are not consistent. On the most recent build: This is the error log (ble5_host_test_cc2640r2lp_app)


    Description Resource Path Location Type
    gmake: *** [build-1184239105] Error 2 ble5_host_test_cc2640r2lp_app C/C++ Problem
    gmake: *** [C:/Users/mjhughes/workspace_v7/ble5_host_test_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2 ble5_host_test_cc2640r2lp_app C/C++ Problem
    gmake: Target 'all' not remade because of errors. ble5_host_test_cc2640r2lp_app C/C++ Problem
    gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.c' ble5_host_test_cc2640r2lp_app C/C++ Problem
    gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.h' ble5_host_test_cc2640r2lp_app C/C++ Problem
    gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Error 1 ble5_host_test_cc2640r2lp_app C/C++ Problem
    gmake.exe: *** Deleting file `package/cfg/app_ble_pem3.xdl' ble5_host_test_cc2640r2lp_app C/C++ Problem
    gmake[1]: *** [build-1184239105-inproc] Error 1 ble5_host_test_cc2640r2lp_app C/C++ Problem
    gmake[1]: *** [rom_sysbios.obj] Error 128 ble5_host_test_cc2640r2lp_app C/C++ Problem
    xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: app_ble.cfg /ble5_host_test_cc2640r2lp_app/TOOLS C/C++ Problem

    I'm going to research the other links now -- I didn't provide them because they didn't seem to offer any solution.  I'll get back to you shortly.

    Here's one example:  

    Let me know what other information I can provide regarding the error

  • Okay -- so I went for something of a scorched Earth approach and started removing unused software on my machine and the thought struck me -- perhaps there are some competing compilers. So I used which (http://ftp.gnu.org/gnu/which/) to find two other compilers in the system path (make.exe and gmake.exe.) I changed the filenames from *.exe to *.bak, deleted the workspace, and re-imported the examples. Compiled, and flashed to the board. It worked. Good news!

    But that still leaves the question of what happened. If I had to guess, I'd say CCS might have been invoking the wrong compiler instead of / alongside the one in XDCTools. Perhaps that is why I was getting different errors at compile. Also a possibility that one of the other programs I removed had something to do with it. Don't know. Hope it still works tomorrow.

    Thank you Ki for taking a look at my problem.

    Mark
  • Glad to hear it is working now!

    Mark Hughes said:
    If I had to guess, I'd say CCS might have been invoking the wrong compiler instead of / alongside the one in XDCTools.

    This is very likely it. There is other known issues with having gmake from other programs on the path and CCS picking up the wrong one. It happens a lot with users who have cygwin installed.

    Thanks for the update

    ki