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.

Code Compiled but .out is missing

Hi All,

I use the attached code to for compiling in CCSV5 for DSPC8681E Card.

It compiled successfully.

I got the following logs -

==========================================================================================================================
**** Build of configuration DSPC8681E for project demo_evmc6678l ****

/home/ti/ti_audio/ccsv5/ccsv5/utils/gmake/gmake -k all
Building file: /home/ti/ti_audio/workspace/ipc/dsp/src/main.c
Invoking: C6000 Compiler
"/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/bin/cl6x" --cmd_file="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/demo.cmd"  -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/include" --include_path=/home/ti/ti_audio/xdctools_3_23_04_60/packages --include_path=/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc --include_path="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/../include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/main.pp" --obj_directory="src"  "/home/ti/ti_audio/workspace/ipc/dsp/src/main.c"
  --heap_size,-heap,--heap=size
                          Specify the maximum heap size for C/C++ dynamic
                           memory allocation.
Finished building: /home/ti/ti_audio/workspace/ipc/dsp/src/main.c
 
Building file: /home/ti/ti_audio/workspace/ipc/dsp/src/serial_printf.c
Invoking: C6000 Compiler
"/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/bin/cl6x" --cmd_file="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/demo.cmd"  -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/include" --include_path=/home/ti/ti_audio/xdctools_3_23_04_60/packages --include_path=/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc --include_path="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/../include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/serial_printf.pp" --obj_directory="src"  "/home/ti/ti_audio/workspace/ipc/dsp/src/serial_printf.c"
  --heap_size,-heap,--heap=size
                          Specify the maximum heap size for C/C++ dynamic
                           memory allocation.
Finished building: /home/ti/ti_audio/workspace/ipc/dsp/src/serial_printf.c
 
Building file: /home/ti/ti_audio/workspace/ipc/dsp/src/shared_mem_serial.c
Invoking: C6000 Compiler
"/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/bin/cl6x" --cmd_file="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/demo.cmd"  -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/include" --include_path=/home/ti/ti_audio/xdctools_3_23_04_60/packages --include_path=/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc --include_path="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/../include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/shared_mem_serial.pp" --obj_directory="src"  "/home/ti/ti_audio/workspace/ipc/dsp/src/shared_mem_serial.c"
  --heap_size,-heap,--heap=size
                          Specify the maximum heap size for C/C++ dynamic
                           memory allocation.
Finished building: /home/ti/ti_audio/workspace/ipc/dsp/src/shared_mem_serial.c
 
Building target: demo_evmc6678l.out
Invoking: C6000 Linker
"/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/bin/cl6x" --cmd_file="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/demo.cmd"  -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --diag_warning=225 --abi=eabi -z -m"demo_evmc6678l.map" --warn_sections -i"/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/lib" -i"/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/include" -i/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/csl/lib -i"/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform/dspc8681/platform_lib/lib/debug" -i"/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/csl/lib" --reread_libs --rom_model -o "demo_evmc6678l.out"  "./src/shared_mem_serial.obj" "./src/serial_printf.obj" "./src/main.obj" -l"ti.csl.intc.ae66" -l"ti.platform.dspc8681.lite.lib" -l"ti.csl.ae66" -l"libc.a" "../demo.cmd"
  --heap_size,-heap,--heap=size
                          Specify the maximum heap size for C/C++ dynamic
                           memory allocation.
Finished building target: demo_evmc6678l.out

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

But there is no .out file.

Can any one tell me what I missed in compiling it?

There is another problem.

If I made any changes in the main.c, even remove the main function, still the project compiles and the logs were similar to above.

Can any one tell why this is happen? What I have to do?

Regards,

Rohit
 

