From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Alejandro R. Mosteo" Newsgroups: comp.lang.ada Subject: GNAT corrupted builds with below second changes Date: Wed, 14 Mar 2018 11:36:33 +0100 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 14 Mar 2018 10:36:33 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="d9c81ffc92c810d34615660dafe802d2"; logging-data="7323"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BQqy0HRvOlRs3dJF5OkU5" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Content-Language: en-US X-Mozilla-News-Host: news://news.eternal-september.org:119 Cancel-Lock: sha1:GMHlxVnbozu/Ae3bWnZkbP4a6No= Xref: reader02.eternal-september.org comp.lang.ada:50966 Date: 2018-03-14T11:36:33+01:00 List-Id: Hi, I'm doing some automated testing that involves very fast file generation and recompilation. Platform is linux, GPL 2017 or FSF 7.2. I've observed that gprbuild seems to not detect that a file is changed if less than a second has elapsed. I will guess here that the timestamp being used has second precision. This leads to supposedly up-to-date builds that aren't, among other funny effects. I faintly remember having read about this somewhere, but I'm unable to find anything related in web searches. Anyone has experienced this? Thanks, Álex.