Menu

#12 makedepend throws lots of errors - can we use gcc -MM please

v1.0 (example)
closed-fixed
None
3
2014-03-20
2014-03-20
Duncan Roe
No

makedeps doesn't know about gcc's fixed includes, so throws lots of errors like

makedepend: warning:  xbasic.c (reading /usr/include/string.h, line 32): cannot find include file "stddef.h"
        not in ./stddef.h
        not in /usr/include/stddef.h

(I removed doocs & tine).
The reported files are then not listed as dependencies.

Adding -I/usr/lib/gcc/i486-slackware-linux/4.8.2/include to the makedepend line clears these errors: this could be scripted (in the Slackware build environment) but would be awkward to say the least.

The attached patch removes makedepend from configure.in. It removes the depend target from Makefile and adds dependency generation with gcc -MM, except for targets clean and distclean.

1 Attachments

Discussion

  • Duncan Roe

    Duncan Roe - 2014-03-20

    Forgot to mention - the process creates files with a .d suffix, so clean is patched to remove them

     
  • Markus Hoffmann

    Markus Hoffmann - 2014-03-20

    Makedepend used to work without errors years ago. I had not understand why it throws errors now.

     
  • Markus Hoffmann

    Markus Hoffmann - 2014-03-20
    • status: unread --> open-accepted
    • assigned_to: Markus Hoffmann
     
  • Markus Hoffmann

    Markus Hoffmann - 2014-03-20
    • status: open-accepted --> closed-fixed
     
  • Markus Hoffmann

    Markus Hoffmann - 2014-03-20

    great, a working depend without errors. Many thanks. Included in source tarball.

     

Log in to post a comment.

MongoDB Logo MongoDB