Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
1,546 Views

Compile Error of vector_add in de5a_net_e1 board

Hi, 

 

When I was running "aoc device/vector_add.cl -o bin/vector_add.aocx --board de5a_net_e1 --report" 

I got this error message: "Error: Compile Error, no able to genertae hardware" 

 

And in quartus_sh_compile.log  

... 

Error (23031): Evaluation of Tcl script import_compile.tcl unsuccessful 

Error: Quartus Prime Compiler Database Interface was unsuccessful. 1 error, 0 warnings 

Error: Peak virtual memory: 1442 megabytes 

Error: Processing ended: Thu Dec 7 08:46:31 2017 

Error: Elapsed time: 00:29:42 

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

 

I download the BSP v16.0 from Terasic. 

https://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=228&no=970&partno=4 

 

$ aoc --version 

Altera SDK for OpenCL, 64-Bit Offline Compiler 

Version 16.0.0 Build 211 

Copyright (C) 2016 Altera Corporation 

 

$quartus_map --versionQuartus Prime Analysis & Synthesis 

Version 16.0.2 Build 222 07/20/2016 SJ Pro Edition 

Copyright (C) 1991-2016 Altera Corporation. All rights reserved. 

 

I am working on Centos 7. I know the BSP v16.1 on this board is somehow broken, so not step to v16.1. 

Does that matter with Quartus v16.0.2 or have to be v16.0.0?  

Anyone has idea or suggestion? 

 

Thanks a lot.
0 Kudos
4 Replies
Highlighted
Honored Contributor I
17 Views

How much RAM does your build machine have? How much swap space does your machine have? One way to find this is to open a command line and type "free".

0 Kudos
Highlighted
Honored Contributor I
17 Views

 

--- Quote Start ---  

How much RAM does your build machine have? How much swap space does your machine have? One way to find this is to open a command line and type "free". 

--- Quote End ---  

 

 

 

Hi, 

thanks for the reply. 

It's on my PC, not much RAM. (is running the cmd...) 

total used free shared buff/cache available Mem: 3854112 3591616 101120 56852 161376 10148 Swap: 8126460 7616700 509760 

 

I just upgraded AOC to 16.0.2, matching to my Quartus version. Run but fail again.  

So I trace the log before the error popped out and run the last command. 

Info: Command: quartus_cdb -t import_compile.tcl Info: Using INI file /home/hting1/t_altera/vector_add_v2/bin_bd_v2/vector_add/quartus.ini Error (23031): Evaluation of Tcl script import_compile.tcl unsuccessful 

$ quartus_cdb -t import_compile.tcl 

And the problem, for now, is "qsys-generate: command not found.", which is under "$QUARTUS_ROOTDIR/sopc_builder/bin", not in the document.  

 

Now I add the path and run it. I will update the result later.
0 Kudos
Highlighted
Honored Contributor I
17 Views

 

--- Quote Start ---  

Hi, 

thanks for the reply. 

It's on my PC, not much RAM. (is running the cmd...) 

total used free shared buff/cache available Mem: 3854112 3591616 101120 56852 161376 10148 Swap: 8126460 7616700 509760 

 

I just upgraded AOC to 16.0.2, matching to my Quartus version. Run but fail again.  

So I trace the log before the error popped out and run the last command. 

Info: Command: quartus_cdb -t import_compile.tcl Info: Using INI file /home/hting1/t_altera/vector_add_v2/bin_bd_v2/vector_add/quartus.ini Error (23031): Evaluation of Tcl script import_compile.tcl unsuccessful 

$ quartus_cdb -t import_compile.tcl 

And the problem, for now, is "qsys-generate: command not found.", which is under "$QUARTUS_ROOTDIR/sopc_builder/bin", not in the document.  

 

Now I add the path and run it. I will update the result later. 

--- Quote End ---  

 

 

[Update] 

I still failed in import_compile.tcl and it stopped at this command, "qexec "quartus_fit top -c base" 

These are three files I think it may help figure out. Can anyone help?
0 Kudos
Honored Contributor I
17 Views

You MUST use the same Quartus and AOC version. The v16.0 BSP should work with all versions of AOC from 16.0.0 to 16.0.2. If your machine only has 4 GB of memory, you are not going to be able to successfully compile anything on it. Depending on design size, between 18 to 48 GB of memory is required for successful compilation on Arria 10. The compilation log does not clearly say why the process is failing; I would assume you are running out of memory.

0 Kudos