Stream: t-compiler/help

Topic: submodule hell


DPC (Jul 30 2020 at 16:59, on Zulip):

I was running x.py build src/libstd and was feeling sleepy and had to stop it midway. It had fetched the repository for src/llvm and was resolving objects when I interrupted it.
Now if i try to build again i get

Failed to clone 'src/llvm-project'. Retry scheduled
BUG: submodule considered for cloning, doesn't need cloning any more?
fatal: could not get a repository handle for submodule 'src/llvm-project'

and even if i try the suggested submodule update, it still can't fetch the repository handle.

Any pointers?

Joshua Nelson (Jul 30 2020 at 17:02, on Zulip):

if you run git submodule init && git submodule update what happens?

Joshua Nelson (Jul 30 2020 at 17:02, on Zulip):

I know nothing about submodules so if that doesn't work I'm out of ideas :laughing:

DPC (Jul 30 2020 at 20:51, on Zulip):

@Joshua Nelson sadly that doesn't work

yodal (Jul 31 2020 at 02:15, on Zulip):

Maybe try git submodule deinit --force before trying git submodule update --init --recursive

yodal (Jul 31 2020 at 02:16, on Zulip):

Push comes to shove, just rm -r src/llvm-project/ and reinit

DPC (Jul 31 2020 at 15:29, on Zulip):

thanks will give that a try

Last update: Sep 28 2020 at 14:15UTC