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

'make posix_sitl_default gazebo' exiting with Error 1 #8938

Closed
varunvp opened this issue Feb 22, 2018 · 5 comments · Fixed by PX4/PX4-SITL_gazebo-classic#187 or #8948
Closed

'make posix_sitl_default gazebo' exiting with Error 1 #8938

varunvp opened this issue Feb 22, 2018 · 5 comments · Fixed by PX4/PX4-SITL_gazebo-classic#187 or #8948

Comments

@varunvp
Copy link

varunvp commented Feb 22, 2018

Hello,
The title says it all. I'm running Gazebo 7.11 and ROS Indigo on 14.04. This is what I get when I run make posix_sitl_default gazebo

[3/7] Performing configure step for 'sitl_gazebo'
-- install-prefix: /usr/local
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   thread
--   signals
--   system
--   filesystem
--   program_options
--   regex
--   iostreams
--   date_time
--   chrono
--   atomic
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread (found version "2.5.0") 
-- Boost version: 1.54.0
-- Looking for OGRE...
-- Found Ogre Byatis (1.8.1)
-- Found OGRE: optimized;/usr/lib/x86_64-linux-gnu/libOgreMain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreMain.so
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/lib/x86_64-linux-gnu/libOgrePaging.so;debug;/usr/lib/x86_64-linux-gnu/libOgrePaging.so
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/lib/x86_64-linux-gnu/libOgreProperty.so;debug;/usr/lib/x86_64-linux-gnu/libOgreProperty.so
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so;debug;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
--   thread
--   timer
--   chrono
--   date_time
--   atomic
-- Building klt_feature_tracker without catkin
-- Building OpticalFlow with OpenCV
-- catkin DISABLED
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread;-lpthread (found version "2.5.0") 
Gazebo version: 7.11
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
--   thread
--   timer
--   chrono
--   date_time
--   atomic
-- Configuring done
-- Generating done
-- Build files have been written to: /home/varun/src/Firmware/build/posix_sitl_default/build_gazebo
[4/7] Performing build step for 'sitl_gazebo'
FAILED: cd /home/varun/src/Firmware/build/posix_sitl_default/build_gazebo && /home/varun/CMake/cmake-3.10.2-Linux-x86_64/bin/cmake --build . && /home/varun/CMake/cmake-3.10.2-Linux-x86_64/bin/cmake -E touch /home/varun/src/Firmware/build/posix_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-build
[1/46] Building CXX object CMakeFiles/gazebo_lidar_plugin.dir/src/gazebo_lidar_plugin.cpp.o
[2/46] Building CXX object CMakeFiles/rotors_gazebo_mavlink_interface.dir/src/geo_mag_declination.cpp.o
[3/46] Building CXX object CMakeFiles/rotors_gazebo_mavlink_interface.dir/src/gazebo_mavlink_interface.cpp.o
FAILED: /usr/bin/c++  -Dgazebo_lidar_plugin_EXPORTS -I/usr/include/opencv -isystem /usr/include/gazebo-7 -isystem /usr/include/sdformat-4.4 -isystem /usr/include/ignition/math2 -isystem /usr/include/OGRE -isystem /usr/include/OGRE/Terrain -isystem /usr/include/OGRE/Paging -I/home/varun/src/Firmware/Tools/sitl_gazebo/include -I/home/varun/src/Firmware/Tools/sitl_gazebo/external/OpticalFlow/include -I/usr/include/gazebo-7/gazebo/msgs -I/usr/include/eigen3 -I. -I/usr/include/eigen3/eigen3 -I/usr/local/include/OGRE -I/usr/local/include/OGRE/Paging -I/home/varun/src/Firmware/mavlink/include -std=c++11 -std=c++11 -Wno-deprecated-declarations -fPIC -MD -MT CMakeFiles/gazebo_lidar_plugin.dir/src/gazebo_lidar_plugin.cpp.o -MF CMakeFiles/gazebo_lidar_plugin.dir/src/gazebo_lidar_plugin.cpp.o.d -o CMakeFiles/gazebo_lidar_plugin.dir/src/gazebo_lidar_plugin.cpp.o -c /home/varun/src/Firmware/Tools/sitl_gazebo/src/gazebo_lidar_plugin.cpp
/home/varun/src/Firmware/Tools/sitl_gazebo/src/gazebo_lidar_plugin.cpp: In member function ‘virtual void gazebo::RayPlugin::OnNewLaserScans()’:
/home/varun/src/Firmware/Tools/sitl_gazebo/src/gazebo_lidar_plugin.cpp:150:65: error: call of overloaded ‘isinf(double&)’ is ambiguous
   if (current_distance < min_distance_ || isinf(current_distance)) {
                                                                 ^
/home/varun/src/Firmware/Tools/sitl_gazebo/src/gazebo_lidar_plugin.cpp:150:65: note: candidates are:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/x86_64-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/string:38,
                 from /usr/include/gazebo-7/gazebo/physics/Actor.hh:20,
                 from /usr/include/gazebo-7/gazebo/physics/physics.hh:2,
                 from /home/varun/src/Firmware/Tools/sitl_gazebo/src/gazebo_lidar_plugin.cpp:22:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:201:1: note: int isinf(double)
 __MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
 ^
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from /usr/include/boost/function/detail/prologue.hpp:13,
                 from /usr/include/boost/function.hpp:24,
                 from /usr/include/gazebo-7/gazebo/physics/Model.hh:28,
                 from /usr/include/gazebo-7/gazebo/physics/Actor.hh:24,
                 from /usr/include/gazebo-7/gazebo/physics/physics.hh:2,
                 from /home/varun/src/Firmware/Tools/sitl_gazebo/src/gazebo_lidar_plugin.cpp:22:
/usr/include/c++/4.8/cmath:608:3: note: constexpr bool std::isinf(long double)
   isinf(long double __x)
   ^
/usr/include/c++/4.8/cmath:604:3: note: constexpr bool std::isinf(double)
   isinf(double __x)
   ^
/usr/include/c++/4.8/cmath:600:3: note: constexpr bool std::isinf(float)
   isinf(float __x)
   ^
ninja: build stopped: subcommand failed.
ninja: build stopped: subcommand failed.
make: *** [posix_sitl_default] Error 1

It always exits at 'Performing configure step for 'sitl_gazebo'. I have added the c++ path to PATH.
I searched the net for similar errors, but I didn't encounter any exiting with Error 1.

@ChristophTobler
Copy link
Contributor

@varunvp Can you test with that branch: https://github.com/PX4/sitl_gazebo/tree/pr-fix_isinf for the sitl_gazebo submodule?

cd Tools/sitl_gazebo
git fetch origin
git checkout pr-fix_isinf

@varunvp
Copy link
Author

varunvp commented Feb 22, 2018

I'll try it right away.

@varunvp
Copy link
Author

varunvp commented Feb 23, 2018 via email

@QuimItarte
Copy link

esiee@esiee-HP-xw4400-Workstation:~/src/Firmware$ make posix_sitl_default gazeboninja: Entering directory `/home/esiee/src/Firmware/build/posix_sitl_default'
[2/6] Performing configure step for 'sitl_gazebo'
FAILED: cd /home/esiee/src/Firmware/build/posix_sitl_default/build_gazebo && /usr/bin/cmake -DCMAKE_INSTALL_PREFIX=/usr/local -GNinja /home/esiee/src/Firmware/Tools/sitl_gazebo && /usr/bin/cmake -E touch /home/esiee/src/Firmware/build/posix_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-configure
-- install-prefix: /usr/local
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:28 (find_package)

CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:28 (find_package)

CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:28 (find_package)

CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1677 (message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:28 (find_package)

CMake Error at CMakeLists.txt:29 (find_package):
By not providing "Findgazebo.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "gazebo", but
CMake did not find one.

Could not find a package configuration file provided by "gazebo" with any
of the following names:

gazeboConfig.cmake
gazebo-config.cmake

Add the installation prefix of "gazebo" to CMAKE_PREFIX_PATH or set
"gazebo_DIR" to a directory containing one of the above files. If "gazebo"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!
See also "/home/esiee/src/Firmware/build/posix_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log".
See also "/home/esiee/src/Firmware/build/posix_sitl_default/build_gazebo/CMakeFiles/CMakeError.log".
ninja: build stopped: subcommand failed.
Makefile:148: recipe for target 'posix_sitl_default' failed
make: *** [posix_sitl_default] Error 1

I am also having the same problem but I can't find the solution of above, could some one please help me to find a solution?

thanks!

@hamishwillee
Copy link
Contributor

@QuimItarte This issue was closed. Suggest you repost a new issue with information about your setup. - what OS you are running on, what installation instructions you followed (generally for Linux I use the scripts here.

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