Error when building on Cygwin after "make distclean"

23 views
Skip to first unread message

Gary Johnson

unread,
Oct 25, 2021, 8:05:25 PM10/25/21
to vim...@googlegroups.com
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?

Regards,
Gary

Bram Moolenaar

unread,
Oct 26, 2021, 7:00:41 AM10/26/21
to vim...@googlegroups.com, Gary Johnson
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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages