[Qt-interest] qmake/moc goes into endless loop when files have a timestamp in the future
Thiago Macieira
thiago at kde.org
Thu Mar 11 08:53:47 CET 2010
Em Quarta-feira 10. Março 2010, às 23.01.19, Jaco Naude escreveu:
> Hi
>
> I'm not sure if the issue is with creator or with the qt tools (qmake
> & moc) so I'm giving both lists a try.
>
> I accidentally set my system time to a date in the future and only
> realized it a day or so later. After I changed back the time and try
> to build my project, the tools goes into a endless loop. See the the
> qmake output below for an example:
Please touch all of your files and reset the date. The problem is probably with
make, not moc or qmake.
make compares the timestamp of the target file and of the source file. If the
source file is newer than the target file, then it runs the commands that
generate the target file. But if the source file has dates in the future, the
newly-generated target file will still be "older" than the source.
Note the same problem happens if your clock is set wrong the other way: if the
clock is before the source dates, the same problem will happen (since both zip
and tar keep the original dates of when the package was created).
Times are extremely important for make, to the point that NTP is mandatory if
you're building on an NFS share.
> I think it is because some files have a timestap in the future. Is
> there a way to get around this? Or should I manually edit all files
> with the date set back? I tried to set the attributes of all files
> with the date set back but that does not do the trick.
Just touch all files "source" files.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100310/a926cdb6/attachment.bin
More information about the Qt-interest-old
mailing list