Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository does not clone #1613

Closed
mateoconlechuga opened this issue Nov 8, 2024 · 5 comments
Closed

Repository does not clone #1613

mateoconlechuga opened this issue Nov 8, 2024 · 5 comments

Comments

@mateoconlechuga
Copy link

mateoconlechuga commented Nov 8, 2024

Due to changes in the EDK2 submodule (tianocore/edk2#6398) used by qemu, this repository will no longer clone / checkout submodules correctly. It looks like a backport to the stable version may be provided at some time. Not sure how this should be handled

@TommyMurphyTM1234
Copy link
Collaborator

TommyMurphyTM1234 commented Nov 8, 2024

I presume you mean this?

git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain
Cloning into 'riscv-gnu-toolchain'...
remote: Enumerating objects: 9405, done.
remote: Counting objects: 100% (399/399), done.
remote: Compressing objects: 100% (108/108), done.
remote: Total 9405 (delta 319), reused 331 (delta 291), pack-reused 9006 (from 1)
Receiving objects: 100% (9405/9405), 6.43 MiB | 2.70 MiB/s, done.
Resolving deltas: 100% (4679/4679), done.
Submodule 'binutils' (https://sourceware.org/git/binutils-gdb.git) registered for path 'binutils'
Submodule 'dejagnu' (https://git.savannah.gnu.org/git/dejagnu.git) registered for path 'dejagnu'
Submodule 'gcc' (https://gcc.gnu.org/git/gcc.git) registered for path 'gcc'
Submodule 'gdb' (https://sourceware.org/git/binutils-gdb.git) registered for path 'gdb'
Submodule 'glibc' (https://sourceware.org/git/glibc.git) registered for path 'glibc'
Submodule 'llvm' (https://github.com/llvm/llvm-project.git) registered for path 'llvm'
Submodule 'musl' (https://git.musl-libc.org/git/musl) registered for path 'musl'
Submodule 'newlib' (https://sourceware.org/git/newlib-cygwin.git) registered for path 'newlib'
Submodule 'pk' (https://github.com/riscv-software-src/riscv-pk.git) registered for path 'pk'
Submodule 'qemu' (https://gitlab.com/qemu-project/qemu.git) registered for path 'qemu'
Submodule 'spike' (https://github.com/riscv-software-src/riscv-isa-sim.git) registered for path 'spike'
Submodule 'uclibc-ng' (https://git.uclibc-ng.org/git/uclibc-ng.git) registered for path 'uclibc-ng'

...

Cloning into '/home/user/riscv-gnu-toolchain/qemu/roms/edk2/UnitTestFrameworkPkg/Library/SubhookLib/subhook'...
Username for 'https://github.com':
Password for 'https://github.com':
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/Zeex/subhook.git/'
fatal: clone of 'https://github.com/Zeex/subhook.git' into submodule path '/home/user/riscv-gnu-toolchain/qemu/roms/edk2/UnitTestFrameworkPkg/Library/SubhookLib/subhook' failed
Failed to clone 'UnitTestFrameworkPkg/Library/SubhookLib/subhook'. Retry scheduled
Cloning into '/home/user/riscv-gnu-toolchain/qemu/roms/edk2/UnitTestFrameworkPkg/Library/SubhookLib/subhook'...
Username for 'https://github.com':
Password for 'https://github.com':
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/Zeex/subhook.git/'
fatal: clone of 'https://github.com/Zeex/subhook.git' into submodule path '/home/user/riscv-gnu-toolchain/qemu/roms/edk2/UnitTestFrameworkPkg/Library/SubhookLib/subhook' failed
Failed to clone 'UnitTestFrameworkPkg/Library/SubhookLib/subhook' a second time, aborting
fatal: Failed to recurse into submodule path 'qemu/roms/edk2'

...

fatal: Failed to recurse into submodule path 'qemu'

@mateoconlechuga
Copy link
Author

Yes that's right

@TommyMurphyTM1234
Copy link
Collaborator

TommyMurphyTM1234 commented Nov 8, 2024

No problem occurs if you do this:

git clone https://github.com/riscv-collab/riscv-gnu-toolchain
cd riscv-gnu-toolchain
./configure --prefix=`pwd`/installed-tools --disable-gdb --with-sim=qemu
make build-sim

...

Installing /home/user/riscv-gnu-toolchain/qemu/pc-bios/keymaps/th to /home/user/riscv-gnu-toolchain/installed-tools/share/qemu/keymaps
Installing /home/user/riscv-gnu-toolchain/qemu/pc-bios/keymaps/tr to /home/user/riscv-gnu-toolchain/installed-tools/share/qemu/keymaps
make[1]: Leaving directory '/home/user/riscv-gnu-toolchain/build-qemu'
mkdir -p stamps/
date > stamps/build-qemu

It only seems to be a problem if you do a recursive clone to begin with?

git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain
...

Won't most people be doing it the first way in which case they are not impacted by problems with the upstream QEMU submodules?

@TommyMurphyTM1234
Copy link
Collaborator

I see that you have logged the issue in upstream QEMU which is the correct place for it:

Since the issue doesn't impact riscv-gnu-tooolchain unless one does a recursive clone from the top, I'm not sure that the issue needs to remain open here?

@mateoconlechuga
Copy link
Author

Sounds good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants