Altera_Forum
Honored Contributor
8 years agoNios - Simple Socket Sever template - can't compile
Hello Altera Forums,
I'm trying to compile the Simple Socket Server (RGMII) in eclipse-nios, but the compile fails to find these files: altera_msgdma.h altera_msgdma_descriptor_regs.h altera_msgdma_prefetcher_regs.h altera_msgdma_csr_regs.h Here is the detailed output from the build attempt:12:05:51 **** Incremental Build of configuration Nios II for project simple_socket ****
make all
Info: Building ../simple_socket_bsp/
make --no-print-directory -C ../simple_socket_bsp/
Compiling alt_sys_init.c...
nios2-elf-gcc -xc -MP -MMD -c -I./drivers/inc -I./drivers/inc/iniche -I./iniche/inc -I./iniche/src/h -I./iniche/src/h/nios2 -I./iniche/src/nios2 -I./UCOSII/inc -I./HAL/inc -I. -I./drivers/inc -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALTERA_TRIPLE_SPEED_MAC -DALT_INICHE -D__ucosii__ -DALTERA_AUTONEG_TIMEOUT_THRESHOLD=2500 -DALTERA_CHECKLINK_TIMEOUT_THRESHOLD=10000 -DALTERA_NOMDIO_TIMEOUT_THRESHOLD=1000000 -DTSE_MY_SYSTEM -O0 -g -Wall -mno-hw-div -mhw-mul -mhw-mulx -mgpopt=global -o obj/alt_sys_init.o alt_sys_init.c
In file included from ./drivers/inc/iniche/altera_eth_tse_iniche.h:36:0,
from ./drivers/inc/altera_eth_tse.h:36,
from alt_sys_init.c:66:
./drivers/inc/iniche/ins_tse_mac.h:34:27: fatal error: altera_msgdma.h: No such file or directory
compilation terminated.
make: *** Error 1
make: *** Error 2
12:05:51 Build Finished (took 165ms) I am running Quartus v17.1 and Nios II EDS v17.1.0.v20171026-1307 on a scientific linux 6.5 machine. I haven't run into any trouble running the hello world and counter binary examples. I have been following the instructions on this page: https://www.altera.com/en_us/pdfs/literature/tt/tt_nios2_tcpip.pdf I get the same error for the Simple Socket Server and Simple Socket Server (RGMII) templates. I have also tried the web server example and it failed for the same reason. I am able to find altera_msgdma.h using the 'find' command: > find ~/intelFPGA/ -name "altera_msgdma.h"
~/intelFPGA/17.1/ip/altera/altera_msgdma/top/HAL/inc/altera_msgdma.h Is it possible that something went wrong when I installed Quartus/Nios? I have tried searching these forums and the internet, but I haven't found any solution to the problem.