Catkin build failed, Exited with code 2

asked 2016-11-19 14:56:57 -0600

rubanraj54 gravatar image

updated 2016-11-20 05:24:06 -0600

gvdhoorn gravatar image

Hi Guys,

I tried to uninstall ros indigo and installed the same ros indigo in my machine(ubuntu 14.04).

Before this, I was able to do "catkin build" my workspace. But now, it is throwing some errors.

I have around 12 packages in my workspace, and it shows error is on one particular package.

I could not able to upload the error screenshot due to less points, so i just copy paste the error below.

rubanraj54@Ruby:~/catkin_ws/devel$ catkin build 
---------------------------------------------------------------
Profile:                     default
Extending:          [cached] /opt/ros/indigo
Workspace:                   /home/rubanraj54/catkin_ws
---------------------------------------------------------------
Source Space:       [exists] /home/rubanraj54/catkin_ws/src
Log Space:          [exists] /home/rubanraj54/catkin_ws/logs
Build Space:        [exists] /home/rubanraj54/catkin_ws/build
Devel Space:        [exists] /home/rubanraj54/catkin_ws/devel
Install Space:      [unused] /home/rubanraj54/catkin_ws/install
DESTDIR:            [unused] None
---------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
---------------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
---------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
---------------------------------------------------------------
Workspace configuration appears valid.
---------------------------------------------------------------
[build] Found '12' packages in 0.0 seconds.                                                                          
[build] Package table is up to date.                                                                                 
Starting  >>> amr_binaries                                                                                           
Starting  >>> amr_msgs                                                                                               
Starting  >>> amr_stage_worlds                                                                                       
Starting  >>> package                                                                                                
Finished  <<< amr_stage_worlds                [ 0.2 seconds ]                                                        
Finished  <<< package                         [ 0.4 seconds ]                                                        
Finished  <<< amr_binaries                    [ 0.3 seconds ]                                                        
Finished  <<< amr_msgs                        [ 1.4 seconds ]                                                        
Starting  >>> amr_srvs                                                                                               
Finished  <<< amr_srvs                        [ 0.4 seconds ]                                                        
Starting  >>> amr_perception                                                                                         
Starting  >>> amr_stage                                                                                              
Starting  >>> amr_ui                                                                                                 
Finished  <<< amr_ui                          [ 0.1 seconds ]                                                        
Finished  <<< amr_perception                  [ 15.6 seconds ]                                                       
_____________________________________________________________________________________________________________________
Errors     << amr_stage:make /home/rubanraj54/catkin_ws/logs/amr_stage/build.make.005.log                            
In file included from /home/rubanraj54/catkin_ws/src/ws16-rravic2s/amr_stage/nodes/stage.cpp:16:0:
/opt/ros/indigo/include/Stage-4.1/stage.hh:625:39: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
 #define PRINT_ERR(m) fprintf( stderr, "\033[41merr\033[0m: "m" (%s %s)\n", __FILE__, __FUNCTION__)
                                       ^
/opt/ros/indigo/include/Stage-4.1/stage.hh:626:42: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
 #define PRINT_ERR1(m,a) fprintf( stderr, "\033[41merr\033[0m: "m" (%s %s)\n", a, __FILE__, __FUNCTION__)   

CMakeFiles/stage.dir/src/base.cpp.o: In function `amr::stage::Base::publish(ros::Time)':
base.cpp:(.text+0xb69): undefined reference to `Stg::ModelPosition::GetGlobalVelocity() const'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/rubanraj54/catkin_ws/devel/.private/amr_stage/lib/amr_stage/stage] Error 1
make[1]: *** [CMakeFiles/stage.dir/all] Error 2
make: *** [all] Error 2
cd /home/rubanraj54/catkin_ws/build/amr_stage; catkin build --get-env amr_stage | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
.....................................................................................................................
Failed     << amr_stage:make                  [ Exited with code 2 ]                                                 
Failed    <<< amr_stage                       [ 20.5 seconds ]                                                       
Abandoned <<< amr                             [ Unrelated job failed ]                                               
Abandoned <<< amr_braitenberg                 [ Unrelated job failed ]                                               
Abandoned <<< amr_navigation                  [ Unrelated job failed ]                                               
Abandoned <<< amr_bugs                        [ Unrelated job failed ]                                               
[build] Summary: 7 of 12 packages succeeded.                                                                         
[build]   Ignored:   None.                                                                                           
[build]   Warnings:  None.                                                                                           
[build]   Abandoned: 4 packages were abandoned.                                                                      
[build]   Failed:    1 packages failed.                                                                              
[build] Runtime: 23.2 seconds total.
edit retag flag offensive close merge delete

Comments

I could not able to upload the error screenshot due to less points, so i just copy paste the error below

Using screenshots for what is basically text is not a good iea anyway, so this is better.

gvdhoorn gravatar image gvdhoorn  ( 2016-11-20 05:23:01 -0600 )edit

Could you please use the Preformatted Text button (the one with 101010 on it) next time you copy-paste console text or code snippets into your question? Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2016-11-20 05:23:32 -0600 )edit