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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant aichamb
Participant
5,674 Views
Registered: ‎10-03-2017

g++.exe: error: obj/main.o: No such file or directory

Jump to solution

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).
archi1.PNG
0 Kudos
1 Solution

Accepted Solutions
Participant aichamb
Participant
7,370 Views
Registered: ‎10-03-2017

Re: g++.exe: error: obj/main.o: No such file or directory

Jump to solution

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

View solution in original post

arch3.PNG
0 Kudos
5 Replies
Voyager
Voyager
5,644 Views
Registered: ‎06-24-2013

Re: g++.exe: error: obj/main.o: No such file or directory

Jump to solution

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 ...

  • Missing access permissions
  • Not enough disk space
  • Weird network mounts with time differences
  • Problem with the compiler or libraries

Hope that helps,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Participant aichamb
Participant
5,636 Views
Registered: ‎10-03-2017

Re: g++.exe: error: obj/main.o: No such file or directory

Jump to solution

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'
arch2.PNG
0 Kudos
Voyager
Voyager
5,620 Views
Registered: ‎06-24-2013

Re: g++.exe: error: obj/main.o: No such file or directory

Jump to solution

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

-------------- Yes, I do this for fun!
0 Kudos
Participant aichamb
Participant
7,371 Views
Registered: ‎10-03-2017

Re: g++.exe: error: obj/main.o: No such file or directory

Jump to solution

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

View solution in original post

arch3.PNG
0 Kudos
Voyager
Voyager
5,517 Views
Registered: ‎06-24-2013

Re: g++.exe: error: obj/main.o: No such file or directory

Jump to solution

Hey @aichamb,

 

Still looks like you are including C++ header files (directly or indirectly) from a non C++ source file.\

 

Best,

Herbert

-------------- Yes, I do this for fun!
0 Kudos