[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Failure in test subobj9.test with heirloom make
From: |
Stefano Lattarini |
Subject: |
Re: Failure in test subobj9.test with heirloom make |
Date: |
Tue, 20 Apr 2010 22:52:41 +0200 |
User-agent: |
KMail/1.12.1 (Linux/2.6.30-2-686; KDE/4.3.2; i686; ; ) |
At Tuesday 20 April 2010, Ralf Wildenhues <address@hidden>
wrote:
> Hi Stefano,
Hello Ralf, and thanks for looking into this so quickly.
>
> * Stefano Lattarini wrote on Tue, Apr 20, 2010 at 04:50:54PM CEST:
> > While trying out the Automake testsuite using Heirloom make as
> > $MAKE. I encounterd a failure in test `subobj9.test'. Attached
> > here are the test log and the testscript-generated Makefile and
> > Makefile.in heirloom make is chocking upon. Let me know if you
> > need more information.
> >
> > + /opt/heirloom/bin/make print
> > make: fatal error: line 273: cannot get /src/.deps/bar.Plo for
> > including .
The problem seems to be the include directive:
include .//src/$(DEPDIR)/bar.Plo
in the generated Makefile; if I change it manually to:
include ./src/$(DEPDIR)/bar.Plo
then heirloom-make works correctly.
> Interesting. Does the patch below make the test pass for this
> make, or does only it fail later on then? If it passes, does it
> also suffice to only add the first of the two added lines?
Yes, the test passes by just adding the first line.
>
> I'm trying to understand which of these lines this make interprets
> wrongly:
> include file
> include ./file
> include .//file
This one is sufficient o trigger the bug. Here is a minimal testcase
showing this:
$ cat >good.mk <<EOF
a:;
include ./foo.mk
EOF
$ cat >bad.mk <<EOF
a:;
include .//foo.mk
EOF
$ : > foo.mk
$ heirloom-make -f good.mk; echo $?
0
$ heirloom-make -f bad.mk; echo $?
heirloom-make: fatal error: line 2: cannot get /foo.mk for including
.
1
Hope tha helps; let me know if you need more information.
Regards,
Stefano