Skip to content

source-code link return 403 #1671

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

Closed
zhongchengyong opened this issue Feb 14, 2025 · 3 comments
Closed

source-code link return 403 #1671

zhongchengyong opened this issue Feb 14, 2025 · 3 comments

Comments

@zhongchengyong
Copy link

zhongchengyong commented Feb 14, 2025

After git clone, configure, when I execute the 'make' command, it occurs:

Submodule 'gcc' (https://gcc.gnu.org/git/gcc.git) registered for path 'gcc'  

Cloning into '/home/zhong/riscv-gnu-toolchain/gcc'...  

fatal: unable to access 'https://gcc.gnu.org/git/gcc.git/': The requested URL returned error: 403  

fatal: clone of 'https://gcc.gnu.org/git/gcc.git' into submodule path '/home/zhong/riscv-gnu-toolchain/gcc' failed  

Failed to clone 'gcc'. Retry scheduled  

Cloning into '/home/zhong/riscv-gnu-toolchain/gcc'...  

fatal: unable to access 'https://gcc.gnu.org/git/gcc.git/': The requested URL returned error: 403  

fatal: clone of 'https://gcc.gnu.org/git/gcc.git' into submodule path '/home/zhong/riscv-gnu-toolchain/gcc' failed  

How to solve this issue?

@TommyMurphyTM1234
Copy link
Collaborator

TommyMurphyTM1234 commented Feb 14, 2025

Seems like a (presumably transient) issue with the upstream GCC repo and not with this repo. Such issues occur with repos from time to time. Maybe retry again after a while. Also, try cloning the GCC repo separately and see what happens.

Note that there is a separate problem with the riscv-gnu-toolchain Makefile fetching from some upstream repos that may require a workaround to disable shallow cloning for now.

See here:

A workaround using sed is described here:

@TommyMurphyTM1234
Copy link
Collaborator

I presume that this was a transient issue and/or related to the known issue with shallow cloning.

@zhongchengyong
Copy link
Author

@TommyMurphyTM1234 Sorry for the late reply. For anyone who has same issue, maybe you can try replace the GNU link to github mirror repo, I have done this by the fork:https://github.com/zhongchengyong/riscv-gnu-toolchain

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