UPGRADE YOUR BROWSER
We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!
10-29-2017 06:19 AM
hello,i trying to simulate my code c++ in vivado HLS.i get a lot of problem
ERROR: [APCC 202-3] Gcc Compile failed: ERROR: [APCC 202-3] Tmp directory is apcc_db ERROR: [APCC 202-1] APCC failed. ERROR: [APCC 202-3] Gcc Compile failed: ERROR: [APCC 202-3] Tmp directory is apcc_db ERROR: [APCC 202-1] APCC failed. g++.exe: error: obj/main.o: No such file or directory g++.exe: error: obj/svm-predict.o: No such file or directory g++.exe: error: obj/svm-train.o: No such file or directory g++.exe: error: obj/svm_model_matlab.o: No such file or directory g++.exe: error: obj/svmpredict.o: No such file or directory g++.exe: error: obj/svmtrain.o: No such file or directory g++.exe: error: obj/yprime.o: No such file or directory make: *** [csim.exe] Error 1 ERROR: [SIM 211-100] 'csim_design' failed: compilation error(s).
10-30-2017 04:45 AM
Hello @ hpoetzl,
i fix the majority of errors by installing VS 2017 ,now i have only 2 errors
WARNING: [HLS 200-40] In file included from src/main.c:51: src/typeinfo.h:28:2: error: This header requires a C++ compiler ... #error This header requires a C++ compiler ... ^ src/typeinfo.h:32:10: fatal error: 'typeinfo' file not found #include <typeinfo> ^ 2 errors generated. WARNING: [HLS 200-40] ERROR: [HLS 200-70] Compilation errors found: Pragma processor failed: In file included from src/main.c:51: src/typeinfo.h:28:2: error: This header requires a C++ compiler ... #error This header requires a C++ compiler ... ^ src/typeinfo.h:32:10: fatal error: 'typeinfo' file not found #include <typeinfo> ^ 2 errors generated. Failed checking during preprocessing. while executing "source C:/Users/aychoucha/Documents/simulate/architechture/solution1/csynth.tcl" invoked from within "hls::main C:/Users/aychoucha/Documents/simulate/architechture/solution1/csynth.tcl" ("uplevel" body line 1) invoked from within "uplevel 1 hls::main {*}$args" (procedure "hls_proc" line 5) invoked from within
10-29-2017 09:25 AM
Hey @aichamb,
Seems like your compiler failed to compile your sources to object files and what we see here is the linker failing to find those object files for linking them together into the csim.exe.
Check the logs for indications why the compiler failed, here are some potential reasons ...
Hope that helps,
Herbert
10-29-2017 11:00 AM
i think the problem from the c++ compiler how can i fix it.
INFO: [HLS 200-10] Running 'd:/Vivado_HLS/2016.4/bin/unwrapped/win64.o/apcc.exe' INFO: [HLS 200-10] For user 'aychoucha' on host 'desktop-bs3qfva' (Windows NT_amd64 version 6.2) on Sun Oct 29 18:53:47 +0100 2017 INFO: [HLS 200-10] In directory 'C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim/build' In file included from ../../../../src/main.c:51: d:/Vivado_HLS/2016.4/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\typeinfo.h:16:2: error: This header requires a C++ compiler ... #error This header requires a C++ compiler ... ^ d:/Vivado_HLS/2016.4/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\typeinfo.h:19:10: fatal error: 'typeinfo' file not found #include <typeinfo> ^ 2 errors generated. Compiling(apcc) ../../../../src/svm-predict.c in debug mode INFO: [HLS 200-10] Running 'd:/Vivado_HLS/2016.4/bin/unwrapped/win64.o/apcc.exe' INFO: [HLS 200-10] For user 'aychoucha' on host 'desktop-bs3qfva' (Windows NT_amd64 version 6.2) on Sun Oct 29 18:54:01 +0100 2017 INFO: [HLS 200-10] In directory 'C:/Users/aychoucha/Documents/simulate/architechture/solution1/csim/build' apcc_db/svm-predict.c:205:8: error: conflicting types for '__strtod' d:\vivado_hls\2016.4\msys\bin\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h:312:32: note: previous declaration of '__strtod' was here Compiling(apcc) ../../../../src/svm-train.c in debug mode INFO: [HLS 200-10] Running 'd:/Vivado_HLS/2016.4/bin/unwrapped/win64.o/apcc.exe'
10-29-2017 12:53 PM
Hey @aichamb,
It seems like you are including a C++ header in a C file.
Double check that your source file is configured as C++.
Best,
Herbert
10-30-2017 04:45 AM
Hello @ hpoetzl,
i fix the majority of errors by installing VS 2017 ,now i have only 2 errors
WARNING: [HLS 200-40] In file included from src/main.c:51: src/typeinfo.h:28:2: error: This header requires a C++ compiler ... #error This header requires a C++ compiler ... ^ src/typeinfo.h:32:10: fatal error: 'typeinfo' file not found #include <typeinfo> ^ 2 errors generated. WARNING: [HLS 200-40] ERROR: [HLS 200-70] Compilation errors found: Pragma processor failed: In file included from src/main.c:51: src/typeinfo.h:28:2: error: This header requires a C++ compiler ... #error This header requires a C++ compiler ... ^ src/typeinfo.h:32:10: fatal error: 'typeinfo' file not found #include <typeinfo> ^ 2 errors generated. Failed checking during preprocessing. while executing "source C:/Users/aychoucha/Documents/simulate/architechture/solution1/csynth.tcl" invoked from within "hls::main C:/Users/aychoucha/Documents/simulate/architechture/solution1/csynth.tcl" ("uplevel" body line 1) invoked from within "uplevel 1 hls::main {*}$args" (procedure "hls_proc" line 5) invoked from within
10-30-2017 02:23 PM
Hey @aichamb,
Still looks like you are including C++ header files (directly or indirectly) from a non C++ source file.\
Best,
Herbert