Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™

build for fpga failed

nielsj
Beginner
959 Views

reported error :

quartus_sh: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Error: The patches required to compile for the target board (0.05dcp) is not installed for the following Quartus:
/glob/development-tools/versions/oneapi/2021.3/inteloneapi/intelfpgadpcpp/2021.3.0/QuartusPrimePro/19.2/quartus/bin/quartus_sh

dpcpp: error: fpga compiler command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.fpga:16: sw_fpga] Error 1

 

commands :

qsub -l nodes=1:fpga_compile:ppn=2 -d . build_fpga.sh

cat build_fpga.sh

#!/bin/bash

source /opt/intel/inteloneapi/setvars.sh

make -f Makefile.fpga

 

cat Makefile.fpga

CXX := dpcpp
CXXFLAGS = -O2 -std=c++17 -Wall


all : sw_fpga
#all : sw_fpga sw_fpga_emu report


sw_fpga.o : sw_fpga.cpp
$(CXX) -c $(CXXFLAGS) -fintelfpga $^ -o $@

sw_fpga_emu : sw_fpga.cpp
$(CXX) $(CXXFLAGS) -fintelfpga $^ -o $@ -DFPGA_EMULATOR

sw_fpga : sw_fpga.o
$(CXX) $(CXXFLAGS) -fintelfpga -Xshardware $^ -o $@

report : sw_fpga.cpp
$(CXX) -fintelfpga -Xshardware -fsycl-link sw_fpga.cpp -o sw_fpga

test_2d_array_emu : test_2d_array.cpp
$(CXX) $(CXXFLAGS) -fintelfpga $^ -o $@ -DFPGA_EMULATOR

clean:
rm -f sw_fpga sw_fpga_emu

1 Reply
iramovs
Novice
897 Views

Hello, is there any update on this? I get the same error when building for hardware (even with oneAPI samples).

0 Kudos
Reply