-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Multilib toolchain build fails with 'python': No such file or directory
#1330
Comments
You haven't provided even the basic information needed for somebody to try to understand our reproduce your issue. Please also attach logs rather than screenshots as the latter are not convenient to read for many users. You also don't seem to have all prerequisites installed (
and may be using the |
Sorry about that I am new to Git. I am working on Ubuntu 22.04.2 LTS and all commands I have used are below. I am sure I have installed python3 however it can't find. I also added the full log below. Thank you in advance.
Screenshot of the error: |
You still haven't installed Do one of the following:
and then try again:
|
This worked for me:
Compressed |
This failed:
So your problem is that you don't have any |
I think it has worked. How can I check if the make is successful? Thanks for your effort. |
Unfortunately I couldn't be able to use riscv64-unknown-elf-gcc command, as seen below log file. I added /opt/riscv/bin to path by sudo nano /etc/environment and by writing :/opt/riscv/bin |
If your toolchain built successfully after you installed You don't clarify if/how your toolchain built successfully (e.g. your full build log), where it was installed to, what your Even the following basic information would help.
|
'python': No such file or directory
Why are you doing this rather than editing your local account's Changes made to the |
I have edited bashrc file and /opt/riscv/bin can be seen in the path. So I think that it is OK. However, riscv64-unknown-elf-gcc command can't find -lc and -lgloss. mertem@mertem:~/Downloads/RISC-V/test/bubble_sort$ riscv64-unknown-elf-gcc bubble_sort.c ../crt0.s -march=rv32i -mabi=ilp32 -T ../linksc.ld -nostartfiles -ffunction-sections -fdata-sections -Wl,--gc-sections -o bubble_sort.elf |
You keep posting partial info which makes it almost impossible to comment meaningfully.
is not the same as this issue:
You have not clarified the exact commands that you have used to clone/configure/build/install the toolchain and a build log that shows how that went. |
If you installed your toolchain in
then why are you picking up a RISC-V linker from
It sounds like your setup is messed up. You would be better off starting with a clean slate - e.g. a clean installation of the OS on a physical or virtual machine. |
This (above) suggests that you previously installed a RISC-V toolchain from the Ubuntu software repos - e.g.:
which will put things in "system" directories including If you are using your own build of the toolchain then you need to take care to ensure that only it is used and not bits of some other toolchain. I would suggest that you at least remove this toolchain and try again:
|
Thanks for all your effort. As you said the problem is turned out to be the PATH. Hence I added the wrong directory to PATH, riscv64-unknown-elf-gcc command couldn't be found. Then I checked the exact directory of gcc-riscv64-unknown-elf, then added to PATH. Eventually everything works correctly! |
That's why I asked for this information earlier:
|
After I have installed the prerequisites, I have tried to install the toolchain via make command. However after couple of minutes, the below error was given.
The text was updated successfully, but these errors were encountered: