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

build errors on branch branch origin/dev #124

Open
ndehio opened this issue Feb 4, 2020 · 1 comment
Open

build errors on branch branch origin/dev #124

ndehio opened this issue Feb 4, 2020 · 1 comment

Comments

@ndehio
Copy link

ndehio commented Feb 4, 2020

Using the the branch origin/dev I receive the following errors:

ndehio@ndehio-5540:~/src/roboptim-core/build$ make 
/usr/bin/cmake -H/home/ndehio/src/roboptim-core -B/home/ndehio/src/roboptim-core/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/ndehio/src/roboptim-core/build/CMakeFiles /home/ndehio/src/roboptim-core/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/ndehio/src/roboptim-core/build'
make -f src/CMakeFiles/roboptim-core.dir/build.make src/CMakeFiles/roboptim-core.dir/depend
make[2]: Entering directory '/home/ndehio/src/roboptim-core/build'
cd /home/ndehio/src/roboptim-core/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/ndehio/src/roboptim-core /home/ndehio/src/roboptim-core/src /home/ndehio/src/roboptim-core/build /home/ndehio/src/roboptim-core/build/src /home/ndehio/src/roboptim-core/build/src/CMakeFiles/roboptim-core.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/ndehio/src/roboptim-core/build'
make -f src/CMakeFiles/roboptim-core.dir/build.make src/CMakeFiles/roboptim-core.dir/build
make[2]: Entering directory '/home/ndehio/src/roboptim-core/build'
[  0%] Building CXX object src/CMakeFiles/roboptim-core.dir/generic-solver.cc.o
cd /home/ndehio/src/roboptim-core/build/src && /usr/bin/c++  -DROBOPTIM_DO_NOT_CHECK_ALLOCATION -DROBOPTIM_STORAGE_ORDER=ColMajor -Droboptim_core_EXPORTS -I/home/ndehio/src/roboptim-core/build -I/home/ndehio/src/roboptim-core/build/include -I/home/ndehio/src/roboptim-core/include -isystem /usr/include/eigen3  -Werror  -pedantic -Wno-long-long -Wall -Wextra -Wcast-align -Wcast-qual -Wformat -Wwrite-strings -Wconversion  -fvisibility=hidden -O2 -g -DNDEBUG -fPIC   -Droboptim_core_EXPORTS -o CMakeFiles/roboptim-core.dir/generic-solver.cc.o -c /home/ndehio/src/roboptim-core/src/generic-solver.cc
In file included from /home/ndehio/src/roboptim-core/include/roboptim/core/differentiable-function.hh:261:0,
                 from /home/ndehio/src/roboptim-core/include/roboptim/core/util.hxx:27,
                 from /home/ndehio/src/roboptim-core/include/roboptim/core/util.hh:212,
                 from /home/ndehio/src/roboptim-core/include/roboptim/core/function.hxx:33,
                 from /home/ndehio/src/roboptim-core/include/roboptim/core/function.hh:603,
                 from /home/ndehio/src/roboptim-core/include/roboptim/core/problem.hh:31,
                 from /home/ndehio/src/roboptim-core/include/roboptim/core/generic-solver.hh:36,
                 from /home/ndehio/src/roboptim-core/src/generic-solver.cc:22:
/home/ndehio/src/roboptim-core/include/roboptim/core/differentiable-function.hxx: In member function ‘void roboptim::GenericDifferentiableFunction<T>::impl_jacobian(roboptim::GenericDifferentiableFunction<T>::jacobian_ref, roboptim::GenericDifferentiableFunction<T>::const_argument_ref) const [with T = roboptim::EigenMatrixSparse; roboptim::GenericDifferentiableFunction<T>::jacobian_ref = Eigen::SparseMatrix<double, 0>&; roboptim::GenericDifferentiableFunction<T>::const_argument_ref = const Eigen::Ref<const Eigen::Matrix<double, -1, 1> >&]’:
/home/ndehio/src/roboptim-core/include/roboptim/core/differentiable-function.hxx:52:46: error: conversion to ‘int’ from ‘Eigen::EigenBase<Eigen::SparseMatrix<double, 0> >::Index {aka long int}’ may alter its value [-Werror=conversion]
               (triplet_t (i, idx, it.value ()));
                                              ^
/home/ndehio/src/roboptim-core/include/roboptim/core/differentiable-function.hxx:52:46: error: conversion to ‘int’ from ‘Eigen::EigenBase<Eigen::SparseMatrix<double, 0> >::Index {aka long int}’ may alter its value [-Werror=conversion]
In file included from /home/ndehio/src/roboptim-core/include/roboptim/core/generic-solver.hh:36:0,
                 from /home/ndehio/src/roboptim-core/src/generic-solver.cc:22:
/home/ndehio/src/roboptim-core/include/roboptim/core/problem.hh: At global scope:
/home/ndehio/src/roboptim-core/include/roboptim/core/problem.hh:241:56: error: ‘roboptim::Problem<T>::scales_t’ is deprecated [-Werror=deprecated-declarations]
     ROBOPTIM_CORE_DEPRECATED scales_t& argumentScales ();
                                                        ^
/home/ndehio/src/roboptim-core/include/roboptim/core/problem.hh:132:48: note: declared here
     ROBOPTIM_CORE_DEPRECATED typedef scaling_t scales_t;
                                                ^~~~~~~~
/home/ndehio/src/roboptim-core/include/roboptim/core/problem.hh:246:64: error: ‘roboptim::Problem<T>::scales_t’ is deprecated [-Werror=deprecated-declarations]
     ROBOPTIM_CORE_DEPRECATED const scales_t& argumentScales () const;
                                                                ^~~~~
/home/ndehio/src/roboptim-core/include/roboptim/core/problem.hh:132:48: note: declared here
     ROBOPTIM_CORE_DEPRECATED typedef scaling_t scales_t;
                                                ^~~~~~~~
/home/ndehio/src/roboptim-core/include/roboptim/core/problem.hh:312:66: error: ‘roboptim::Problem<T>::scalesVect_t’ is deprecated [-Werror=deprecated-declarations]
     ROBOPTIM_CORE_DEPRECATED const scalesVect_t& scalesVector () const;
                                                                  ^~~~~
/home/ndehio/src/roboptim-core/include/roboptim/core/problem.hh:157:52: note: declared here
     ROBOPTIM_CORE_DEPRECATED typedef scalingVect_t scalesVect_t;
                                                    ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
src/CMakeFiles/roboptim-core.dir/build.make:137: recipe for target 'src/CMakeFiles/roboptim-core.dir/generic-solver.cc.o' failed
make[2]: *** [src/CMakeFiles/roboptim-core.dir/generic-solver.cc.o] Error 1
make[2]: Leaving directory '/home/ndehio/src/roboptim-core/build'
CMakeFiles/Makefile2:588: recipe for target 'src/CMakeFiles/roboptim-core.dir/all' failed
make[1]: *** [src/CMakeFiles/roboptim-core.dir/all] Error 2
make[1]: Leaving directory '/home/ndehio/src/roboptim-core/build'
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2

@gergondet Any idea? I used our internal posture-generator script

@gergondet
Copy link
Contributor

It seems to come from -Werror so you can run cmake with cmake ../ -DCXX_DISABLE_WERROR=1 to disable that flag

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