This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skip.montanaro
Recipients skip.montanaro
Date 2008-08-11.00:55:52
SpamBayes Score 2.3682353e-05
Marked as misclassified No
Message-id <1218416155.29.0.722740811463.issue3539@psf.upfronthosting.co.za>
In-reply-to
Content
I usually build Python directly in my source repository (the directory
containing the configure script).  Accordingly, I have .o files scattered
throughout my sandbox.

Today I decided to build --with-pydebug, so I created a debug directory,
then ran ../configure from within that directory, giving the arguments
I wanted.  When I ran make it croaked with a link error linking pgen.
The linker complained that tokenizer_pgen.o and pgenmain.o weren't found.

Messing around with make -d I figured out that when make ran it
concluded that Parser/pgenmain.o didn't need to be rebuilt.  It thought
that ../Parser/pgenmain.o satisfied the dependency for Parser/pgenmain.o.
I don't know if this is a problem with GNU make's VPATH processing or
with the dependency specification in Python's makefile.

I can work around the problem by avoiding builds directly in my sandbox
but it would be nice if this worked.

(I'm experiencing a sense of deja vu.  Perhaps I've reported this problem
sometime in the dim, dark past, but I can't find anything searching for
either "VPATH" or "makefile".)
History
Date User Action Args
2008-08-11 00:55:55skip.montanarosetrecipients: + skip.montanaro
2008-08-11 00:55:55skip.montanarosetmessageid: <1218416155.29.0.722740811463.issue3539@psf.upfronthosting.co.za>
2008-08-11 00:55:54skip.montanarolinkissue3539 messages
2008-08-11 00:55:52skip.montanarocreate