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
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.
I could not find the exact workaround regarding your error, it could be that there is a conflict of a symbolic link that is wrongly represented, can you check the below discussion if it is related to yours?: