chipsalliance / rocket-tools

Software tools that support rocket-chip (GNU toolchain, ISA simulator, tests)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.git/config: binutils "git" link doesn't work behind proxy, suggest changing to "https"

n-kremeris opened this issue · comments

Hi All,

For some users behind a corporate proxy, the git submodules init command is likely to fail, whereas other submodules work without problems:

fatal: clone of 'git://sourceware.org/git/binutils-gdb.git' into submodule path '/work/riscv-dev-tools/sources/rocket-tools/fsf-binutils-gdb' failed
Failed to clone 'fsf-binutils-gdb'. Retry scheduled
Cloning into '/work/riscv-dev-tools/sources/rocket-tools/riscv-gnu-toolchain'...
Cloning into '/work/riscv-dev-tools/sources/rocket-tools/riscv-isa-sim'...
Cloning into '/work/riscv-dev-tools/sources/rocket-tools/riscv-opcodes'...
Cloning into '/work/riscv-dev-tools/sources/rocket-tools/riscv-openocd'...
Cloning into '/work/riscv-dev-tools/sources/rocket-tools/riscv-pk'...
Cloning into '/work/riscv-dev-tools/sources/rocket-tools/riscv-tests'...
Cloning into '/work/riscv-dev-tools/sources/rocket-tools/fsf-binutils-gdb'...
fatal: unable to connect to sourceware.org:
sourceware.org[0: 8.43.85.97]: errno=Connection timed out

I would like to suggest replacing the default .git/config binutils link to https://sourceware.org/git/binutils-gdb.git.
This fixes the problem for me, and will likely help someone else avoid issues when working behind proxy, (hopefully) without impacting anyone negatively.