Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
937 Views

HelloWorld-Error: Compiler Error, not able to generate hardware

Hi guys,

 

I want to test the OpenCL driver on pac_a10 board, but when I run the sample code, I meet a problems:

aoc: 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: Linking Object files....

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

aoc: Linking with IP library ...

Checking if memory usage is larger than 100%

Compiler Warning: addpipe in board_spec.xml is set to 1 which is no longer supported

Compiler Warning: global memory pipeline stage is now implemented in BSP instead

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

 

And the "quartus_sh_compile.log" just has one line:

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

 

I don't get the licence of Quartus Pro yet. Do the test need that? If not, what cause that error? "Check installation" means check the Quartus installation or the BSP?

 

Thanks in advance.

0 Kudos
23 Replies
Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi WWang76,

Could you share the bin/hello_world/quartus_sh_compile.log or hello_world.log file?

May I know which version you are using?

 

Thanks

0 Kudos
Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi Kyeoh,

There is the "hello_world.log" file, and the he "quartus_sh_compile.log" just has one line:

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

I tried:

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.

and

aocl 17.1.1.273 (Intel(R) FPGA SDK for OpenCL(TM), Version 17.1.1 Build 273, Copyright (C) 2017 Intel Corporation)

 

I also tried the version 18.1(both). but nothing changed.

 

the version of BSP is a10_gx_pac_ias_1_2_pv

 

Thanks

0 Kudos
Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi WWang76,

 

Have you try with the license?

 

Thanks

0 Kudos
Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi, Do you have all the required Linux packages installed? https://www.intel.com/content/www/us/en/programmable/documentation/iyu1522005567196.html#isp15285004... May I know what OS you are using? Thanks.
0 Kudos
Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi, May I know if you have any updates? Thanks.
0 Kudos
Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi YY,

Sorry for late response, I did not try license yet. But I installed all  required Linux packages. I just want to know whether I need a ​licence or not in this develop situation. After all, the licence is not cheap. So, there is any document about the license requirement to this problem?

 

Regards,

Wei

0 Kudos
Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi WWang76,

 

May I know what OS you are using? Can you try the suggestion in https://forums.intel.com/s/question/0D50P00004DD90l/error-compiling-helloworldcl-with-aoc?fromCase=1?

 

Thanks

0 Kudos
Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi,

 

I test it on the Ubuntu 18.04 and 16.04.

0 Kudos
Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi WWang76, I tried to run aoc command without the license. The error occurred is different from the error we have here. I believe this error is not related to the license. Thanks.
0 Kudos
Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi guys, the real reason is the python version.

It looks like the python scripts must run in python version 2.7.5

You can verify that by running the following line in the directory of the A10 BSP where packager.pyz is stored (somewhere in opencl...)

>python packager.pyz

You will see that it fails with some versions of python.

The solution is to install python 2.7.5.

 

Read https://askubuntu.com/questions/1050084/install-python-2-7-6-in-ubuntu-16-04

and use the method with version 2.7.5

Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi WWang76 ,

 

Can you try DCast14's suggestion?

Thanks

0 Kudos
Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi DCast14,

 

This worked for us.

In our case we are using CentOS 7 with many versions of Python and `/usr/bin/python` was pointing to `/usr/bin/python3`.

We relinked `/usr/bin/python` to `/usr/bin/python2` and it looks like the issue is fixed.

 

Thanks for posting the solution!

Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi David.Castells,

Thank for your reply, I tried to run

​$python packager.pyz

and get results:

 

Traceback (most recent call last):

 File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main

  "__main__", fname, loader, pkg_name)

 File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code

  exec code in run_globals

 File "packager.pyz/__main__.py", line 28, in <module>

 File "packager.pyz/packager.py", line 35, in <module>

 File "packager.pyz/afu.py", line 52, in <module>

 File "packager.pyz/jsonschema-2.3.0/jsonschema/__init__.py", line 18, in <module>

 File "packager.pyz/jsonschema-2.3.0/jsonschema/validators.py", line 161, in <module>

 File "packager.pyz/jsonschema-2.3.0/jsonschema/_utils.py", line 61, in load_schema

IOError: [Errno 20] Not a directory: u'/opt/inteldevstack/a10_gx_pac_ias_1_2_pv/opencl/opencl_bsp/hardware/pac_a10/build/tools/packager.pyz/jsonschema-2.3.0/jsonschema/schemas/draft3.json'

 

May I ask what is that the last line meaning?

It seems to point a wrong path. I thought it may be related to OPAE, but I am not sure.

Thanks in advance.

0 Kudos
Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi YY,

Thank you a lot.

Is that meaning if I fix the error, I still need to have a full license to run aoc command?

 

0 Kudos
Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi WWang76,

It seems like you see similar error in

https://forums.intel.com/s/question/0D70P000006G4HL/error-compiling-helloworldcl-with-aoc?s1oid=00DU...

Can you try the workaround suggested in this thread?

sudo apt-get install python-jsonschema

Referring to

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/po/ss-quartus-comparison.pd...

, Intel FPGA SDK for OpenCL requires no additional licenses. It is supported with the Intel Quartus Prime Pro/Standard Edition software and the Pro/Standard edition software require license.

 

Thanks

Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi WWang76, May I know if you have any updates? Thanks.
0 Kudos
Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi YY,

 

Thanks for locating this problem. Finally, I find this problem caused by lacking the json library in python. Thanks a million.

However, there was another problem:

 

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, 3314 warnings

Error: Compiler Error, not able to generate hardware

 

in "quartus_sh_compile.log", it shows:

Info: Command: quartus_cpf -c output_files/afu_fit.green_region.pmsf output_files/afu_fit.green_region.rbf

Info: Using INI file /home/wei/test_file/exm_opencl_hello_world_x64_linux/hello_world/bin/hello_world/build/quartus.ini

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: Peak virtual memory: 401 megabytes

  Error: Processing ended: Fri Jun 21 05:58:45 2019

  Error: Elapsed time: 00:00:00

  Error: Total CPU time (on all processors): 00:00:00

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

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

  Error: Peak virtual memory: 702 megabytes

  Error: Processing ended: Fri Jun 21 05:58:46 2019

  Error: Elapsed time: 00:34:15

  Error: Total CPU time (on all processors): 03:01:48

ERROR: pll timing script failed.

 

Do you have any advise about that?

Thanks.

0 Kudos
Highlighted
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi WWang76, Do you see this afu_fit.green_region.pmsf file is the output_files directory? Thanks.
0 Kudos
Highlighted
Beginner
4 Views

Re: HelloWorld-Error: Compiler Error, not able to generate hardware

Hi YY,

 

NO. In fact I saw a very similar file, it is "dcp.green_region.pmsf".

 

Thanks.

0 Kudos