Building LibreOffice in Cygwin leads to infinite loop.

I try to build LibreOffice for Windows using Cygwin as it written is the instruction.
I use autogen with such params:

./autogen.sh --with-external-tar=./../lo-externalsrc --without-java --enable-pch --disable-ccache --disable-activex --disable-atl --enable-64-bit --enable-dbgutil --enable-debug

After configuring I run:

/opt/lo/bin/make --debug

And I have this output:

cygwin shell

It may repeat infinitly.
I use Visual Studio 2013, so I clone the repository before its support was dropped.
How can I fix this?

What is --debug in your /opt/lo/bin/make --debug?

The development problems are better solved in #libreoffice on FreeNode. Also, you may connect to #libreoffice-ru.

This flag adds some more strings to output. Because of it I get for example:
Re-executing[443]: C:/cygwin64/opt/lo/bin/make -j 4 -rs -f D:/lo/core/Makefile.gbuild all
GNU Make 4.2.1
Built for Windows32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles…

Without this flag I only have infinitely repeating lines on output.

Now that I look at your autogen:

  1. The --enable-dbgutil and --enable-debug are mutually exclusive. --enable-dbgutil gives more debug possibilities, and takes more resources;
  2. Why do you need --disable-activex and --disable-atl? I remember having problems with those (it was long ago; I had only express SKU that time; and iirc I had to use WDK to enable them to succeed).

Also, just a notice that it’s better to put the config options to autogen.input. I don’t know if that matters, but I have --with-external-tar set to absolute path (/cygdrive/d/sources/lo-externalsrc). I don’t see --with-ant-home=/path/to/ant in your config.

Earlier I built LibreOffice in Cygwin without installing Ant. It worked. So, now I installed it and have autogen input:
–with-external-tar=/cygdrive/d/libre/lo-externalsrc
–with-ant-home=/cygdrive/d/libre/apache-ant-1.9.5
–without-java
–enable-pch
–disable-ccache
–enable-64-bit
–enable-dbgutil

But I still have the same result: infinite loop, re-executing of make.

did you make clean?

I try to make building in folder /cygdrive/d/libre/core

I really advice you to join #libreoffice on IRC. But I’m afraid that there will arise a question why do you use VS2013. I suppose that’s not a real problem, and I myself used 2013 ~two weeks ago, but…

Could that be that you happen to checkout to a problematic commit?

I use VS2013 because I have its license for a professional version and I can’t use community edition. I tried different commits on different machines with the same result. This is strange, because recently (in February) building was successful. I really don’t know why it began re-executing after.

https://gerrit.libreoffice.org/40452 is my attempt to address that.