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

Error in installing the riscv gnu tool chain #25

Open
amitgargmentor opened this issue Jun 16, 2020 · 2 comments
Open

Error in installing the riscv gnu tool chain #25

amitgargmentor opened this issue Jun 16, 2020 · 2 comments

Comments

@amitgargmentor
Copy link

While runing the installing for riscv tools as below:

./configure --prefix=./pulp/riscv_install --with-arch=rv32imc --with-cmodel=medlow --enable-multilib
Make

I see below error:
checking for riscv32-unknown-elf-gcc... ./pulp/pulp-riscv-gnu-toolchain/build-gcc-newlib-stage2/./gcc/xgcc -B./pulp/pulp-riscv-gnu-toolchain/build-gcc-newlib-stage2/./gcc/ -B./pulp/riscv_install/riscv32-unknown-elf/bin/ -B./pulp/riscv_install/riscv32-unknown-elf/lib/ -isystem ./pulp/riscv_install/riscv32-unknown-elf/include -isystem ./pulp/riscv_install/riscv32-unknown-elf/sys-include
checking for suffix of object files... configure: error: in ./pulp/pulp-riscv-gnu-toolchain/build-gcc-newlib-stage2/riscv32-unknown-elf/libgcc': configure: error: cannot compute suffix of object files: cannot compile See config.log' for more details.
make[2]: *** [configure-target-libgcc] Error 1
make[2]: Leaving directory /home/amgarg/project/Portaskela/SOC/pulp/pulp-riscv-gnu-toolchain/build-gcc-newlib-stage2' make[1]: *** [all] Error 2 make[1]: Leaving directory /home/amgarg/project/Portaskela/SOC/pulp/pulp-riscv-gnu-toolchain/build-gcc-newlib-stage2'
make: *** [stamps/build-gcc-newlib-stage2] Error 2

Any idea ?

@bluewww
Copy link

bluewww commented Oct 26, 2020

--prefix needs an absolute path, maybe its that.

@WeiyanZh
Copy link

Maybe your gdb version does not work with your python version. You can try downgrading python.

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

3 participants