Forum Discussion

GTese's avatar
GTese
Icon for New Contributor rankNew Contributor
5 years ago

how I can fix LABs requirements? I use the DE1_soc board, OS is ubuntu 18.04, and the intelFPGA_18.1 standard version. when I was trying to Compiling for FPGA then the following error generated.

aoc: First stage compilation completed successfully.

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

Error (170012): Fitter requires 5692 LABs to implement the design, but the device contains only 4191 LABs

Error: Cannot fit kernel(s) on device

4 Replies

  • Hi,

    Based on my knowledge, you may need to remove some logics to optimize and fit your design.

    Is there any other error during your compilation?

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

      Thanks!

      I have optimized my kernel code and it work now.

      The other error when I try to compiling as emulator the following error was generated.

      aocl-clang: error: unable to execute command: posix_spawn failed: No such file or directory

      aocl-clang: error: linker command failed due to signal 1 (use -v to see invocation)

      aocl-clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.

      aocl-clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.

      Error: Optimizer FAILED.

      Refer to My_Kernel/My_Kernel.log for details.

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

      Thank you!

      Really, I appreciate you for great help.

      It is working for me.