Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #4

Open
gransort opened this issue Nov 26, 2018 · 0 comments
Open

Compilation error #4

gransort opened this issue Nov 26, 2018 · 0 comments

Comments

@gransort
Copy link

Hello!
I am writing here because I no longer know what to do. After starting the "make" command, I get an error.

LOG:

[ 20%] Building CXX object src/host/CMakeFiles/airwave-host-32.dir/__/common/dataport.cpp.o
In file included from /usr/include/c++/8.2.1/ext/string_conversions.h:41,
from /usr/include/c++/8.2.1/bits/basic_string.h:6391,
from /usr/include/c++/8.2.1/string:52,
from /usr/include/c++/8.2.1/stdexcept:39,
from /usr/include/c++/8.2.1/array:39,
from /usr/include/c++/8.2.1/tuple:39,
from /usr/include/c++/8.2.1/bits/unique_ptr.h:37,
from /usr/include/c++/8.2.1/memory:80,
from /home/user/airwave/src/common/types.h:6,
from /home/user/airwave/src/common/dataport.h:5,
from /home/user/airwave/src/common/dataport.cpp:1:

/usr/include/c++/8.2.1/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~

compilation terminated.
winegcc: g++ failed
make[2]: *** [src/host/CMakeFiles/airwave-host-32.dir/build.make:63: src/host/CMakeFiles/airwave-host-32.dir/__/common/dataport.cpp.o] Error 2
make[1]: *** [CMakeFiles/Makefile2:148: src/host/CMakeFiles/airwave-host-32.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I'm using Archlinux, and the lastet gcc(8.2.1)
As it turned out, this problem relates more to the compiler, and not to this code.
More info about problem: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
I tried to fix this error by adding different flags to CMakeLists.txt such as:

CMAKE_DEFAULT_INCDIRS
CMAKE_SYSROOT
CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES

but I did not succeed...
Please help with this problem, or at least tell in which direction to dig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant