Errors encountered when compiling the toolchain
#3
(04-17-2019, 03:08 PM)bluewww Wrote: I don't think your meant to use the linux target with rv32g. We don't run linux on platforms using RI5CY but rather a custom operating system. This means you need to compile it like this
Code:
./configure --prefix=/opt/riscv --with-arch=rv32imc --with-cmodel=medlow --enable-multilib
make


I will talk with our software guy to update the documentation.

hello bluewww,

Thank you very much for your reply. I think I understand what you mean.  I understood it wrong before. Also want to ask, is there any difference between "Installation (Pulp)" and "Installation (Newlib)" in https://github.com/pulp-platform/pulp-ri...-toolchain? According to the description in the readme, "Installation (Pulp)" should be the multilib support to build the libraries for the various cores (riscy, zeroriscy and so on).
So which core does Installation (Newlib) support?

"
Installation (Pulp)
To build the Newlib cross-compiler for all pulp variants, pick an install path. If you choose, say, /opt/riscv, then add /opt/riscv/bin to your PATH now. Then, simply run the following command:

./configure --prefix=/opt/riscv --with-arch=rv32imc --with-cmodel=medlow --enable-multilib
Make
This will use the multilib support to build the libraries for the various cores (riscy, zeroriscy and so on). The right libraries will be selected depending on which compiler options you use.

Installation (Newlib)
To build the Newlib cross-compiler, pick an install path. If you choose, say, /opt/riscv, then add /opt/riscv/bin to your PATH now. Then, simply run the following command:

./configure --prefix=/opt/riscv
Make
You should now be able to use riscv-gcc and its cousins.
Reply


Messages In This Thread
RE: Errors encountered when compiling the toolchain - by zhouqiang - 04-18-2019, 01:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)