Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a deep dependency fails with "no way to make", only a direct dependency of the main goal is mentioned #80

Open
rulatir opened this issue Jun 24, 2020 · 0 comments

Comments

@rulatir
Copy link

rulatir commented Jun 24, 2020

Makefile:

foo: bar
	cp $< > $@

bar: vex
	cp $< > $@

vex: irk
	cp $< > $@

irk: baz
	cp $< > $@

baz: naz.in # typo, should be baz.in (what matters is that naz.in doesn't exist)
	cp $< > $@

GNU Make output:

make: *** No rule to make target 'naz.in', needed by 'baz'.  Stop.

biomake -H output:

While building foo: No way to build bar, needed by foo

The error message only mentions a cascade-failing direct dependency of the main goal instead of pointing at the real error like GNU Make does.

The problem can be worked around by attempting to make the failing dependency to discover the next node on the failing path, and so on until the culprit is found. But this workaround shouldn't be necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant