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 using robotology-superbuild on macOS High Sierra 10.13.3 (17D102) #351

Closed
DanielePucci opened this issue Mar 14, 2018 · 4 comments

Comments

@DanielePucci
Copy link
Contributor

As per the issue title, I get this error message

sysadmins-MacBook-Pro-2:GazeboYARPPlugins dpucci$ make VERBOSE=1
/usr/local/Cellar/cmake/3.10.2/bin/cmake -H/Users/dpucci/src/robotology-superbuild/robotology/GazeboYARPPlugins -B/Users/dpucci/src/robotology-superbuild/build/robotology/GazeboYARPPlugins --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.10.2/bin/cmake -E cmake_progress_start /Users/dpucci/src/robotology-superbuild/build/robotology/GazeboYARPPlugins/CMakeFiles /Users/dpucci/src/robotology-superbuild/build/robotology/GazeboYARPPlugins/CMakeFiles/progress.marks
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 all
/Library/Developer/CommandLineTools/usr/bin/make -f libraries/singleton/CMakeFiles/gazebo_yarp_singleton.dir/build.make libraries/singleton/CMakeFiles/gazebo_yarp_singleton.dir/depend
cd /Users/dpucci/src/robotology-superbuild/build/robotology/GazeboYARPPlugins && /usr/local/Cellar/cmake/3.10.2/bin/cmake -E cmake_depends "Unix Makefiles" /Users/dpucci/src/robotology-superbuild/robotology/GazeboYARPPlugins /Users/dpucci/src/robotology-superbuild/robotology/GazeboYARPPlugins/libraries/singleton /Users/dpucci/src/robotology-superbuild/build/robotology/GazeboYARPPlugins /Users/dpucci/src/robotology-superbuild/build/robotology/GazeboYARPPlugins/libraries/singleton /Users/dpucci/src/robotology-superbuild/build/robotology/GazeboYARPPlugins/libraries/singleton/CMakeFiles/gazebo_yarp_singleton.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f libraries/singleton/CMakeFiles/gazebo_yarp_singleton.dir/build.make libraries/singleton/CMakeFiles/gazebo_yarp_singleton.dir/build
[  1%] Building CXX object libraries/singleton/CMakeFiles/gazebo_yarp_singleton.dir/src/Handler.cc.o
cd /Users/dpucci/src/robotology-superbuild/build/robotology/GazeboYARPPlugins/libraries/singleton && /Library/Developer/CommandLineTools/usr/bin/c++  -DLIBBULLET_VERSION=2.87 -DLIBBULLET_VERSION_GT_282 -Dgazebo_yarp_singleton_EXPORTS -I/Users/dpucci/src/robotology-superbuild/robotology/GazeboYARPPlugins/libraries/singleton/include/GazeboYarpPlugins -isystem /Users/dpucci/src/robotology-superbuild/build/install/include -isystem /usr/local/include -isystem /usr/local/Cellar/gazebo9/9.0.0_3/include -isystem /usr/local/Cellar/gazebo9/9.0.0_3/include/gazebo-9 -isystem /usr/local/Cellar/bullet/2.87/include/bullet -isystem /usr/local/Cellar/bullet/2.87/include -isystem /usr/local/Cellar/simbody/3.5.4_2/include/simbody -isystem /usr/local/Cellar/sdformat6/6.0.0/include/sdformat-6.0 -isystem /usr/local/include/ignition/math4 -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_5/include/OGRE -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_5/include -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_5/include/OGRE/Terrain -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_5/include/OGRE/Paging -isystem /usr/local/include/ignition/transport4 -isystem /usr/local/include/ignition/msgs1 -isystem /usr/local/include/ignition/common1 -isystem /usr/local/include/ignition/fuel_tools1 -I/Users/dpucci/src/robotology-superbuild/robotology/GazeboYARPPlugins/libraries/singleton/include -isystem /usr/local/include/eigen3 -isystem /usr/local/Cellar/ossp-uuid/1.6.2_2/include/ossp -isystem /usr/local/Cellar/ffmpeg/3.4.2/include  -std=c++11 -stdlib=libc++ -O3 -DNDEBUG -fPIC   -I/usr/local/Cellar/ossp-uuid/1.6.2_2/include/ossp -I/usr/local/Cellar/ffmpeg/3.4.2/include -std=gnu++14 -o CMakeFiles/gazebo_yarp_singleton.dir/src/Handler.cc.o -c /Users/dpucci/src/robotology-superbuild/robotology/GazeboYARPPlugins/libraries/singleton/src/Handler.cc
In file included from /Users/dpucci/src/robotology-superbuild/robotology/GazeboYARPPlugins/libraries/singleton/src/Handler.cc:9:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/dev/PolyDriver.h:10:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/dev/Drivers.h:10:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/Network.h:17:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/Time.h:13:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/NetworkClock.h:11:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/BufferedPort.h:12:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/PortReaderBuffer.h:19:
/Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/PortReaderBufferBase.h:74:10: error: 'deprecated' attribute cannot be applied to types
    void YARP_DEPRECATED setAllowReuse(bool flag = true);
         ^
/Users/dpucci/src/robotology-superbuild/build/install/include/yarp/conf/compiler.h:2472:33: note: expanded from macro 'YARP_DEPRECATED'
#      define YARP_DEPRECATED [[deprecated]]
                                ^
In file included from /Users/dpucci/src/robotology-superbuild/robotology/GazeboYARPPlugins/libraries/singleton/src/Handler.cc:9:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/dev/PolyDriver.h:10:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/dev/Drivers.h:10:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/Network.h:17:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/Time.h:13:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/NetworkClock.h:11:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/BufferedPort.h:12:
In file included from /Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/PortReaderBuffer.h:19:
/Users/dpucci/src/robotology-superbuild/build/install/include/yarp/os/PortReaderBufferBase.h:75:10: error: 'deprecated' attribute cannot be applied to types
    void YARP_DEPRECATED release(yarp::os::PortReader* completed);
         ^
/Users/dpucci/src/robotology-superbuild/build/install/include/yarp/conf/compiler.h:2472:33: note: expanded from macro 'YARP_DEPRECATED'
#      define YARP_DEPRECATED [[deprecated]]
                                ^
2 errors generated.
make[2]: *** [libraries/singleton/CMakeFiles/gazebo_yarp_singleton.dir/src/Handler.cc.o] Error 1
make[1]: *** [libraries/singleton/CMakeFiles/gazebo_yarp_singleton.dir/all] Error 2
make: *** [all] Error 2
@traversaro
Copy link
Member

traversaro commented Mar 14, 2018

This is related to robotology/yarp#1531 (apparently for Linux this is generating a warning, but on macOS this is creating a compiler error).

@traversaro
Copy link
Member

@DanielePucci can you check if this solves the problem: robotology/yarp#1591 ? Thanks

@traversaro
Copy link
Member

@DanielePucci I think we can close this issue.

@DanielePucci
Copy link
Contributor Author

Definitely, thanks

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

2 participants