Gary Johnson wrote:

> The first time I build vim on Cygwin with "make -j8" following
> a "make distclean", I get the following error.
> 
>     In file included from winclip.c:17:
>     vim.h:254:11: fatal error: auto/osdef.h: No such file or directory
>       254 | # include "auto/osdef.h"        // bring missing declarations in
>         |           ^~~~~~~~~~~~~~
>     compilation terminated.
>     OLD_PO_FILE_INPUT=yes msgfmt -v -o it.mo it.po
>     make[2]: *** [Makefile:3472: objects/winclip.o] Error 1
>     make[2]: *** Waiting for unfinished jobs....
> 
> Executing another "make -j8" proceeds without any errors, presumably
> because auto/osfdef.h has been built by that time.
> 
> I looked in src/Makefile and saw that it did not include an entry
> for objects/winclip.o in its list of dependencies automatically
> generated by "make depend".  I executed "make depend" and checked
> src/Makefile again.  That added a rule for objects/winclip.o.
> 
> Then I executed "make distclean" and "make -j8" and the build
> completed with no errors.
> 
> Am I supposed to have to run "make depend" myself on some systems?

No, I should do that.  I haven't updated dependencies for a while, some
were changed manually.  I'll run it now.  Hmm, need to install more
packages on this system.

However, winclip is not in the automatic dependencies.  There is a
manual one, because running "make depend" on Unix doesn't generate it:

objects/winclip.o: winclip.c
        $(CCC) -o $@ winclip.c

winclip.c does include vim.h, thus it does depend on several include
files.  I'll add that manually then.

-- 
hundred-and-one symptoms of being an internet addict:
254. You wake up daily with your keyboard printed on your forehead.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211026110032.D1C5FC80053%40moolenaar.net.

Raspunde prin e-mail lui