pulp-platform / pulpino

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

make helloworld.vsim ERROR #398

Open SamGuitar opened 1 year ago

SamGuitar commented 1 year ago

source tcl_files/run.tcl

vsim -quiet tb -L pulpino_lib -L axi_node_lib -L apb_node_lib -L axi_mem_if_DP_lib -L axi_spi_slave_lib -L axi_spi_master_lib -L apb_uart_sv_lib -L apb_gpio_lib -L apb_event_unit_lib -L apb_spi_master_lib -L fpu_lib -L apb_pulpino_lib -L apb_fll_if_lib -L core2axi_lib -L apb_timer_lib -L axi2apb_lib -L apb_i2c_lib -L zero_riscy_lib -L axi_slice_dc_lib -L riscv_lib -L apb_uart_lib -L axi_slice_lib -L adv_dbg_if_lib -L apb2per_lib "+nowarnTRAN" "+nowarnTSCALE" "+nowarnTFMPC" "+MEMLOAD=PRELOAD" -t ps -voptargs="+acc -suppress 2103" -GTEST="" -gRISCY_RV32F=0 -gZERO_RV32E=0 -gZERO_RV32M=0 -gUSE_ZERO_RISCY=0

Start time: 22:04:06 on May 22,2023

Fatal: Error: (vsim-3827) Could not compile 'export_tramp.so': cmd = '/bin/gcc -shared -fPIC -m32 -B/usr/lib32 -g -I. -I"/home/samml/pulpino/intelFPGA/18.1/modelsim_ase/include" -I"/home/samml/pulpino/intelFPGA/18.1/modelsim_ase/../oem/include" -o "/tmp/samml@samml-VirtualBox_dpi_327384/linuxpe_gcc-5.5.0/export_tramp.so" "/tmp/samml@samml-VirtualBox_dpi_327384/linuxpe_gcc-5.5.0/export_tramp.S"'

(vsim-50) A call to system(/bin/gcc -shared -fPIC -m32 -B/usr/lib32 -g -I. -I"/home/samml/pulpino/intelFPGA/18.1/modelsim_ase/include" -I"/home/samml/pulpino/intelFPGA/18.1/modelsim_ase/../oem/include" -o "/tmp/samml@samml-VirtualBox_dpi_327384/linuxpe_gcc-5.5.0/export_tramp.so" "/tmp/samml@samml-VirtualBox_dpi_327384/linuxpe_gcc-5.5.0/export_tramp.S" >'/tmp/questatmp.vQFV8o' 2>&1) returned error code '1'.

The logfile contains the following messages:

/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a when searching for -lgcc

/bin/ld: cannot find -lgcc: No such file or directory

/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_s.so when searching for -lgcc_s

/bin/ld: cannot find -lgcc_s: No such file or directory

/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_s.so when searching for -lgcc_s

collect2: error: ld returned 1 exit status

#

No such file or directory. (errno = ENOENT)

# #

FATAL ERROR while loading design

Error loading design

I had this issue after inserting 'make helloworld.vsim'. What should I do to fix the problem? Thanks

haresh-seenivasagan commented 10 months ago

HI @SamGuitar i am facing the exact same issue did you manage to find a fix ? if so could you please share