0020.ipc.zip

  • Dear Rohit,
    Let me try your code and update you.
  • Dear Rohit,

    I'm able to build your project and found demo_evmc6678l.out in the following location.

    \ipc\dsp\evmc6678l\DSPC8681E\demo_evmc6678l.out

    I've build your project in windows CCSv6.1.2

    1) Included the platform include location.

    2) Provided the windows platform library path

    3) Removed the demo.cmd file settings in (CCS properties -> C6000 Compiler -> Command files) and it will take demo.cmd file automatically, no need to mention any where.

    Uploaded your modified project here.

    1731.ipc.zip

    Log:

    **** Build of configuration DSPC8681E for project demo_evmc6678l ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all

    'Building file: C:/Users/10607926/Downloads/ipc/dsp/src/main.c'

    'Invoking: C6000 Compiler'

    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/platform" --include_path="/home/ti/ti_audio/xdctools_3_23_04_60/packages" --include_path="/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc" --include_path="C:/Users/10607926/Downloads/ipc/dsp/include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/main.pp" --obj_directory="src"  "C:/Users/10607926/Downloads/ipc/dsp/src/main.c"

    'Finished building: C:/Users/10607926/Downloads/ipc/dsp/src/main.c'

    ' '

    'Building file: C:/Users/10607926/Downloads/ipc/dsp/src/serial_printf.c'

    'Invoking: C6000 Compiler'

    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/platform" --include_path="/home/ti/ti_audio/xdctools_3_23_04_60/packages" --include_path="/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc" --include_path="C:/Users/10607926/Downloads/ipc/dsp/include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/serial_printf.pp" --obj_directory="src"  "C:/Users/10607926/Downloads/ipc/dsp/src/serial_printf.c"

    'Finished building: C:/Users/10607926/Downloads/ipc/dsp/src/serial_printf.c'

    ' '

    'Building file: C:/Users/10607926/Downloads/ipc/dsp/src/shared_mem_serial.c'

    'Invoking: C6000 Compiler'

    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages" --include_path="C:/ti/pdk_C6678_1_1_2_6/packages/ti/platform" --include_path="/home/ti/ti_audio/xdctools_3_23_04_60/packages" --include_path="/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc" --include_path="C:/Users/10607926/Downloads/ipc/dsp/include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/shared_mem_serial.pp" --obj_directory="src"  "C:/Users/10607926/Downloads/ipc/dsp/src/shared_mem_serial.c"

    'Finished building: C:/Users/10607926/Downloads/ipc/dsp/src/shared_mem_serial.c'

    ' '

    'Building target: demo_evmc6678l.out'

    'Invoking: C6000 Linker'

    "C:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --diag_warning=225 --abi=eabi -z -m"demo_evmc6678l.map" --warn_sections -i"C:/ti/ccsv6/tools/compiler/c6000_7.4.14/lib" -i"C:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" -i"/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/csl/lib" -i"C:/ti/pdk_C6678_1_1_2_6/packages/ti/csl/lib" -i"/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform/dspc8681/platform_lib/lib/debug" -i"/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/csl/lib" --reread_libs --xml_link_info="demo_evmc6678l_linkInfo.xml" --rom_model -o "demo_evmc6678l.out" "./src/main.obj" "./src/serial_printf.obj" "./src/shared_mem_serial.obj" "../demo.cmd"  -l"ti.csl.intc.ae66" -l"ti.csl.ae66" -l"libc.a"

    <Linking>

    'Finished building target: demo_evmc6678l.out'

    ' '

    **** Build Finished ****

  • Hi Stalin,

    I am using the Linux.

    You find the .out file after the compilation?
  • Hi Stalin,
    Thanks for help.
    Can you please tell me what did you mean by following two comments?

    1) Included the platform include location. : which platform include location you included?

    2) Provided the windows platform library path: which windows platform library path you provided?

  • 1) Included the platform include location. : which platform include location you included?
    2) Provided the windows platform library path: which windows platform library path you provided?

    These are I've modified to solve the build error for windows PC, you can ignore this.
    You can only remove the command file settings and rebuild your project and check the following location for the .out

    ~\ipc\dsp\evmc6678l\DSPC8681E\demo_evmc6678l.out
  • After removing the cmd setting I compiled it but given the following logs


    **** Build of configuration DSPC8681E for project demo_evmc6678l ****

    /home/ti/ti_audio/ccsv5/ccsv5/utils/gmake/gmake -k all
    Building file: /home/ti/ti_audio/workspace/ipc/dsp/src/main.c
    Invoking: C6000 Compiler
    "/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/include" --include_path=/home/ti/ti_audio/xdctools_3_23_04_60/packages --include_path=/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc --include_path="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/../include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/main.pp" --obj_directory="src" "/home/ti/ti_audio/workspace/ipc/dsp/src/main.c"
    Finished building: /home/ti/ti_audio/workspace/ipc/dsp/src/main.c

    Building file: /home/ti/ti_audio/workspace/ipc/dsp/src/serial_printf.c
    Invoking: C6000 Compiler
    "/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/include" --include_path=/home/ti/ti_audio/xdctools_3_23_04_60/packages --include_path=/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc --include_path="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/../include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/serial_printf.pp" --obj_directory="src" "/home/ti/ti_audio/workspace/ipc/dsp/src/serial_printf.c"
    Finished building: /home/ti/ti_audio/workspace/ipc/dsp/src/serial_printf.c

    Building file: /home/ti/ti_audio/workspace/ipc/dsp/src/shared_mem_serial.c
    Invoking: C6000 Compiler
    "/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --include_path="/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/include" --include_path=/home/ti/ti_audio/xdctools_3_23_04_60/packages --include_path=/home/ti/ti_audio/ti/sdo/codecs/g711adec/app/Inc --include_path="/home/ti/ti_audio/workspace/ipc/dsp/evmc6678l/../include" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages" --include_path="/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform" --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="src/shared_mem_serial.pp" --obj_directory="src" "/home/ti/ti_audio/workspace/ipc/dsp/src/shared_mem_serial.c"
    Finished building: /home/ti/ti_audio/workspace/ipc/dsp/src/shared_mem_serial.c

    Building target: demo_evmc6678l.out
    Invoking: C6000 Linker
    "/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --define=_TMS320C6X --define=_DEF_DSPC_8681_ --define=_EVMC6678L_ --diag_warning=225 --abi=eabi -z -m"demo_evmc6678l.map" --warn_sections -i"/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/lib" -i"/home/ti/ti_audio/ccsv5/ccsv5/tools/compiler/c6000/include" -i/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/csl/lib -i"/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/platform/dspc8681/platform_lib/lib/debug" -i"/home/ti/ti_audio/pdk_C6678_1_1_2_6/packages/ti/csl/lib" --reread_libs --rom_model -o "demo_evmc6678l.out" "./src/shared_mem_serial.obj" "./src/serial_printf.obj" "./src/main.obj" -l"ti.csl.intc.ae66" -l"ti.platform.dspc8681.lite.lib" -l"ti.csl.ae66" -l"libc.a" "../demo.cmd"
    <Linking>
    error: cannot find file "ti.platform.dspc8681.lite.lib"
    error: errors encountered during linking; "demo_evmc6678l.out" not built

    >> Compilation failure
    gmake: *** [demo_evmc6678l.out] Error 1
    gmake: Target `all' not remade because of errors.

    Please guide what to do now where I found this "ti.platform.dspc8681.lite.lib"?

    Regards,
    Rohit
  • Dear Rohit,

    <Linking>
    error: cannot find file "ti.platform.dspc8681.lite.lib"
    error: errors encountered during linking; "demo_evmc6678l.out" not built

    You can remove this entry "ti.platform.dspc8681.lite.lib" from the following CCS settings.
    CCS Settings -> C6000 Linker -> File search path
    Now you remove or delete this "ti.platform.dspc8681.lite.lib" entry.
  • Hi Stalin,

    Thanks For Help.

    Now It works fine and .out file is generated.

    Regards,
    Rohit
  • Sounds good.
    Thanks for your update.