[bug #60960] Fix/report race problem if having multiple "alias" for the same target

2021-07-22 Thread Paul D. Smith
Follow-up Comment #1, bug #60960 (project make): It's actually a very hard problem to know whether two paths are really the "same file" or not. That's why make uses a simple textual comparison and leaves it at that (it does try one trivial simplification: it treats the targets "./foo" and "foo"

Re: Make allows kind of multiple "alias" for the same target

2021-07-22 Thread Edward Welbourne
> Here, we have 2 targets: > ../1/../main.o > ../2/../main.o > > In fact, this is the same target/file (taking into account relative > directories). Note that if ../1 or ../2 is a symlink to somewhere else, ../1/.. and ../2/.. aren't the same place. It's the makefile's responsibility to resolve

[bug #60960] Fix/report race problem if having multiple "alias" for the same target

2021-07-22 Thread anonymous
URL: Summary: Fix/report race problem if having multiple "alias" for the same target Project: make Submitted by: None Submitted on: Thu 22 Jul 2021 01:49:14 PM UTC Severity: 3 -

Make allows kind of multiple "alias" for the same target

2021-07-22 Thread lol lol
Hello dear developers of a Make, Our team faced some race problems while building a project with Make. Precise analysis shows that the problem was in fact, that Make doesn't care if we have different aliases for the same target. For example: ``` .PHONY: all ../1/../main.o ../2/../main.o all: