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.

Can't resolve "input file"

Other Parts Discussed in Thread: MSP430G2231

I am a very new user of the IDE and am having trouble with file type & location.

Attempting to execute sample program MSP430x11x1_1.c  on Launchpad.

Following is the error file:

I don't understand the question "can't resolve archive .....as no input files

files hav been encountered."

?? what is the type of  "input files" ?? it expects ??

I really would appreciate some guidance on this question, as 

I have spent more time than I care to admit trying solve it.

Also It looks to me that all the errors derive from the missing file.

Here is the Build file.

 

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

 

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all 

'Building target: jan30.out'

'Invoking: Linker'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/msp430/bin/cl430" -vmsp -g 

--define=__MSP430F1111__ --diag_warning=225 --printf_support=minimal -z -m"jan30.map" 

--stack_size=50 --heap_size=0 --warn_sections -i

"C:/Program Files/Texas Instruments/ccsv4/msp430/include" -i

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/msp430/lib" -i

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/msp430/include"

 --reread_libs --rom_model -o "jan30.out"  -l"libc.a" "../lnk_msp430f1111.cmd" 

<Linking>

error: cannot find file "msp430f1111.cmd"

warning: cannot resolve archive C:/Program Files/Texas

   Instruments/ccsv4/tools/compiler/msp430/lib/libc.a to a compatible library,

   as no input files have been encountered

fatal error: no input files

 

>> Compilation failure

gmake: *** [jan30.out] Error 1

gmake: Target `all' not remade because of errors.

Build complete for project jan30

  • What is the source of this file?  Meaning, what software download did you use to obtain this example?  Please indicate the link.

     

  • the call to the linker does not linst any single input file. So the linker does not know what to link.

    If you're using an IDE, maybe you didn't add the source file as project source file but just as a normal  file (or not at all). Then the IDE does not know that it needs to be compiled and linked. And since there are no other files to be compilerd and linked, the compiler does nothing and the linker fiinds nothing to link. The compiler won't complain if it isn't invoked at all (because there's nothign to compile), but the linker does, as it IS invoked and there's still nothing to link.

  • Hi,

    I am working through this tutorial: http://software-dl.ti.com/trainingTTO/trainingTTO_public_sw/MSP430_LaunchPad_Workshop/LaunchPad.pdf

    When building the project, I get this error:

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

    C:\Program Files (x86)\Texas Instruments\ccsv4\utils\gmake\gmake -k all
    'Building file: ../testabc.c'
    'Invoking: Compiler'
    "C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/bin/cl430" -vmsp -g --define=__MSP430G2231__ --include_path="C:/Program Files (x86)/Texas Instruments/ccsv4/msp430/include" --include_path="C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/include" --diag_warning=225 --printf_support=minimal --preproc_with_compile --preproc_dependency="testabc.pp"  "../testabc.c"
    'Finished building: ../testabc.c'
    ' '
    'Building target: Test.out'
    'Invoking: Linker'
    "C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/bin/cl430" -vmsp -g --define=__MSP430G2231__ --diag_warning=225 --printf_support=minimal -z -m"Test.map" --stack_size=50 --heap_size=0 --warn_sections -i"C:/Program Files (x86)/Texas Instruments/ccsv4/msp430/include" -i"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/lib" -i"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/include" --reread_libs --rom_model -o "Test.out"  -l"libc.a" "../msp430g2231.cmd" "./testabc.obj"
    <Linking>
    warning: cannot resolve archive C:/Program Files (x86)/Texas
       Instruments/ccsv4/tools/compiler/msp430/lib/libc.a to a compatible library,
       as no input files have been encountered
    warning: creating output section ".int02" without a SECTIONS specification
    warning: creating output section ".int05" without a SECTIONS specification
    warning: creating output section ".int08" without a SECTIONS specification
    warning: creating output section ".int09" without a SECTIONS specification
    warning: creating output section ".int10" without a SECTIONS specification
    warning: entry-point symbol "_c_int00" undefined
    warning: no suitable entry-point found; setting to 0
    'Finished building target: Test.out'
    ' '
    Build complete for project Test

    Any help would be appreciated!!!

  • When you compile a C program, the linker implicitely adds soem default functions. Those functions copy the init values for your variables from flash to ram or handle integer multiplication/division etc.

    In your case, the linker expects the library that contains this code at C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/msp430/lib/libc.a .

    This file, however, cannot be found there (wrong path) or is in a wrong format (wrong compiler or wrong version).
    Or, which seems to be the case here, the correct version of this file cannot be determined since the linker for some reason cannot determine any input file to link and therefore not detect which version (MSP430/MSP430X/X2, hardware multiplier ot not etc.) is required.

    It may have to do with the location of the files:

    testabc.c is in ../testabc.c (the parent folder), but the object file seems to be expected in ./testabc.obj (the current folder).
    Eclipse is very pickery about what is placed where. Try moving the source file into the project folder or tell the compiler (if this is possible) to output the generated object file to th ecorrect location.

     

  • I forgot to save my source file with ".c" at the end.   Once I added this it compiled perfectly.  

**Attention** This is a public forum