hls-llvm-project
hls-llvm-project copied to clipboard
received error "command 'ap_source' returned error code while executing "source run_hls.tcl" invoked from within "hls::main run_hls.tcl" "with no further explanation
I successfully compiled the LLVM project from here. I am now attempting to run the override_llvm_flow_demo but receive this ambiguous error. I verified that my LLVM build works by compiling and running a test.c program.
I am using Vitis HLS 2023.1 (I am also using the 2023.1 version of the examples repository).
INFO: [HLS 200-1510] Running: csynth_design
INFO: [HLS 200-111] Finished File checks and directory preparation: CPU user time: 0.05 seconds. CPU system time: 0.02 seconds. Elapsed time: 0.06 seconds; current allocated memory: 1.003 GB.
INFO: [HLS 200-10] Analyzing design file 'example.cpp' ...
INFO: [HLS 200-111] Finished Command csynth_design CPU user time: 0.07 seconds. CPU system time: 0.07 seconds. Elapsed time: 0.14 seconds; current allocated memory: 0.457 MB.
command 'ap_source' returned error code
while executing
"source run_hls.tcl"
invoked from within
"hls::main run_hls.tcl"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$newargs"
(procedure "hls_proc" line 16)
invoked from within
"hls_proc [info nameofexecutable] $argv"
INFO: [HLS 200-112] Total CPU user time: 2.16 seconds. Total CPU system time: 0.87 seconds. Total elapsed time: 2.87 seconds; peak allocated memory: 1.003 GB.
INFO: [Common 17-206] Exiting vitis_hls at Tue Feb 11 18:07:33 2025...
Passing the --version flag to my LLVM build's clang prints
clang version 7.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/rff224/ih_monitor_framework/hls-llvm-project/hls-build/bin