betrusted-io / betrusted-soc

Betrusted main SoC design
Other
138 stars 21 forks source link

Recursive clone references non-existent repositories #25

Closed vmedea closed 3 years ago

vmedea commented 3 years ago

This is likely a known issue, but in any case: I was trying to recursively clone the current master branch (3ea245d304fca5d70a5e3ee700a3656970feb554) but it misses some repositories, which are either private or non-existent:

$ git clone https://github.com/betrusted-io/betrusted-soc.git
$ cd betrusted-soc
$ git submodule init
$ git submodule update --init --recursive
…
Submodule 'litex/data/cpu/vexriscv/verilog/ext/VexRiscv' (https://github.com/betrusted-io/VexRiscv.git) registered for path 'deps/pythondata-cpu-vexriscv/pythondata_cpu_vexriscv/verilog/ext/VexRiscv'
Cloning into '/home/odroid/boards/betrusted/betrusted-soc/deps/pythondata-cpu-vexriscv/pythondata_cpu_vexriscv/verilog/ext/VexRiscv'...
Submodule path 'deps/pythondata-cpu-vexriscv/pythondata_cpu_vexriscv/verilog/ext/VexRiscv': checked out '1fe75962036140413d99f7dc9b948b347b10d333'
Submodule 'src/test/resources/VexRiscvRegressionData' (https://github.com/betrusted-io/VexRiscvRegressionData.git) registered for path 'deps/pythondata-cpu-vexriscv/pythondata_cpu_vexriscv/verilog/ext/VexRiscv/src/test/resources/VexRiscvRegressionData'
Cloning into '/home/odroid/boards/betrusted/betrusted-soc/deps/pythondata-cpu-vexriscv/pythondata_cpu_vexriscv/verilog/ext/VexRiscv/src/test/resources/VexRiscvRegressionData'...
Username for 'https://github.com': 
Password for 'https://github.com': 

remote: Repository not found.
fatal: Authentication failed for 'https://github.com/betrusted-io/VexRiscvRegressionData.git/'
fatal: clone of 'https://github.com/betrusted-io/VexRiscvRegressionData.git' into submodule path '/home/odroid/boards/betrusted/betrusted-soc/deps/pythondata-cpu-vexriscv/pythondata_cpu_vexriscv/verilog/ext/VexRiscv/src/test/resources/VexRiscvRegressionData' failed
Failed to clone 'src/test/resources/VexRiscvRegressionData'. Retry scheduled
Cloning into '/home/odroid/boards/betrusted/betrusted-soc/deps/pythondata-cpu-vexriscv/pythondata_cpu_vexriscv/verilog/ext/VexRiscv/src/test/resources/VexRiscvRegressionData'...
Username for 'https://github.com': Password for 'https://github.com': 

remote: Repository not found.
fatal: Authentication failed for 'https://github.com/betrusted-io/VexRiscvRegressionData.git/'
fatal: clone of 'https://github.com/betrusted-io/VexRiscvRegressionData.git' into submodule path '/home/odroid/boards/betrusted/betrusted-soc/deps/pythondata-cpu-vexriscv/pythondata_cpu_vexriscv/verilog/ext/VexRiscv/src/test/resources/VexRiscvRegressionData' failed
…
fatal: repository 'https://git.llvm.org/git/compiler-rt/' not found
fatal: clone of 'https://git.llvm.org/git/compiler-rt' into submodule path '/home/odroid/boards/betrusted/betrusted-soc/deps/rom-locate/deps/litex/litex/soc/software/compiler_rt' failed
Failed to clone 'litex/soc/software/compiler_rt'. Retry scheduled
Cloning into '/home/odroid/boards/betrusted/betrusted-soc/deps/rom-locate/deps/litex/litex/soc/software/compiler_rt'...
fatal: repository 'https://git.llvm.org/git/compiler-rt/' not found
fatal: clone of 'https://git.llvm.org/git/compiler-rt' into submodule path '/home/odroid/boards/betrusted/betrusted-soc/deps/rom-locate/deps/litex/litex/soc/software/compiler_rt' failed
Failed to clone 'litex/soc/software/compiler_rt' a second time, aborting
Submodule path 'deps/rom-locate/deps/migen': checked out 'e2e6c726c9c34209cd326d0a80df63668285a378'
Failed to recurse into submodule path 'deps/rom-locate/deps/litex'
Submodule path 'deps/valentyusb': checked out '89ec5c8db68d52a69b3dde00a6b869850dbf37a4'
Submodule path 'fw/curve25519-dalek': checked out '2a1aaa72e88248f83d06afd064cac0dfc093857f'
Submodule path 'fw/embedded-graphics': checked out 'c58e96a39d45f6ca5c5b13da2c671a36ba2db2cc'
Submodule path 'fw/engine25519-as': checked out '63271299e47b40303461259c2555b76d6b0dddad'
Submodule path 'fw/x25519-dalek': checked out '6c4684b473a286235e5f4d9ca31272ae372839f2'
Failed to recurse into submodule path 'deps/pythondata-cpu-vexriscv'
Failed to recurse into submodule path 'deps/rom-locate'
bunnie commented 3 years ago

I've resolved the pythondata-cpu-vexriscv clone issue; for the rom-locate, it's probably better that it doesn't try to clone its dependencies. The script in there has two roles, one is to process locations, and the other is to discover them. the full dependency tree is only needed for discovery, but in this case we're just using it for processing locations.

I recently did a clone-from-scratch and rebuild, and while the rom-locate error is cosmetically objectionable, it seems not to impact the build.