rock-simulation / mars

MARS is a cross-platform simulation and visualisation tool created for robotics research.
https://github.com/rock-simulation/mars/wiki
59 stars 42 forks source link

MARS doesn't build due to 'rock/base-types' error on Mac #7

Closed bergatt closed 9 years ago

bergatt commented 9 years ago

While trying to rebuild MARS on my Mac I just ran into the following error. Any ideas why it isn't working any more? @malter

building rock/base-types ...

-- The C compiler identification is GNU 4.2.1 -- The CXX compiler identification is GNU 4.2.1 -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Checking whether C compiler supports OSX deployment target flag -- Checking whether C compiler supports OSX deployment target flag - yes -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - yes -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.28") -- Performing Test CXX_SUPPORTS_Wall -- Performing Test CXX_SUPPORTS_Wall - Success -- Performing Test CXX_SUPPORTS_Wno_unused_local_typedefs -- Performing Test CXX_SUPPORTS_Wno_unused_local_typedefs - Failed -- Boost version: 1.56.0 -- checking for module 'eigen3' -- found eigen3, version 3.0.6 -- Found Doxygen: /opt/local/bin/doxygen (found version "1.8.7") -- SISL library not found, NURBS 3D curve wrappers won't be installed (missing: SISL_INCLUDE_DIRS SISL_LIBRARIES) -- Compiling base without 'spline' support pkg-config: /Users/bergatt/Repositories/mars/rock/base-types/src/base.pc.in is not available for configuration -- checking for module 'vizkit3d' -- package 'vizkit3d' not found -- vizkit3d not found ... NOT building the vizkit3d plugin -- FindRuby: looking for config.h -- Found Ruby: /usr/bin/ruby
-- did not find Yard, the Ruby packages won't generate documentation -- Ruby library found: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.dylib -- found Ruby version 1.8.7 -- Could not find all required gems (missing: GEM_rice_FOUND) CMake Warning at /Users/bergatt/Repositories/mars/install/share/rock/cmake/RockRuby.cmake:297 (message): cannot find the rice gem -- extension base_types_ruby will not be available Call Stack (most recent call first): /Users/bergatt/Repositories/mars/install/share/rock/cmake/RockRuby.cmake:97 (rock_ruby_rice_extension) bindings/ruby/CMakeLists.txt:2 (rock_add_ruby_package)

-- Boost version: 1.56.0 -- Using the following Boost include directory: /opt/local/include -- Found the following Boost libraries: -- unit_test_framework: /opt/local/lib/libboost_unit_test_framework-mt.dylib -- system: /opt/local/lib/libboost_system-mt.dylib -- boost/test found ... building the test suite -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

