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.

Linker Error (fatal error #10009: no input files)

I am trying to learn how to use SD card controller of C5515 and decided to use CSL 3.04. I successfully compiled and run the CSL example project. As next step, I created a new project which is called SDCardTrial in my workspace and try to call CSL functions in this project. And this is where my problems started. I dealed with lots of problems and solved some of them but i couldnt solve this linker problem. My console output, necessary information and screenshots can be seen below:

CCS  Version: 6.1.0.00104

Compiler Include Settings:

Linker File Search Path Settings

Console Output:


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

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: C5500 Compiler'
"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c5500" --include_path="C:/c55_lp/c55_csl_3.04/c55xx_csl/inc" --include_path="C:/Users/Hasan/NewWorkSpace/SDCardTrial/Debug" --define="_DEBUG" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
'Finished building: ../main.c'
' '
'Building target: SDCardTrial.out'
'Invoking: C5500 Linker'
"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --define="_DEBUG" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic -z -m"SDCardTrial.map" --stack_size=0x200 --heap_size=0x400 -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" -i""C:/ti/bios_5_42_00_07/packages/ti/rtdx/lib/c5500" -i"C:/ti/bios_5_42_00_07/packages/ti/bios/lib" -i"C:/Users/Hasan/NewWorkSpace/C55XXCSL_LP" -i"C:/Users/Hasan/NewWorkSpace/SDCardTrial" -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" --reread_libs --display_error_number --warn_sections --xml_link_info="SDCardTrial_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "SDCardTrial.out" "./main.obj" "../C5515.cmd"  -l"Debug/C55XXCSL_LP.lib" -l"rts55x.lib" -l"libc.a"
<Linking>
fatal error #10009: no input files

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

**** Build Finished ****

I make sure that all the build variables are defined correctly, and make sure that all the lib files are in the given directories.

Any help will be much appreciated.

Thanks in advance.

Hasan

  • Hasan,

    Thanks for sending such detailed post.

    This is a very uncommon error, and I only found two occurrences of it (one very recently). Unfortunately the root cause was never found.
    e2e.ti.com/.../816899
    e2e.ti.com/.../437582

    Looking at the build output the only thing I see that is out of the ordinary is the duplicate runtime support library definition. I would remove the file <rts55x.lib> and leave <libc.a>, which performs an automatic selection of the runtime support library based on the device used in the project.

    Another possible fix is to try what I suggested in the second thread above.

    I will keep looking and reply to this thread if something else may be relevant to this issue.

    Hope this helps,
    Rafael
  • Hi desouza,

    thanks for your response. I tried your suggestions and share my findings below:

    1) I removed the <rts55x.lib> file. It does not solved my problem you can see the console output below:

    Console Output:

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

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../main.c'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c5500" --include_path="C:/c55_lp/c55_csl_3.04/c55xx_csl/inc" --include_path="C:/Users/Hasan/NewWorkSpace/SDCardTrial/Debug" --define="_DEBUG" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
    'Finished building: ../main.c'
    ' '
    'Building target: SDCardTrial.out'
    'Invoking: C5500 Linker'
    "C:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --define="_DEBUG" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic -z -m"SDCardTrial.map" --stack_size=0x200 --heap_size=0x400 -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" -i""C:/ti/bios_5_42_00_07/packages/ti/rtdx/lib/c5500" -i"C:/ti/bios_5_42_00_07/packages/ti/bios/lib" -i"C:/Users/Hasan/NewWorkSpace/C55XXCSL_LP" -i"C:/Users/Hasan/NewWorkSpace/SDCardTrial" -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" --reread_libs --display_error_number --warn_sections --xml_link_info="SDCardTrial_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "SDCardTrial.out" "./main.obj" "../C5515.cmd"  -l"Debug/C55XXCSL_LP.lib" -l"libc.a"
    <Linking>
    fatal error #10009: no input files
    gmake: *** [SDCardTrial.out] Error 1
    gmake: Target `all' not remade because of errors.

    >> Compilation failure

    **** Build Finished ****


    2) I removed the Debug folder in my project and tried to build it again. Sadly, again this did not solve my problem. Console output can be seen below:

    Console Output:

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

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../main.c'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c5500" --include_path="C:/c55_lp/c55_csl_3.04/c55xx_csl/inc" --include_path="C:/Users/Hasan/NewWorkSpace/SDCardTrial/Debug" --define="_DEBUG" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
    'Finished building: ../main.c'
    ' '
    'Building target: SDCardTrial.out'
    'Invoking: C5500 Linker'
    "C:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --define="_DEBUG" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic -z -m"SDCardTrial.map" --stack_size=0x200 --heap_size=0x400 -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" -i""C:/ti/bios_5_42_00_07/packages/ti/rtdx/lib/c5500" -i"C:/ti/bios_5_42_00_07/packages/ti/bios/lib" -i"C:/Users/Hasan/NewWorkSpace/C55XXCSL_LP" -i"C:/Users/Hasan/NewWorkSpace/SDCardTrial" -i"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" --reread_libs --display_error_number --warn_sections --xml_link_info="SDCardTrial_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "SDCardTrial.out" "./main.obj" "../C5515.cmd"  -l"Debug/C55XXCSL_LP.lib" -l"libc.a"
    <Linking>
    fatal error #10009: no input files

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

    **** Build Finished ****

    If you have any other suggestions, i will be happy to try them too.

    Thanks in advance

    Regards

    Hasan