• AVR Freaks

No rule to make target 2.10 dspic on debug

Author
friesen
Super Member
  • Total Posts : 2065
  • Reward points : 0
  • Joined: 2008/05/08 05:23:35
  • Location: Indiana, USA
  • Status: offline
2014/09/18 11:59:25 (permalink)
0

No rule to make target 2.10 dspic on debug

See this for reference http://www.microchip.com/forums/m618888.aspx
 
This works for builds, but I can't get this to debug.  Says - 
 
make[2]: *** No rule to make target `x86)/Microchip/mplabc30/v3.31/lib/libq-dsp-coff.a)', needed by `dist/C30_3.31/debug/Pump.X.debug.cof'.  Stop.
 
Don't understand, libq-dsp etc is in location specified.

Erik Friesen
#1

7 Replies Related Threads

    Jose Diaz
    Administrator
    • Total Posts : 1676
    • Reward points : 0
    • Joined: 2010/06/23 11:10:56
    • Location: 0
    • Status: offline
    Re: No rule to make target 2.10 dspic on debug 2014/10/14 10:25:08 (permalink)
    +1 (1)
    1) Do not add libq-dsp-coff.a or libq-dsp-elf.a directly to your project. Instead, tell the linker you want to use that library (see attached picture). For gcc based compilers, when you passed to the linker (after the -Wl, --library=xxx, then it will search in its installation directory for lib-xxx-coff.a or lib-xxx-elf.a.
    2) If you really want to add the .a to your project, place it in a directory with no " ",  "(", or ")"  characters. GNU make is choking on those. You could copy the library to the project directory. But I think this is a bad solution. I would go with (1)

    Attachment(s)

    Attachments are not available: Download requirements not met
    #2
    friesen
    Super Member
    • Total Posts : 2065
    • Reward points : 0
    • Joined: 2008/05/08 05:23:35
    • Location: Indiana, USA
    • Status: offline
    Re: No rule to make target 2.10 dspic on debug 2014/10/14 10:28:26 (permalink)
    0
    Not sure you have this right.  There seems to be non exposable internal project options that are created when porting old mplab 8 projects.  This thing would not behave until I moved the old code into a new project.

    Erik Friesen
    #3
    Jose Diaz
    Administrator
    • Total Posts : 1676
    • Reward points : 0
    • Joined: 2010/06/23 11:10:56
    • Location: 0
    • Status: offline
    Re: No rule to make target 2.10 dspic on debug 2014/10/14 11:16:02 (permalink)
    0
    If you had .a files as library files and pointed to the installation of the .a (in windows only) you got that error...
    #4
    friesen
    Super Member
    • Total Posts : 2065
    • Reward points : 0
    • Joined: 2008/05/08 05:23:35
    • Location: Indiana, USA
    • Status: offline
    Re: No rule to make target 2.10 dspic on debug 2014/10/14 11:23:40 (permalink)
    0
    I am using C30 V 3_31 with libdsp-elf.a added in the libraries tab, compiles fine in new project.  MplabX _really_ doesn't like dealing with coff, I came to think.
     
    I don't claim to understand this all, its very confusing, and there isn't much available to tell you where and how to add dsp libraries correctly.  If it compiles, I carefully don't touch anything.

    Erik Friesen
    #5
    Jose Diaz
    Administrator
    • Total Posts : 1676
    • Reward points : 0
    • Joined: 2010/06/23 11:10:56
    • Location: 0
    • Status: offline
    Re: No rule to make target 2.10 dspic on debug 2014/10/14 13:41:20 (permalink)
    +1 (1)

     If it compiles, I carefully don't touch anything.

    I completely understand!.
     
    I just wish that people using 8 and MPLAB X would know about the option to add q-dsp in the libraries. This way they get the correct version for the compiler (with MPLAB X you can have many versions of the same compiler) and the right format (coff/elf) would get used.
     
    #6
    Jim Nickerson
    User 452
    • Total Posts : 6117
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: No rule to make target 2.10 dspic on debug 2014/10/15 08:46:27 (permalink)
    +1 (1)
    Jose Diaz
    I just wish that people using 8 and MPLAB X would know about the option to add q-dsp in the libraries. This way they get the correct version for the compiler (with MPLAB X you can have many versions of the same compiler) and the right format (coff/elf) would get used.

    Maybe this could become automatic, at least by MPLAB X which is still in development.
    #7
    Jose Diaz
    Administrator
    • Total Posts : 1676
    • Reward points : 0
    • Joined: 2010/06/23 11:10:56
    • Location: 0
    • Status: offline
    Re: No rule to make target 2.10 dspic on debug 2014/10/16 07:47:47 (permalink)
    +1 (1)
    Jim,
    That's an interesting suggestion. Thanks!
    I'll pass it to the team.
    Jose
     
    #8
    Jump to:
    © 2019 APG vNext Commercial Version 4.5