Closed JuanEsco063 closed 2 years ago
Hi Juan,
I've run into this issue as well. I'm not sure why this repo doesn't want to download through our script anymore. Here is a manual fix while I look into a more permanent one:
${ESP_ROOT}/_risv_build/riscv-gnu-toolchain/riscv-qemu/roms/
${ESP_ROOT}/utils/toolchain/build_riscv_toolchain.sh
to avoid removing the temporary directoryLet me know if you have further issues.
Let me try that.
What I noticed is the URL for the QEMU submodule in the .gitmodule file in the riscv-gnu-toolchain repo points to https://git.qemu.org/git/qemu.git however, if you go to that site using a browser, you are automatically redirected to https://gitlab.com/qemu-project/qemu . Maybe the script or git are not redirecting automatically.
@jzuckerman Following your steps resolved the issue. Would it be best for me to close the issue or leave it open until the script is fixed?
@jzuckerman I am installing ESP on another computer (rather, a docker container ) and while installing the RISCV toolchain I am getting the following error:
This is after applying the workaround you mentioned for the QEMU repo.
Let's leave the issue open until there's a permanent fix.
Not sure about the new error. What's the OS of this machine? Are there any helpful details in config.log?
Hi @jzuckerman ,
This is the OS information
NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic
I have also attached the conf log file. The most noteworthy thing I can find is a few errors in the Core tests section:
--host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~18.04) configure:3278: $? = 0 configure:3267: /home/vitis-ai-user/repos/esp/_riscv_build/buildroot/output/host/bin/ccache /usr/bin/gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3278: $? = 1 configure:3267: /home/vitis-ai-user/repos/esp/_riscv_build/buildroot/output/host/bin/ccache /usr/bin/gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? gcc: fatal error: no input files compilation terminated.
Is this issue resolved now ?
Not that I am aware. I'm still doing the workaround suggested by Joseph.
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Mayank Kabra @.> Sent: Saturday, July 23, 2022 7:32:35 AM To: sld-columbia/esp @.> Cc: Escobedo Contreras, Juan Andres @.>; Author @.> Subject: Re: [sld-columbia/esp] Missing submodule in QEMU repository while installing RISC-V 64-bit (Ariane) toolchain (Issue #164)
Check twice before you click! This email originated from outside PNNL.
Is this issue resolved now ?
— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsld-columbia%2Fesp%2Fissues%2F164%23issuecomment-1193110297&data=05%7C01%7Cjuan.escobedo%40pnnl.gov%7C21c3da51ef094b2b59b108da6c9f0aaf%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C637941727586594925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=LUt4k2B9L%2BNRQ%2BuBO2ziFjd8IgiiNkWyUm1SMyNFCnk%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQ35UJAIYZQ3YTMW3QX6FL3VVPJ5HANCNFSM5ZC6A46Q&data=05%7C01%7Cjuan.escobedo%40pnnl.gov%7C21c3da51ef094b2b59b108da6c9f0aaf%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C637941727586594925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MjEqGhRtCpExm%2B9yxhzr7Y4wH4jDvoiPhCylo8B%2F9eg%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
No, i tried the workaround but it didnt work for me ..
Can you post more details about where it fails for you?
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Mayank Kabra @.> Sent: Saturday, July 23, 2022 9:27:44 AM To: sld-columbia/esp @.> Cc: Escobedo Contreras, Juan Andres @.>; Author @.> Subject: Re: [sld-columbia/esp] Missing submodule in QEMU repository while installing RISC-V 64-bit (Ariane) toolchain (Issue #164)
Check twice before you click! This email originated from outside PNNL.
No, i tried the workaround but it didnt work for me ..
— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsld-columbia%2Fesp%2Fissues%2F164%23issuecomment-1193125796&data=05%7C01%7Cjuan.escobedo%40pnnl.gov%7C362062f8126c4235639508da6caf2098%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C637941796692134084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rBrig8qHQV3NSYJ0O%2FwAOediUR%2Bmw0B3iFHQk03Ld3g%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQ35UJD2GHDRVXDBIONTEO3VVPXNBANCNFSM5ZC6A46Q&data=05%7C01%7Cjuan.escobedo%40pnnl.gov%7C362062f8126c4235639508da6caf2098%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C637941796692144045%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QwBjrgCVpjoo5bAGPcrQGveoZQ2xInTYM4zR%2FCbpix0%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
Sorry for the delay here. The following two commands should resolve this issue. I'll include them as a part of the toolchain.
git config --global url.https://github.com/qemu/.insteadOf git://git.qemu-project.org/
git config --global url.https://anongit.freedesktop.org/git/.insteadOf git://anongit.freedesktop.org/
It seems one of the submodules, qemu-palcode specifically, of the qemu repository has been moved or is somehow broken.
I am following the steps from the setup tutorial and the error appears when I run the command to install the risc-v 64-bit Ariane toolchain:
./utils/toolchain/build_riscv_toolchain.sh
Here is a screenshot of the error I get:
I am running this on Ubuntu 20.04 LTS. I installed the toolchains without issue before so I doubt this is affecting it.