Gem5 Trouble compiling executable - c++

I am receiving the below error even after explicit call to directory
gcc -I /../../gem5/include/gem5 -o /home/user/benchmarks/my_app my_app.cc.
gcc: error: my_app.cc: No such file or directory
gcc: fatal error: no input files
compilation terminated.
the directory where m5op resides is in this #include "/path/to/gem5/include/gem5/m5op.h"

Related

How to fix cc1plus fatal error problem in C++?

When I try to use g++ compiler to my .cpp file it says
g++: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated
I have already installed g++ and gcc, I also installed C++ extension in my Vscode. I try to uninstall g++ and vscode with its extension, but it didn't help.

Bazel Build Permission denied

Recently, I'm trying to learn the NVidia Isaac which is built by Bazel.
While I was following the document here:
https://docs.nvidia.com/isaac/isaac/doc/getting_started.html#running-an-application
I encountered an error kept saying the cpp files Bazel need to build is "Permission denied".
The error message looks like below:
Use --sandbox_debug to see verbose messages from the sandbox
gcc: error: engine/alice/components/Subprocess.cpp: Permission denied
gcc: fatal error: no input files
compilation terminated.
ERROR: /home/acas/HDD/CatDog/Isaak/engine/alice/BUILD:23:1: Couldn't build file engine/alice/_objs/impl/ReplayBridge.o: C++ compilation of rule '//engine/alice:impl' faed (Exit 1) crosstool_wrapper_driver_is_not_gcc_host.py failed: error executing command external/toolchain/crosstool/scripts/crosstool_wrapper_driver_is_not_gcc_host.pyD_DEFAULT_SOURCE -U_FORTIFY_SOURCE -fstack-protector -Wall -Werror -B/usr/bin -Wunused-but-set-parameter ... (remaining 183 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
gcc: error: engine/alice/components/ReplayBridge.cpp: Permission denied
gcc: fatal error: no input files
compilation terminated.
ERROR: /home/acas/HDD/CatDog/Isaak/engine/gems/image/BUILD:42:1: Couldn't build file engine/gems/image/_objs/cuda_conversions/yuv2rgb.cu.o: error while parsing .d file:root/.cache/bazel/_bazel_root/6ab44b9a455585caa8f9f5f55ddd002b/execroot/com_nvidia_isaac/bazel-out/k8-opt/bin/engine/gems/image/_objs/cuda_conversions/yuv2rgb.cu.d (No ch file or directory)
gcc: error: engine/gems/image/cuda/yuv2rgb.cu.cpp: Permission denied
gcc: warning: '-x c++' after last input file has no effect
gcc: fatal error: no input files
compilation terminated.
Target //apps/samples/stereo_dummy:stereo_dummy failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 6.627s, Critical Path: 0.62s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 0 processes.
FAILED: Build did NOT complete successfully
And so much the same "Permission denied" error.
I've tried root, sudo, but none of that works.
Is anyone has the same Bazel problem (I think this problem is not about NVidia Isaac but Bazel)?

Emscripten: fatal error: sys/cdefs.h: No such file or directory when compiling for 32 bit

When trying to compile an existing C++ project with emscripten I got the following error:
emmake make LINUX
In file included from /usr/include/stdio.h:27:0,
from src/abinitplugin.c:50:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
I am able to compile for LINUXAMD64, but I need it specifically 32-bit. How do I solve it?

-bash: /usr/bin/gcc: Input/output error

I am using debian on bananaPi. Yesterday, I ran an object file (which I already had build a few days ago), and it was working fine. Now I made some changes to the source and when I tried to build the file it is giving this error:
-bash: /usr/bin/gcc: Input/output error
This is the command which I used to build the file:
gcc sensor.c -o result -lwiringPi -lsqlite3 -lrt

gSoap error : xlocale.h No such file or directory

I am trying to create C++ soap webservice client in Windows 7. I am using gSoap and I followed gSoap tutorial.
first and second commands worked but
c++ -o main main.cpp soapC.cpp soapcalcProxy.cpp stdsoap2.cpp
command did not work.
error is
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\user\Desktop\soap>C:\MinGW\bin\mingw32-g++.exe -o main main.cpp soapC.cpp soapcalcProxy.cpp stdsoap2.cpp
In file included from soapStub.h:22:0,
from soapH.h:16,
from calc.nsmap:2,
from main.cpp:16:
stdsoap2.h:651:23: fatal error: xlocale.h: No such file or directory
compilation terminated.
In file included from soapStub.h:22:0,
from soapH.h:16,
from soapC.cpp:19:
stdsoap2.h:651:23: fatal error: xlocale.h: No such file or directory
compilation terminated.
In file included from soapStub.h:22:0,
from soapH.h:16,
from soapcalcProxy.h:16,
from soapcalcProxy.cpp:14:
stdsoap2.h:651:23: fatal error: xlocale.h: No such file or directory
compilation terminated.
In file included from stdsoap2.cpp:60:0:
stdsoap2.h:651:23: fatal error: xlocale.h: No such file or directory
compilation terminated.
How can I solve it ?
I am using Windows 7 64 bit and mingw.
Thanks.
I had the same problem, I solved it by adding the -DWITH_NO_C_LOCALE option when compiling.
Source: https://sourceforge.net/p/gsoap2/bugs/1098/