Re: floating point exception 8 when running make

2022-05-21 Thread Valery Tolkov
You are right. My bad. Sorry for the trouble. The system message is a bit confusing. The exit code 136 could be (and was) caused by integer overflow or integer division by zero. Valeri > On May 21, 2022, at 1:20 PM, Paul Smith wrote: > > On Sat, 2022-05-21 at 12:17 -0700, Valery Tolkov wrote:

Re: Potential Bug: `.PHONY` targets and order-only prerequisites

2022-05-21 Thread Paul Smith
On Sat, 2022-05-21 at 14:34 -0400, Dmitry Goncharov wrote: > On Sat, May 21, 2022 at 12:25 PM Paul Smith wrote: > > Maybe what you're saying is that make should throw an error or > > warning if you try to add an order-only prerequisite to a phony > > target, telling you that it will have no effect

Re: floating point exception 8 when running make

2022-05-21 Thread Paul Smith
On Sat, 2022-05-21 at 12:17 -0700, Valery Tolkov wrote: > Exact target file doesn't matter, all files give the same error. If I > do a clean build without any existing targets, it works. But second > time it fails again. > > > ... > > Must remake target `bin/dbg/clr/clr.o'. > > clang++ --config ./

floating point exception 8 when running make

2022-05-21 Thread Valery Tolkov
Hi, all! Gnu make suddenly stopped working about half an hour ago with the error below. It was working just fine earlier today without any changes in makefile or invocation. Exact target file doesn't matter, all files give the same error. If I do a clean build without any existing targets, it

Re: Potential Bug: `.PHONY` targets and order-only prerequisites

2022-05-21 Thread Dmitry Goncharov
On Sat, May 21, 2022 at 12:25 PM Paul Smith wrote: > Maybe what you're saying is that make should throw an error or warning > if you try to add an order-only prerequisite to a phony target, telling > you that it will have no effect on your makefile? Having a phony target depend (usually indirectl

Re: Potential Bug: `.PHONY` targets and order-only prerequisites

2022-05-21 Thread Alejandro Colomar
Hi Paul and Jacob, On 5/21/22 18:24, Paul Smith wrote: On Wed, 2022-05-18 at 14:36 -0700, Jacob Kopczynski wrote: The thing that the docs refer to as "impose order" is not a single thing, but two. I would characterize a normal prerequisite as doing three things rather than two: - update-marking

Re: Potential Bug: `.PHONY` targets and order-only prerequisites

2022-05-21 Thread Paul Smith
On Sat, 2022-05-21 at 19:06 +0200, Alejandro Colomar wrote: > By "once all children are complete" you are implying the "existence" > of the children (which make(1) doesn't really check, but one can > think of it as if it did). Perhaps that's the confusion. Make doesn't care about files at all per

Re: Potential Bug: `.PHONY` targets and order-only prerequisites

2022-05-21 Thread Paul Smith
On Wed, 2022-05-18 at 14:36 -0700, Jacob Kopczynski wrote: > The thing that the docs refer to as "impose order" is not a single > thing, but two. I would characterize a normal prerequisite as doing > three things rather than two: > - update-marking: cause a target to be marked out of date if the >