-
Notifications
You must be signed in to change notification settings - Fork 4
Description
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