`make cleanall` breaks `make`?

While hacking on Julia Base, I ran make, which resulted in an error during bootstrap, and suggested I run make clean and make cleanall. I did that, the problem now is that make doesn’t work any more after make cleanall, and I’m not sure how to fix this.

After switching back to the master branch:

$ make
make[2]: *** No rule to make target '/home/nsajko/tmp/julia/deps/srccache/patchelf-0.13/Makefile.am', needed by '/home/nsajko/tmp/julia/deps/srccache/patchelf-0.13/Makefile.in'.  Stop.
make[1]: *** [/home/nsajko/tmp/jl/jl/julia/deps/patchelf.mk:39: /home/nsajko/tmp/jl/jl/julia/usr-staging/patchelf-0.13.tar] Error 2
make: *** [Makefile:75: julia-deps] Error 2

Any ideas for being able to build Julia again from this local repo?

After deleting deps/srccache and re-running make I get:

...
Making all in src
make[3]: *** No rule to make target '/home/nsajko/tmp/julia/deps/srccache/patchelf-0.13/src/patchelf.cc', needed by 'patchelf.o'.  Stop.
make[2]: *** [Makefile:439: all-recursive] Error 1
make[1]: *** [/home/nsajko/tmp/jl/jl/julia/deps/patchelf.mk:27: scratch/patchelf-0.13/build-compiled] Error 2
make: *** [Makefile:75: julia-deps] Error 2

Seems that it’s fixed after

rm -r -f deps/srccache/ deps/scratch/
make clean
make
1 Like