Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHave a look at someone blog on this error http://cellspe.matrix.jp/zerofpga/inst_quartus.html (http://cellspe.matrix.jp/zerofpga/inst_quartus.html) It seems like we need to manually set the gcc version used for modelsim similar to https://github.com/pulp-platform/pulpino/issues/110#issuecomment-326100024 (https://github.com/pulp-platform/pulpino/issues/110#issuecomment-326100024) Anyone have any idea how ?
--- Quote Start --- On HLS compile error In the environment of Ubuntu 16.04 and gcc 5.4 (officially HLS is not supported), if you set up simulation linkage at HLS compile time, the following error will be output. # ** Fatal: ** Error: (vsim - 3828) Could not link 'vsim_auto_compile.so': cmd = ' /home/username/intelFPGA_lite/17.1/modelsim_ase/gcc-4.7.4-linux/bin/gcc -shared -fPIC -m32 -B / usr / lib32 -o "/tmp/username@hostname_dpi_6222/linuxpe_gcc-4.7.4/ vsim_auto_compile.so "" /tmp/username@hostname_dpi_6222/linuxpe_gcc-4.7.4/exportwrapper.o "' For compiling with ModelSim, intelFPGA_lite / 17.1 / modelsim_ase / gcc - 4.7.4 - linux / bin / gcc (32 bit version gcc 4.7) included in the distribution is used. However, there seems to be some library lacking in the distribution, it seems that "- B / usr / lib32" automatically specifies the library path on the system side, from which we are looking for the library. # (vsim - 50) A call to system (/home/username/intelFPGA_lite/17.1/modelsim_ase/gcc-4.7.4 - linux / bin / gcc - shared - fPIC - m 32 - B / usr / lib 32 - o "/ tmp /username@hostname_dpi_6222/linuxpe_gcc-4.7.4/vsim_auto_compile.so "" /tmp/username@hostname_dpi_6222/linuxpe_gcc-4.7.4/exportwrapper.o "> '/ tmp / questatmp.T2OoX4' 2> & 1) returned error code ' 1 '. # The logfile contains the following messages: # /home/username/intelFPGA_lite/17.1/modelsim_ase/gcc-4.7.4-linux/bin/../libexec/gcc/i686-pc-linux-gnu/4.7.4/ld: / usr / lib32 / crti. o: unrecognized relocation (0x2b) in section `.init ' ↑ It seems that the missing distribution is "crti.o" (included in the libc6-dev package). Version does not match with /usr/lib32/crti.o on the system side and the link fails. If a library corresponding to gcc - 4.7.4 of ModelSim is included in the distribution, it may be able to compile without depending on the version of the library on the system side. # /home/username/intelFPGA_lite/17.1/modelsim_ase/gcc-4.7.4-linux/bin/../libexec/gcc/i686-pc-linux-gnu/4.7.4/ld: final link failed: Bad value # collect 2: error: ld returned 1 exit status # # No such file or directory. (Errno = ENOENT) # # # FATAL ERROR while loading design # ** Error: Error loading design # Executing ONERROR command at macro ./tb/sim/mentor/msim_compile.tcl line 8 --- Quote End ---