Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 417

Catkin_make fails from saved files

$
0
0
Hi everyone! My catkin workspace has been compiling fine for a few weeks, before upgrading and adding a plugin a few days ago I saved it on github. No idea what I did when adding this plugin, but the workspace did not build anymore (invoking catkin_make failed at 9%), so I thought I would simply go back to the saved version and add the source files that had changed since then one by one. However catkin_make fails even using the saved build, devel and src folders on github, which I know compiled earlier. I have created a new workspace using [this tutorial](http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment), everything works fine, but then when I replace the empty src folder with my saved one catkin_make fails (`Invoking "make -j48 -l48" failed` at 9%). Same if I also replace the devel folder with the saved version. I have tried using a clean terminal, have done `source /opt/ros/kinetic/setup.bash` before building the empty workspace for the first time and `source devel/setup.bash` after the first build. `echo $ROS_PACKAGE_PATH` returns `/home/MBuisson-fenet/simulation/catkin_ws/src:/home/MBuisson-fenet/simulation_new_try/catkin_ws/src:/opt/ros/kinetic/share`, which kind of confuses me since "simulation" is where I had catkin_make fail for the first time, and "simulation_new_try" is where I am trying to retrieve my saved workspace right now. I have updated and upgraded my computer. I am using ROS Kinetic, Ubuntu 16.04 and Cmake 3.5.1. I really don't know what to do anymore, so any help would be greatly appreciated! Many thanks! End of the output of catkin_make: [ 9%] Performing build step for 'glog_src' make[3]: warning: -jN forced in submake: disabling jobserver mode. libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c src/raw_logging.cc -fPIC -DPIC -o src/.libs/libglog_la-raw_logging.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c src/vlog_is_on.cc -fPIC -DPIC -o src/.libs/libglog_la-vlog_is_on.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc -fPIC -DPIC -o src/.libs/libglog_la-logging.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c src/symbolize.cc -fPIC -DPIC -o src/.libs/libglog_la-symbolize.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-signalhandler.lo -MD -MP -MF src/.deps/libglog_la-signalhandler.Tpo -c src/signalhandler.cc -fPIC -DPIC -o src/.libs/libglog_la-signalhandler.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c src/utilities.cc -fPIC -DPIC -o src/.libs/libglog_la-utilities.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c src/demangle.cc -fPIC -DPIC -o src/.libs/libglog_la-demangle.o [ 9%] Built target hector_servo_plugin In file included from src/utilities.h:82:0, from src/logging_unittest.cc:33: src/logging_unittest.cc: In function ‘void TestLogging(bool)’: src/glog/logging.h:917:30: warning: typedef ‘INVALID_REQUESTED_LOG_SEVERITY’ locally defined but not used [-Wunused-local-typedefs] INVALID_REQUESTED_LOG_SEVERITY); \ ^ src/glog/logging.h:912:73: note: in definition of macro ‘GOOGLE_GLOG_COMPILE_ASSERT’ typedef google::glog_internal_namespace_::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] ^ src/logging_unittest.cc:254:5: note: in expansion of macro ‘LOG_EVERY_N’ LOG_EVERY_N(ERROR, 4) << "Log every 4, iteration " << COUNTER << endl; ^ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c src/raw_logging.cc -fPIC -DPIC -o src/libglog_la-raw_logging.o >/dev/null 2>&1 libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c src/vlog_is_on.cc -fPIC -DPIC -o src/libglog_la-vlog_is_on.o >/dev/null 2>&1 libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c src/utilities.cc -fPIC -DPIC -o src/libglog_la-utilities.o >/dev/null 2>&1 libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c src/symbolize.cc -fPIC -DPIC -o src/libglog_la-symbolize.o >/dev/null 2>&1 libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-signalhandler.lo -MD -MP -MF src/.deps/libglog_la-signalhandler.Tpo -c src/signalhandler.cc -fPIC -DPIC -o src/libglog_la-signalhandler.o >/dev/null 2>&1 libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c src/demangle.cc -fPIC -DPIC -o src/libglog_la-demangle.o >/dev/null 2>&1 In file included from /usr/include/c++/5/ext/hash_set:60:0, from src/glog/stl_logging.h:73, from src/stl_logging_unittest.cc:53: /usr/include/c++/5/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp] #warning \ ^ In file included from src/utilities.h:73:0, from src/googletest.h:38, from src/stl_logging_unittest.cc:54: src/base/mutex.h:137:0: warning: "_XOPEN_SOURCE" redefined # define _XOPEN_SOURCE 500 // may be needed to get the rwlock calls ^ In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482, from /usr/include/c++/5/iostream:38, from src/stl_logging_unittest.cc:34: /usr/include/features.h:169:0: note: this is the location of the previous definition # define _XOPEN_SOURCE 700 ^ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc -fPIC -DPIC -o src/libglog_la-logging.o >/dev/null 2>&1 libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbeginS.o src/.libs/libglog_la-logging.o src/.libs/libglog_la-raw_logging.o src/.libs/libglog_la-vlog_is_on.o src/.libs/libglog_la-utilities.o src/.libs/libglog_la-demangle.o src/.libs/libglog_la-symbolize.o src/.libs/libglog_la-signalhandler.o -L/lib -lgflags -lpthread -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/5/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o -O2 -Wl,-soname -Wl,libglog.so.0 -o .libs/libglog.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libglog.so.0" && ln -s "libglog.so.0.0.0" "libglog.so.0") libtool: link: (cd ".libs" && rm -f "libglog.so" && ln -s "libglog.so.0.0.0" "libglog.so") libtool: link: ar cru .libs/libglog.a src/libglog_la-logging.o src/libglog_la-raw_logging.o src/libglog_la-vlog_is_on.o src/libglog_la-utilities.o src/libglog_la-demangle.o src/libglog_la-symbolize.o src/libglog_la-signalhandler.o ar: `u' modifier ignored since `D' is the default (see `U') libtool: link: ranlib .libs/libglog.a libtool: link: ( cd ".libs" && rm -f "libglog.la" && ln -s "../libglog.la" "libglog.la" ) libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/stacktrace_unittest src/stacktrace_unittest-stacktrace_unittest.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/demangle_unittest src/demangle_unittest-demangle_unittest.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/logging_unittest src/logging_unittest-logging_unittest.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/logging_striptest2 src/logging_striptest2-logging_striptest2.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/utilities_unittest src/utilities_unittest-utilities_unittest.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/stl_logging_unittest src/stl_logging_unittest-stl_logging_unittest.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/symbolize_unittest src/symbolize_unittest-symbolize_unittest.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/logging_striptest0 src/logging_striptest0-logging_striptest_main.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/logging_striptest10 src/logging_striptest10-logging_striptest10.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib libtool: link: g++ -pthread -I/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -pthread -o .libs/signalhandler_unittest src/signalhandler_unittest-signalhandler_unittest.o ./.libs/libglog.so -L/lib -lgflags -lpthread -pthread -Wl,-rpath -Wl,/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib [ 9%] Performing install step for 'glog_src' make[3]: warning: -jN forced in submake: disabling jobserver mode. /bin/mkdir -p '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/include/glog' /bin/mkdir -p '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/share/doc/glog-0.3.4' /bin/mkdir -p '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib/pkgconfig' /bin/mkdir -p '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/include/glog' /bin/mkdir -p '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib' /bin/bash ./libtool --mode=install /usr/bin/install -c libglog.la '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib' /usr/bin/install -c -m 644 src/glog/log_severity.h '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/include/glog' /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README README.windows doc/designstyle.css doc/glog.html '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/share/doc/glog-0.3.4' /usr/bin/install -c -m 644 libglog.pc '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib/pkgconfig' /usr/bin/install -c -m 644 src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h '/home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/include/glog' libtool: install: /usr/bin/install -c .libs/libglog.so.0.0.0 /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib/libglog.so.0.0.0 libtool: install: (cd /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib && { ln -s -f libglog.so.0.0.0 libglog.so.0 || { rm -f libglog.so.0 && ln -s libglog.so.0.0.0 libglog.so.0; }; }) libtool: install: (cd /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib && { ln -s -f libglog.so.0.0.0 libglog.so || { rm -f libglog.so && ln -s libglog.so.0.0.0 libglog.so; }; }) libtool: install: /usr/bin/install -c .libs/libglog.lai /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib/libglog.la libtool: install: /usr/bin/install -c .libs/libglog.a /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib/libglog.a libtool: install: chmod 644 /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib/libglog.a libtool: install: ranlib /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib/libglog.a libtool: finish: PATH="/opt/ros/kinetic/bin:/home/MBuisson-fenet/bin:/home/MBuisson-fenet/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib ---------------------------------------------------------------------- Libraries have been installed in: /home/MBuisson-fenet/simulation_new_try/catkin_ws/devel/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- [ 9%] Completed 'glog_src' [ 9%] Built target glog_src Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j48 -l48" failed My CMakeLists.txt: # toplevel CMakeLists.txt for a catkin workspace # catkin/cmake/toplevel.cmake cmake_minimum_required(VERSION 2.8.3) set(CATKIN_TOPLEVEL TRUE) # search for catkin within the workspace set(_cmd "catkin_find_pkg" "catkin" "${CMAKE_SOURCE_DIR}") execute_process(COMMAND ${_cmd} RESULT_VARIABLE _res OUTPUT_VARIABLE _out ERROR_VARIABLE _err OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE ) if(NOT _res EQUAL 0 AND NOT _res EQUAL 2) # searching fot catkin resulted in an error string(REPLACE ";" " " _cmd_str "${_cmd}") message(FATAL_ERROR "Search for 'catkin' in workspace failed (${_cmd_str}): ${_err}") endif() # include catkin from workspace or via find_package() if(_res EQUAL 0) set(catkin_EXTRAS_DIR "${CMAKE_SOURCE_DIR}/${_out}/cmake") # include all.cmake without add_subdirectory to let it operate in same scope include(${catkin_EXTRAS_DIR}/all.cmake NO_POLICY_SCOPE) add_subdirectory("${_out}") else() # use either CMAKE_PREFIX_PATH explicitly passed to CMake as a command line argument # or CMAKE_PREFIX_PATH from the environment if(NOT DEFINED CMAKE_PREFIX_PATH) if(NOT "$ENV{CMAKE_PREFIX_PATH}" STREQUAL "") string(REPLACE ":" ";" CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH}) endif() endif() # list of catkin workspaces set(catkin_search_path "") foreach(path ${CMAKE_PREFIX_PATH}) if(EXISTS "${path}/.catkin") list(FIND catkin_search_path ${path} _index) if(_index EQUAL -1) list(APPEND catkin_search_path ${path}) endif() endif() endforeach() # search for catkin in all workspaces set(CATKIN_TOPLEVEL_FIND_PACKAGE TRUE) find_package(catkin QUIET NO_POLICY_SCOPE PATHS ${catkin_search_path} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) unset(CATKIN_TOPLEVEL_FIND_PACKAGE) if(NOT catkin_FOUND) message(FATAL_ERROR "find_package(catkin) failed. catkin was neither found in the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh was sourced before.") endif() endif() catkin_workspace()

Viewing all articles
Browse latest Browse all 417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>