black-parrot-hdk / zynq-parrot

BlackParrot on Zynq
BSD 3-Clause "New" or "Revised" License
25 stars 14 forks source link

Issues with setup #106

Open jackhumphries opened 5 days ago

jackhumphries commented 5 days ago

I am following the setup instructions and I am seeing a couple issues.

  1. With make checkout, I see the following:
    
    =====================================
    git clone -j 6 --single-branch --recurse-submodules --shallow-submodules --shallow-since=2020-01-01 -b hb-dev  https://github.com/bespoke-silicon-group/llvm-project llvm-project || \
    echo "LLVM already cloned, reusing"
    Cloning into 'llvm-project'...
    remote: Enumerating objects: 112590, done.
    remote: Counting objects: 100% (112590/112590), done.
    remote: Compressing objects: 100% (89382/89382), done.
    remote: Total 112590 (delta 30870), reused 57300 (delta 19694), pack-reused 0 (from 0)
    Receiving objects: 100% (112590/112590), 131.88 MiB | 10.14 MiB/s, done.
    Resolving deltas: 100% (30870/30870), done.
    Updating files: 100% (90210/90210), done.
    make[3]: Leaving directory '/home/jhumphri/zynq-parrot/import/bsg_manycore/software/riscv-tools'
    make[2]: Leaving directory '/home/jhumphri/zynq-parrot/import/bsg_manycore/software/riscv-tools'
    make checkout-spike
    make[2]: Entering directory '/home/jhumphri/zynq-parrot/import/bsg_manycore/software/riscv-tools'
    =====================================
    Cloning riscv-isa-sim repo...
    =====================================
    git clone -j 6 --single-branch --recurse-submodules --shallow-submodules --shallow-since=2020-01-01 -b v1.1.0 https://github.com/riscv/riscv-isa-sim.git riscv-isa-sim || \
    echo "riscv-isa-sim already cloned, reusing"
    Cloning into 'riscv-isa-sim'...
    remote: Enumerating objects: 7293, done.
    remote: Counting objects: 100% (7293/7293), done.
    remote: Compressing objects: 100% (2751/2751), done.
    remote: Total 7293 (delta 4649), reused 6759 (delta 4260), pack-reused 0 (from 0)
    Receiving objects: 100% (7293/7293), 1.71 MiB | 11.92 MiB/s, done.
    Resolving deltas: 100% (4649/4649), done.
    Note: switching to '530af85d83781a3dae31a4ace84a573ec255fefa'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Checking if /home/jhumphri/zynq-parrot/import/bsg_manycore/software/riscv-tools/spike is applied... Checking if /home/jhumphri/zynq-parrot/import/bsg_manycore/software/riscv-tools/spike-gcc is applied... make[2]: Leaving directory '/home/jhumphri/zynq-parrot/import/bsg_manycore/software/riscv-tools' error: patch failed: fesvr/syscall.cc:110 error: fesvr/syscall.cc: patch does not apply make[1]: Leaving directory '/home/jhumphri/zynq-parrot/import/bsg_manycore/software/riscv-tools' error: patch failed: riscv/devices.h:6 error: riscv/devices.h: patch does not apply



2. With `make prep_bsg`, it seems to try to clone `https://github.com/Zeex/subhook.git/`, but this repository either does not exist or requires authentication.

Do you know how I can fix these issues? Thanks!
dpetrisko commented 4 days ago

Thanks for the report

https://github.com/black-parrot/black-parrot-sim/issues/23

This is an issue with the upstream repo, you can see some fixes here

the bsg_manycore one I haven’t seen before. But we don’t use the manycore spike build, so I would just comment out the problematic line from the Makefile