issue with pulp build
#1
Hello, pulp community

i have some issue on build pulp, (i just succeed pulpissimo, then i'm trying to build pulp)

https://github.com/pulp-platform/pulp

i trying to build pulp with above link. But when i command "make build"

it makes error 

Makefile:30: warning: overriding recipe for target '/root/pulp/sim/tcl_files/config/vsim_ips.tcl'
Makefile:30: warning: ignoring old recipe for target '/root/pulp/sim/tcl_files/config/vsim_ips.tcl'
make -C sim all
make[1]: Entering directory '/root/pulp/sim'
make -C ../rtl/tb/remote_bitbang clean
make[2]: Entering directory '/root/pulp/rtl/tb/remote_bitbang'
rm -rf librbs.so remote_bitbang.o sim_jtag.o ./.d
make[2]: Leaving directory '/root/pulp/rtl/tb/remote_bitbang'
rm -r work
rm modelsim.ini
chmod: cannot access 'modelsim.ini': No such file or directory
make[1]: *** [Makefile:57: lib] Error 1
make[1]: Leaving directory '/root/pulp/sim'
make: *** [Makefile:120: build] Error 2



in some communities, they said commented "rm modelsim.ini"
so i make that code commented

then it has error 

# source compile.tcl
# Questa Intel Starter FPGA Edition-64 vlog 2023.3 Compiler 2023.07 Jul 17 2023
# ** Error (suppressible): (vlog-12110) All optimizations are disabled because the -novopt option is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features, please see the User's Manual section on Preserving Object Visibility with vopt. -novopt option is now deprecated and will be removed in future releases.
# Errors: 1, Warnings: 0
# 1
#  quit
vopt +acc=npr -o vopt_tb tb_pulp -floatparameters+tb_pulp -work work
Questa Intel Starter FPGA Edition-64 vopt 2023.3 Compiler 2023.07 Jul 17 2023
** Warning: (vopt-10587) Some optimizations are turned off because the +acc switch is in effect. This will cause your simulation to run slowly. Please use -access/-debug to maintain needed visibility.
Start time: 20:22:08 on Jun 27,2024
vopt "+acc=npr" -o vopt_tb tb_pulp -floatparameters+tb_pulp -work work

Top level modules:
        tb_pulp

Analyzing design...
** Error: (vopt-13130) Failed to find design unit 'tb_pulp'.
        Searched libraries:
            work
Optimization failed
End time: 20:22:08 on Jun 27,2024, Elapsed time: 0:00:00
Errors: 1, Warnings: 1
make[1]: *** [Makefile:41: opt] Error 2
make[1]: Leaving directory '/root/pulp/sim'
make: *** [Makefile:120: build] Error 2

how can i fix it? the error vlog-12110, i think its problem of questasim.

How about second one? why they find design unit tb_pulp?


Attached Files Thumbnail(s)
   
Reply
#2
Using the Altera/Intel starter edition of Model/Questasim was known to cause issues. This might be related, note that the scripts are for the 'proper' version of Questasim. I do not know if the starter edition accepts all options.
Visit pulp-platform.org and follow us on twitter @pulp_platform
Reply
#3
Hello, I encountered the same issue as you and also tried removing the last line, but it didn’t resolve the problem. Additionally, I tested with two versions of QuestaSim: 2021.2 and 10.7c, but the issue persists. Have you managed to resolve the error?
Reply
#4
(11-27-2024, 03:32 AM)jsen_che11 Wrote: Hello, I encountered the same issue as you and also tried removing the last line, but it didn’t resolve the problem. Additionally, I tested with two versions of QuestaSim: 2021.2 and 10.7c, but the issue persists. Have you managed to resolve the error?

i think  pulp github does not updated few years. so i expect that pulpissimo in pulp would not support these day's versions. (pulpissimo has been updated in these days, but not in pulp)

i try again soon.
Reply
#5
Thank you very much for your response! I accidentally discovered that the
Code:
make build
command doesn’t need to execute successfully; you just need to run the following commands instead:
bash
复制代码
Code:
git clone https://github.com/pulp-platform/regression_tests.git 
git clone https://github.com/pulp-platform/pulp-runtime.git 
source pulp-runtime/configs/pulp.sh 
export PATH=*path to riscv gcc toolchain*/bin:$PATH 
export PULP_RISCV_GCC_TOOLCHAIN=*path to riscv gcc toolchain* 
cd regression_tests/hello 
make clean all run gui=1 
The only thing to note is that if your system has two versions of the toolchain installed, you must pay attention to their path settings.
For example, I first installed Pulpissimo and successfully ran it using riscv-gnu-toolchain, which was installed under  /opt/riscv
. The path settings were also configured accordingly.
However, when I tried to install Pulp, I used  pulp-riscv-gnu-toolchain, which was installed in a different location. But I didn’t update my PATH
or run bash:
Code:
export PATH=*path to riscv gcc toolchain*/bin:$PATH 
export PULP_RISCV_GCC_TOOLCHAIN=*path to riscv gcc toolchain* 
This caused the issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)