base

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /Users/bergatt/Repositories/mars/rock/base-types/build Scanning dependencies of target base [ 20%] Building CXX object src/CMakeFiles/base.dir/logging/logging_printf_style.cpp.o Linking CXX shared library libbase.dylib [ 20%] Built target base Scanning dependencies of target test_base_types Scanning dependencies of target benchmark [ 40%] [ 60%] Building CXX object test/CMakeFiles/benchmark.dir/benchmark.cpp.o Building CXX object test/CMakeFiles/benchmark.dir/bench_func.cpp.o In file included from /Users/bergatt/Repositories/mars/rock/base-types/base/TimeMark.hpp:5, from /Users/bergatt/Repositories/mars/rock/base-types/test/benchmark.cpp:1: /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp: In member function 'timeval base::Time::toTimeval() const': /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected >' before '__time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: 'time_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before '__suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected `>' before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before '__suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: '__suseconds_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected)' before '}' token /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected)' before '}' token [ 80%] [100%] Building CXX object test/CMakeFiles/test_base_types.dir/test.cpp.o Building CXX object test/CMakeFiles/test_base_types.dir/test_backwards.cpp.o make[2]: **\* [test/CMakeFiles/benchmark.dir/benchmark.cpp.o] Error 1 make[2]: **\* Waiting for unfinished jobs.... In file included from /Users/bergatt/Repositories/mars/rock/base-types/base/backward/base/actuators/commands.h:5, from /Users/bergatt/Repositories/mars/rock/base-types/test/test_backwards.cpp:1: /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp: In member function 'timeval base::Time::toTimeval() const': /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before '__time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected>' before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected`(' before '__time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: 'time_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected >' before '__suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: 'suseconds_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected )' before '}' token /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected)' before '}' token In file included from /Users/bergatt/Repositories/mars/rock/base-types/test/test.cpp:4: /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp:180: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp:195: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' In file included from /Users/bergatt/Repositories/mars/rock/base-types/base/samples/Joints.hpp:7, from /Users/bergatt/Repositories/mars/rock/base-types/base/commands/Joints.hpp:4, from /Users/bergatt/Repositories/mars/rock/base-types/test/test.cpp:7: /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp: In member function 'timeval base::Time::toTimeval() const': /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before '__time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected `>' before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before '__time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: '__time_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before '__suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected>' before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected`(' before '__suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: 'suseconds_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected )' before '}' token /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected)' before '}' token In file included from /Users/bergatt/Repositories/mars/rock/base-types/base/backward/base/angle.h:1, from /Users/bergatt/Repositories/mars/rock/base-types/test/test_backwards.cpp:4: /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp: At global scope: /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp:180: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp:195: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' make[2]: * [test/CMakeFiles/test_base_types.dir/test_backwards.cpp.o] Error 1 make[2]: * Waiting for unfinished jobs.... make[1]: * [test/CMakeFiles/benchmark.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... make[2]: * [test/CMakeFiles/test_base_types.dir/test.cpp.o] Error 1 make[1]: * [test/CMakeFiles/test_base_types.dir/all] Error 2 make: *\ [all] Error 2

Error: There was an Error. Please check the above output for more information

malter commented 9 years ago

Hey,

it’s a bug in base/types wich is already known and was fixed by Sylvain or Malte W.. I forgot to tell him that the bug is still alive on the master branch. ;-) Just replace __time_t and __suseconds_t with time_t and suseconds_t in base-types/base/Time.hpp.

Best, Malte

Am 24.10.2014 um 09:36 schrieb bergatt notifications@github.com:

While trying to rebuild MARS on my Mac I just ran into the following error. Any ideas why it isn't working any more? @malter

building rock/base-types ...

-- The C compiler identification is GNU 4.2.1 -- The CXX compiler identification is GNU 4.2.1 -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Checking whether C compiler supports OSX deployment target flag -- Checking whether C compiler supports OSX deployment target flag - yes -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - yes -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.28") -- Performing Test CXX_SUPPORTS_Wall -- Performing Test CXX_SUPPORTS_Wall - Success -- Performing Test CXX_SUPPORTS_Wno_unused_local_typedefs -- Performing Test CXX_SUPPORTS_Wno_unused_local_typedefs - Failed -- Boost version: 1.56.0 -- checking for module 'eigen3' -- found eigen3, version 3.0.6 -- Found Doxygen: /opt/local/bin/doxygen (found version "1.8.7") -- SISL library not found, NURBS 3D curve wrappers won't be installed (missing: SISL_INCLUDE_DIRS SISL_LIBRARIES) -- Compiling base without 'spline' support pkg-config: /Users/bergatt/Repositories/mars/rock/base-types/src/base.pc.in is not available for configuration -- checking for module 'vizkit3d' -- package 'vizkit3d' not found -- vizkit3d not found ... NOT building the vizkit3d plugin -- FindRuby: looking for config.h -- Found Ruby: /usr/bin/ruby

-- did not find Yard, the Ruby packages won't generate documentation -- Ruby library found: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.dylib -- found Ruby version 1.8.7 -- Could not find all required gems (missing: GEM_rice_FOUND) CMake Warning at /Users/bergatt/Repositories/mars/install/share/rock/cmake/RockRuby.cmake:297 (message): cannot find the rice gem -- extension base_types_ruby will not be available Call Stack (most recent call first): /Users/bergatt/Repositories/mars/install/share/rock/cmake/RockRuby.cmake:97 (rock_ruby_rice_extension) bindings/ruby/CMakeLists.txt:2 (rock_add_ruby_package)

-- Boost version: 1.56.0 -- Using the following Boost include directory: /opt/local/include -- Found the following Boost libraries: -- unit_test_framework: /opt/local/lib/libboost_unit_test_framework-mt.dylib -- system: /opt/local/lib/libboost_system-mt.dylib -- boost/test found ... building the test suite -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

