Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
539 Discussions

oneAPI Base Toolkit-Error: Compiler Error: OpenCL kernel compile/link FAILED

sent
Beginner
584 Views

Hi, I am new to oneAPI and I am trying to ramping up. I installed Intel® oneAPI Base Toolkit and am able to successfully run the vector add sample program in my ubuntu system(Intel Core i5). Then I tried to compile same Vector_Add project for FPGA in emulation mode using below command.

make fpga_emu -f Makefile.fpga

At the time of compilation, I am facing below error.

 

Error:

dpcpp -fintelfpga src/vector-add.cpp -o vector-add.fpga_emu -DFPGA_EMULATOR

Error: Compiler Error: OpenCL kernel compile/link FAILED

/tmp/vector-add-d62ec6.o: file not recognized: File truncated

clang++: error: fpga compiler command failed with exit code 1 (use -v to see invocation)

clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Makefile.fpga:10: recipe for target 'vector-add.fpga_emu' failed

make: *** [vector-add.fpga_emu] Error 1

 

Note: I am able to compile with report successfully.

make report -f Makefile.fpga

0 Kudos
5 Replies
Kenny_Tan
Moderator
363 Views

Can you try to use Devcloud?

 

Also, Can you list flow and command you have used?

 

sent
Beginner
363 Views

This issue has been solved. I am able to execute it successfully.

Kenny_Tan
Moderator
363 Views

Great to hear that! Mind to share with us what you have done to resolve this?

Kenny_Tan
Moderator
363 Views

Any update?

sent
Beginner
363 Views

Thanks for follow up. I uninstalled the whole set up and reinstalled the same. That resolved the issue.

Reply