You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
make clean is not enough for out-of-source builds #110704
cpython $ mkdir debug
cpython $ cd debug
cpython/debug $ ../configure --with-pydebug && make
[...]
Error: The source directory (..) is not clean
Building Python out of the source tree (in /home/antocuni/pypy/misc/cpython/debug) requires a clean source tree (/home/antocuni/pypy/misc/cpython/debug/..)
Try to run: make -C ".." clean
Now, if you try to run a top-level make clean as suggested, it's not enough:
cpytohn/debug $ make -C ".." clean
[...]
cpython/debug $ make
Error: The source directory (..) is not clean
Building Python out of the source tree (in /home/antocuni/pypy/misc/cpython/debug) requires a clean source tree (/home/antocuni/pypy/misc/cpython/debug/..)
Try to run: make -C ".." clean
Do note I put the cleanup under distclean because it was easiest. If someone is motivated enough they could potentially get it moved.
I opened #112610 because I think having a more helpful suggestion would probably be enough to resolve confusion for the case I ran into (i.e. hinting the user towards the alternate target they need). I don't know if it would be better to move this cleanup to another target, but the suggestion text is an easy change.
Activity
SnoopJ commentedon Dec 1, 2023
I just had this problem while trying to run the WASI build using the script introduced by #112473, running
make distcleanresolved the problem.Seems to me that the check target should recommend
distcleaninstead ofcleanfor the reasons you've identified.brettcannon commentedon Jan 30, 2024
Do note I put the cleanup under
distcleanbecause it was easiest. If someone is motivated enough they could potentially get it moved.SnoopJ commentedon Jan 30, 2024
I opened #112610 because I think having a more helpful suggestion would probably be enough to resolve confusion for the case I ran into (i.e. hinting the user towards the alternate target they need). I don't know if it would be better to move this cleanup to another target, but the suggestion text is an easy change.
gh-110704: Recommend `distclean` target over `clean` when source tree…
[3.15] gh-110704: Recommend `distclean` target over `clean` when sour…
[3.14] gh-110704: Recommend `distclean` target over `clean` when sour…
[3.13] gh-110704: Recommend `distclean` target over `clean` when sour…