base

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /Users/bergatt/Repositories/mars/rock/base-types/build Scanning dependencies of target base [ 20%] Building CXX object src/CMakeFiles/base.dir/logging/logging_printf_style.cpp.o Linking CXX shared library libbase.dylib [ 20%] Built target base Scanning dependencies of target test_base_types Scanning dependencies of target benchmark [ 40%] [ 60%] Building CXX object test/CMakeFiles/benchmark.dir/benchmark.cpp.o Building CXX object test/CMakeFiles/benchmark.dir/bench_func.cpp.o In file included from /Users/bergatt/Repositories/mars/rock/base-types/base/TimeMark.hpp:5, from /Users/bergatt/Repositories/mars/rock/base-types/test/benchmark.cpp:1: /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp: In member function 'timeval base::Time::toTimeval() const': /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected >' before '__time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: 'time_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before '__suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected >' before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: '__suseconds_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected )' before '}' token /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected)' before '}' token [ 80%] [100%] Building CXX object test/CMakeFiles/test_base_types.dir/test.cpp.o Building CXX object test/CMakeFiles/test_base_types.dir/test_backwards.cpp.o make[2]: * [test/CMakeFiles/benchmark.dir/benchmark.cpp.o] Error 1 make[2]: * Waiting for unfinished jobs.... In file included from /Users/bergatt/Repositories/mars/rock/base-types/base/backward/base/actuators/commands.h:5, from /Users/bergatt/Repositories/mars/rock/base-types/test/test_backwards.cpp:1: /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp: In member function 'timeval base::Time::toTimeval() const': /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected >' before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before '__time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: 'time_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected >' before '__suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: 'suseconds_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected )' before '}' token /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected)' before '}' token In file included from /Users/bergatt/Repositories/mars/rock/base-types/test/test.cpp:4: /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp:180: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp:195: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' In file included from /Users/bergatt/Repositories/mars/rock/base-types/base/samples/Joints.hpp:7, from /Users/bergatt/Repositories/mars/rock/base-types/base/commands/Joints.hpp:4, from /Users/bergatt/Repositories/mars/rock/base-types/test/test.cpp:7: /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp: In member function 'timeval base::Time::toTimeval() const': /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before '__time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected >' before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before 'time_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: '__time_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected type-specifier before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected >' before 'suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected(' before '__suseconds_t' /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: 'suseconds_t' was not declared in this scope /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected )' before '}' token /Users/bergatt/Repositories/mars/rock/base-types/base/Time.hpp:68: error: expected)' before '}' token In file included from /Users/bergatt/Repositories/mars/rock/base-types/base/backward/base/angle.h:1, from /Users/bergatt/Repositories/mars/rock/base-types/test/test_backwards.cpp:4: /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp: At global scope: /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp:180: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' /Users/bergatt/Repositories/mars/rock/base-types/base/Angle.hpp:195: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' make[2]: * [test/CMakeFiles/test_base_types.dir/test_backwards.cpp.o] Error 1 make[2]: * Waiting for unfinished jobs.... make[1]: * [test/CMakeFiles/benchmark.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... make[2]: * [test/CMakeFiles/test_base_types.dir/test.cpp.o] Error 1 make[1]: * [test/CMakeFiles/test_base_types.dir/all] Error 2 make: *\ [all] Error 2

Error: There was an Error. Please check the above output for more information

— Reply to this email directly or view it on GitHub.

Malte Langosz Weltraumrobotik

Besuchsadresse der Nebengeschäftstelle: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 5 28359 Bremen, Germany

Postadresse der Hauptgeschäftsstelle Standort Bremen: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 1 28359 Bremen, Germany

Tel.: +49 421 178 45-4126 Zentrale: +49 421 178 45-0 Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen) E-Mail: malte.langosz@dfki.de

Weitere Informationen: http://www.dfki.de/robotik


Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3


bergatt commented 9 years ago

Found a fix! Just remove '' from 'time_t' and '__suseconds_t' in line 68 in 'base-types/base/Time.hpp' and it is working again!

bergatt commented 9 years ago

Dammit @malter! Your way too fast! You even won't let me have my time of glory! X(

Issue is closed!