Forum Discussion

gbarc2's avatar
gbarc2
Icon for New Contributor rankNew Contributor
7 years ago

Error compiling hello_world.cl with aoc

I recently installed the Intel OpenCL SDK toolchain for FPGA on a Linux system by following the guide provided here https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_getting_started.pdf.

Since our board is an Intel PAC with Arria 10 GX, I also installed the Custom Platform for the board.

Running

aoc -version

Intel(R) FPGA SDK for OpenCL(TM), 64-Bit Offline Compiler

Version 17.1.1 Build 273

Copyright (C) 2017 Intel Corporation

quartus_map --version

Quartus Prime Analysis & Synthesis

Version 17.1.1 Build 273 12/19/2017 Patches 1.02dcp,1.36,1.38 SJ Pro Edition

Copyright (C) 2017 Intel Corporation. All rights reserved.

therefore aoc and Quartus are installed. I also ran "aocl diagnose" and it correctly passed the diagnostic for the board.

Then compiling the hello_world.cl kernel in emulation mode

aoc -v -march=emulator -board=pac_a10 hello_world.cl

worked without any problem (also at runtime the binary worked).

However, running

aoc -v -board=pac_a10 hello_world.cl

c: Environment checks are completed successfully.

aoc: Cached files in /var/tmp/aocl/ may be used to reduce compilation time

You are now compiling the full flow!!

aoc: Selected target board pac_a10

aoc: Running OpenCL parser....

aoc: OpenCL parser completed successfully.

aoc: Optimizing and doing static analysis of code...

aoc: Linking with IP library ...

Checking if memory usage is larger than 100%

aoc: First stage compilation completed successfully.

Compiling for FPGA. This process may take a long time, please be patient.

Error: Compiler Error, not able to generate hardware

Therefore, I looked at hello_world.log (see attached) and there is no indication of why the compilation failed.

Then, I looked at quartus_sh_compile.log and the only line reported is

ERROR: packager tool failed to run. Check installation. Aborting compilation!

Could you please help us understand where the issue may be?

Many thanks.

21 Replies

  • SMelz's avatar
    SMelz
    Icon for New Contributor rankNew Contributor

    Hi,

    since December 2019 (after an ubuntu update)

    we have this error:

    aoc device/hello_world.cl -o bin/hello_world.aocx

    aoc: Running OpenCL parser....

    aoc: Optimizing and doing static analysis of code...

    Compiling for FPGA. This process may take a long time, please be patient.

    Error (213009): File name "output_files/afu_fit.green_region.pmsf" does not exist or can't be read

    Error: Quartus Prime Convert_programming_file was unsuccessful. 1 error, 0 warnings

    Error (23031): Evaluation of Tcl script a10_partial_reconfig/flow.tcl unsuccessful

    Error: Quartus Prime Shell was unsuccessful. 7 errors, 3326 warnings

    Error: Compiler Error, not able to generate hardware

    Is there any solution?

    Thanks

    Simon

  • KhaiChein_Y_Intel's avatar
    KhaiChein_Y_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi Simon,

    This thread is closed since May 2019. Could you open a new forum thread?

    Thanks.