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.

Release Mode

Hi,

I have a project running on CCSv4 in Debug mode. But when I change to Release mode. But when I compile it, the follow error appears:

- Errors (1 item): no input files

- Warnings (1 item): cannot resolve archive C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/lib/libc.a to a compatible library, as no input files have been encountered

I took care to use the same configurations of Debug mode to Release mode, through Properties menu, on C/C++ Build tab, but the error persisted.

ps: In Debug mode, compilation is always successfully and software works fine.

Does anyone know what this means and how to solve this problem?

Thanks!

  • Hi Fernando,

    I will transfer your question to the CCS experts.

    Maybe you could provide the console build log for both debug and release builds.

    Best Regards,
    Mark

  • Hi Mark, there is console build log for both release and debug builds:

    **** Build of configuration Release for project Test_Sw ****

    C:\Program Files (x86)\Texas Instruments\ccsv4\utils\gmake\gmake -k all
    'Building target: Test_Sw.out'
    'Invoking: Linker'
    "C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -g -O3 --program_level_compile --diag_warning=225 
    --large_memory_model --algebraic --call_assumptions=0 -z -m"Test_Sw.map" --warn_sections
    -i"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/lib"
    -i"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/include"
    -i"C:/Users/ACCEPT/Documents/workspace/Test_Sw"
    -i"/lib" --reread_libs --entry_point=reset_isr --rom_model --sys_stacksize=1000 -o "Test_Sw.out" "../c5505.cmd" -l"rts55x.lib"
    <Linking>
    warning: cannot resolve archive C:/Program Files (x86)/Texas
    Instruments/ccsv4/tools/compiler/c5500/lib/libc.a to a compatible library,
    as no input files have been encountered
    fatal error: no input files

    >> Compilation failure
    C:\Program Files (x86)\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Test_Sw.out] Error 1
    C:\Program Files (x86)\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
    Build complete for project Test_Sw



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

    C:\Program Files (x86)\Texas Instruments\ccsv4\utils\gmake\gmake -k all
    'Building file: ../src/main.c'
    'Invoking: Compiler'
    "C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -vcpu:3.3 -g --define="_DEBUG"
    --include_path="C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/include"
    --include_path="C:/Program Files (x86)/Texas Instruments/xdais_6_25_01_08/packages/ti/xdais"
    --include_path="../inc" --include_path="../common_inc"
    --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_02_14/packages/ti/bios/include"
    --diag_warning=225 --large_memory_model --algebraic --preproc_with_compile --preproc_dependency="src/main.pp" "../src/main.c"
    'Finished building: ../src/main.c'
    ' '
    'Building target: Test_Sw.out'
    'Invoking: Linker'
    "C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -@ccsLinker.opt -o "Test_Sw.out"
    <Linking>
    'Finished building target: Test_Sw.out'
    ' '
    Build complete for project Test_Sw
    
    
    Thank you for your help.
  • Fernando,

    Comparing the Debug and Release builds, the Release build does not show any source files being built, (ie) the "Invoking Compiler" step is missing altogether. Could you check the project settings to make sure the source file is not excluded from build for the Release configuration? If the source file is not excluded from build, one other thing to try is uncheck the --program_level_compile in your build options and see if that helps.

    Also, which specific version of CCS are you using?

  • Sorry, AartiG, but I didn't understand what you said.

    Could you please help me what I have to do to accomplish what you said: check the project setting to make sure file is not excluded from build for Release configuration?

    About version of CCS, I'm using CCSv4.

    Thank you!

  • AartiG said:
    Could you check the project settings to make sure the source file is not excluded from build for the Release configuration?

    What I meant by this, is in the C/C++ Projects view, expand your project for the Release configuration and check that the source file(s) are not excluded from build. If they are, it will be noted next to the file (see screenshot below). Also carefully compare the files for the Debug and Release configurations to make sure they are the same.

     

    After you have confirmed that the source files are the same for both configurations, please see if unchecking the --program_level_compile in your build options for the Release configuration helps. To get to this option, right click on your project, go to Build Properties->C/C++ Build->Compiler->Language Options.

  • Hi, AartiG!

    There really was a file which was excluded from build like you mentioned. So, I unchecked the --progam_level_compile from build options and the build was completed successfully.

    Thank you very much!