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 fails on Debian buster, "wrong" use of -Isystem #115

Open
jkur opened this issue Mar 19, 2019 · 0 comments
Open

Compilation fails on Debian buster, "wrong" use of -Isystem #115

jkur opened this issue Mar 19, 2019 · 0 comments

Comments

@jkur
Copy link

jkur commented Mar 19, 2019

Compiling on Debian/buster with gcc-8 fails :
[...]
[ 14%] Building CXX object CMakeFiles/rviz_visual_tools_remote_control.dir/src/remote_control.cpp.o
In file included from /usr/include/c++/8/ext/string_conversions.h:41,
from /usr/include/c++/8/bits/basic_string.h:6400,
from /usr/include/c++/8/string:52,
from /home/jkur/dev/ros/ros-testbed/src/rviz_visual_tools/src/remote_control.cpp:40:
/usr/include/c++/8/cstdlib:75:15: fatal error: stdlib.h: Datei oder Verzeichnis nicht gefunden
#include_next <stdlib.h>

A vague search suggest a wrong use of the -Isystem flag with gcc-8 (and gcc-7).

Removing "SYSTEM" from CMakeLists.txt :78

include_directories(include ${catkin_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${OGRE_OV_INCLUDE_DIRS})

fixes this issue for me. I'm unsure if this is a general fix or breaks something elsewhere...

gleichdick added a commit to gleichdick/rviz_visual_tools that referenced this issue Feb 14, 2020
include_directories(SYSTEM ...) causes errors 
(#include_next "stdlib.h" -> File not found), see PickNikRobotics#115
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