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

[jade] address gcc6 build error #458

Merged
merged 2 commits into from Mar 12, 2017

Conversation

davetcoleman
Copy link
Member

Cherry-pick of #423

With gcc6, compiling fails with `stdlib.h: No such file or directory`,
as including '-isystem /usr/include' breaks with gcc6, cf.,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129.

This commit addresses this issue for this package in almost the same way
it was addressed in various other ROS packages. A list of related
commits and pull requests is at:

    ros/rosdistro#12783

Particularly when searching for the Boost library CMake sets
Boost_INCLUDE_DIRS to @sysRoot@/usr/include which should be
avoided in the `-isystem` option of gcc.
The same goes for OpenCV.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Copy link
Contributor

@de-vri-es de-vri-es left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like one small merge problem (see in-line review). Looks good other than that.

@@ -70,12 +70,13 @@ include_directories(mesh_filter/include
occupancy_map_monitor/include
pointcloud_octomap_updater/include
semantic_world/include
${OpenCV_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
include_directories(SYSTEM
${OpenCV_INCLUDE_DIRS}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${OpenCV_INCLUDE_DIRS} should be removed from the SYSTEM list I believe.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, done

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
@davetcoleman davetcoleman merged commit 0d881ae into moveit:jade-devel Mar 12, 2017
@davetcoleman davetcoleman deleted the jade-gcc6-build branch March 12, 2017 22:51
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

Successfully merging this pull request may close these issues.

None yet

2 participants