pulp-platform / pulpino

An open-source microcontroller system based on RISC-V
http://www.pulp-platform.org
Other
902 stars 298 forks source link

make vcompile: No rule to make target #397

Closed wmhaikal00 closed 1 year ago

wmhaikal00 commented 1 year ago

Hello and hi everyone !

I'm trying to compile the RTL. However, i met with this issue. Can anyone advice me on what should i do to compile the RTL successfully ? Your help is much appreciated

pulpino github problem

AdmsLCW commented 1 year ago

Select a configuration file about riscv, put it in the build folder, and run the configuration file in the terminal (because the file is executable). When the configuration is complete, enter make vcompile.

wmhaikal00 commented 1 year ago

Can you give me the specific name of the configuration file? I don't quite get it. Thanks!

AdmsLCW commented 1 year ago

My choice is cmake_configure.riscv.gc.sh

wmhaikal00 commented 1 year ago

I tried to run the cmake_configure.riscv.gcc.sh as you suggested. But it seems the system is unknown to cmake. Thus it unable to compile simple test program. My current version of cmake is 3.10.2.

image

Do you have any suggestions on how should i fix this problem ?

AdmsLCW commented 1 year ago

The problem is that you do not have the cross-compiler installed, and the configuration file cannot find the cross-compiler. You need to download the cross-compiler (https://github.com/pulp-platform/ri5cy_gnu_toolchain). If you have installed the cross-compiler and still cannot find the cross-compiler, you just did not add the path of the cross-compiler to the environment variable in the user. If you have trouble compiling the cross-compiler, try compiling with gcc version 5.2 or 5.20 (I don't remember exactly).