Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Ubuntu: Modelsim + Simulating NIOS 2

Hi,

I've installed the newest version of Quartus (16.0 with update) in the light version. Furthermore I've installed modelsim altera light edition.

Now I want to simulate a NIOS 2 system (very simple, just to start with simulating using NIOS 2, jtag-uart and some pio). I generated all the files via qsys and started a project via nios2eds, which just output something and using some leds on the Atlas-SoC Board (which works on Hardware).

But when I want to simulate with modelsim, I always get an error like this:

# Compiling /tmp/myname@mypc_dpi_5505/linuxpe_gcc-4.7.4/exportwrapper.c# ** Fatal: ** Error: (vsim-3828) Could not link 'vsim_auto_compile.so': cmd = '/home/myname/bin/Altera/Modelsim/modelsim_ase/gcc-4.7.4-linux/bin/gcc -shared -fPIC -m32 -o "/tmp/myname@mypc_dpi_5505/linuxpe_gcc-4.7.4/vsim_auto_compile.so"  "/tmp/florian@florian-laptop_dpi_5505/linuxpe_gcc-4.7.4/exportwrapper.o"   '#  (vsim-50) A call to system(/home/myname/bin/Altera/Modelsim/modelsim_ase/gcc-4.7.4-linux/bin/gcc -shared -fPIC -m32 -o "/tmp/myname@mypc_dpi_5505/linuxpe_gcc-4.7.4/vsim_auto_compile.so"  "myname@mypc_dpi_5505/linuxpe_gcc-4.7.4/exportwrapper.o"    >'/tmp/questatmp.Yxzdke' 2>&1) returned error code '1'.#  The logfile contains the following messages:#  /home/myname/bin/Altera/Modelsim/modelsim_ase/gcc-4.7.4-linux/bin/../libexec/gcc/i686-pc-linux-gnu/4.7.4/ld: cannot find crti.o: No such file or directory#  collect2: error: ld returned 1 exit status#  #  No such file or directory. (errno = ENOENT)

OK, I thougt, this could not be so hard to fix. I installed all the libs I found which must be installed. I also tried to copy the crti.o lib from /usr/lib into the lib directory and so on, but nothing helps.

Does anybody has the same issue and know a fix? Is this a modelsim mistake or a behaviour from linux/ubuntu?

Thanks for help!
No RepliesBe the first to reply