drichmond / RISC-V-On-PYNQ

RISC-V Integration for PYNQ
Other
165 stars 57 forks source link

Problems with the first notebook: Downloading Dependencies and Configuring your Environment #12

Open AlexZome opened 5 years ago

AlexZome commented 5 years ago

Hi, I have been trying to download riscv-gnu-toolchain into the pynq-z1 board, but it seems that several errors happens when I execute the following code: !git clone --recursive https://github.com/riscv/riscv-gnu-toolchain /home/xilinx/riscv-gnu-toolchain and the output window looks like this:

Cloning into '/home/xilinx/riscv-gnu-toolchain'... remote: Enumerating objects: 11, done. remote: Counting objects: 100% (11/11), done. remote: Compressing objects: 100% (9/9), done. remote: Total 7392 (delta 3), reused 6 (delta 2), pack-reused 7381 Receiving objects: 100% (7392/7392), 4.55 MiB | 2.06 MiB/s, done. Resolving deltas: 100% (3820/3820), done. Submodule 'qemu' (https://git.qemu.org/git/qemu.git) registered for path 'qemu' Submodule 'riscv-binutils' (https://github.com/riscv/riscv-binutils-gdb.git) registered for path 'riscv-binutils' Submodule 'riscv-dejagnu' (https://github.com/riscv/riscv-dejagnu.git) registered for path 'riscv-dejagnu' Submodule 'riscv-gcc' (https://github.com/riscv/riscv-gcc.git) registered for path 'riscv-gcc' Submodule 'riscv-gdb' (https://github.com/riscv/riscv-binutils-gdb.git) registered for path 'riscv-gdb' Submodule 'riscv-glibc' (https://github.com/riscv/riscv-glibc.git) registered for path 'riscv-glibc' Submodule 'riscv-newlib' (https://github.com/riscv/riscv-newlib.git) registered for path 'riscv-newlib' Cloning into '/home/xilinx/riscv-gnu-toolchain/qemu'... remote: Counting objects: 442704, done.
remote: Compressing objects: 100% (82604/82604), done.
remote: Total 442704 (delta 362711), reused 438477 (delta 359030)
Receiving objects: 100% (442704/442704), 160.09 MiB | 3.12 MiB/s, done. Resolving deltas: 100% (362711/362711), done. Cloning into '/home/xilinx/riscv-gnu-toolchain/riscv-binutils'... remote: Enumerating objects: 127, done.
remote: Counting objects: 100% (127/127), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 836473 (delta 97), reused 87 (delta 66), pack-reused 836346
Receiving objects: 100% (836473/836473), 314.21 MiB | 2.83 MiB/s, done. Resolving deltas: 100% (692936/692936), done. Cloning into '/home/xilinx/riscv-gnu-toolchain/riscv-dejagnu'... remote: Enumerating objects: 5208, done.
remote: Total 5208 (delta 0), reused 0 (delta 0), pack-reused 5208 Receiving objects: 100% (5208/5208), 3.10 MiB | 2.71 MiB/s, done. Resolving deltas: 100% (3957/3957), done. Cloning into '/home/xilinx/riscv-gnu-toolchain/riscv-gcc'... remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 2157761 (delta 0), reused 2 (delta 0), pack-reused 2157750
Receiving objects: 100% (2157761/2157761), 1.01 GiB | 2.94 MiB/s, done. Resolving deltas: 100% (1796529/1796529), done. Cloning into '/home/xilinx/riscv-gnu-toolchain/riscv-gdb'... remote: Enumerating objects: 132, done.
remote: Counting objects: 100% (132/132), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 836478 (delta 101), reused 92 (delta 70), pack-reused 836346
Receiving objects: 100% (836478/836478), 314.21 MiB | 2.89 MiB/s, done. error: inflate: data stream error (incorrect header check) fatal: serious inflate inconsistency fatal: index-pack failed fatal: clone of 'https://github.com/riscv/riscv-binutils-gdb.git' into submodule path '/home/xilinx/riscv-gnu-toolchain/riscv-gdb' failed Failed to clone 'riscv-gdb'. Retry scheduled Cloning into '/home/xilinx/riscv-gnu-toolchain/riscv-glibc'... remote: Enumerating objects: 459684, done.
remote: Total 459684 (delta 0), reused 0 (delta 0), pack-reused 459684 Receiving objects: 100% (459684/459684), 145.80 MiB | 2.80 MiB/s, done. error: inflate: data stream error (invalid distance too far back) fatal: serious inflate inconsistency fatal: index-pack failed fatal: clone of 'https://github.com/riscv/riscv-glibc.git' into submodule path '/home/xilinx/riscv-gnu-toolchain/riscv-glibc' failed Failed to clone 'riscv-glibc'. Retry scheduled Cloning into '/home/xilinx/riscv-gnu-toolchain/riscv-newlib'... remote: Enumerating objects: 165026, done.
remote: Total 165026 (delta 0), reused 0 (delta 0), pack-reused 165026
Receiving objects: 100% (165026/165026), 98.24 MiB | 2.94 MiB/s, done. Resolving deltas: 100% (133860/133860), done. Cloning into '/home/xilinx/riscv-gnu-toolchain/riscv-gdb'... remote: Enumerating objects: 132, done.
remote: Counting objects: 100% (132/132), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 836478 (delta 101), reused 92 (delta 70), pack-reused 836346
Receiving objects: 100% (836478/836478), 314.21 MiB | 2.60 MiB/s, done. error: inflate: data stream error (incorrect header check) fatal: serious inflate inconsistency fatal: index-pack failed fatal: clone of 'https://github.com/riscv/riscv-binutils-gdb.git' into submodule path '/home/xilinx/riscv-gnu-toolchain/riscv-gdb' failed Failed to clone 'riscv-gdb' a second time, aborting

I have tried to download the dependencies a couple times, but I get the same errors. Also I have checked the folders of the toolchain and are empty.

Do you know how can I fix that?

Thanks in advance.