[ros-users] [FreeBSD] compiler command line gets mangled in rxtools ?

René Ladan rene at freebsd.org
Thu May 27 14:40:39 UTC 2010


Hi all,

While building ros-boxturtle (revision 9742 and the patch at
ftp://rene-ladan.nl/pub/freebsd/ros-boxturtle-9491.diff) on FreeBSD,
everything now builds
fine until the build stops in rxtools (some messages from gmake are in Dutch):

<<<<
[rosmake-1] >>> topic_tools >>> [ make ]
[ rosmake ] All 36 lines
{-------------------------------------------------------------------------------
  mkdir -p bin
  cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
rosbuild`/rostoolchain.cmake  ..
  [rosbuild] Building package rxtools
  [rosbuild] Including /usr/home/rene/ros/core/roscpp/cmake/roscpp.cmake
  [rosbuild] Including /usr/home/rene/ros/core/rospy/cmake/rospy.cmake
  [rosbuild] Couldn't find source file
/usr/home/rene/ros/tools/rxtools/src/rxtools/rosout_panel_swig_generated.cpp;
assuming that it is in /usr/home/rene/ros/tools/rxtools and will be
generated later
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /usr/home/rene/ros/tools/rxtools/build
  cd build && /usr/local/bin/gmake -j2
  gmake[1]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt binnengegaan
  gmake[2]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt binnengegaan
  gmake[3]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt binnengegaan
  gmake[3]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt verlaten
  [  0%] Built target rospack_genmsg_libexe
  gmake[3]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt binnengegaan
  gmake[3]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt verlaten
  [  0%] Built target rosbuild_precompile
  gmake[3]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt binnengegaan
  gmake[3]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt verlaten
  gmake[3]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt binnengegaan
  [  5%] [ 10%] Building CXX object
CMakeFiles/rxtools.dir/src/rxtools/topic_display_generated.o
  Building CXX object CMakeFiles/rxtools.dir/src/rxtools/topic_display.o
  c++: c++: No input files specified
  No input files specified
  -D_THREAD_SAFE: not found
  -D_THREAD_SAFE: not found
  gmake[3]: *** [CMakeFiles/rxtools.dir/src/rxtools/topic_display.o] Fout 127
  gmake[3]: *** Wachten op onvoltooide taken...
  gmake[3]: ***
[CMakeFiles/rxtools.dir/src/rxtools/topic_display_generated.o] Fout
127
  gmake[3]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt verlaten
  gmake[2]: *** [CMakeFiles/rxtools.dir/all] Fout 2
  gmake[2]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt verlaten
  gmake[1]: *** [all] Fout 2
  gmake[1]: Map '/usr/home/rene/ros/tools/rxtools/build' wordt verlaten
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package rxtools written to:
[ rosmake ]    /home/rene/.ros/rosmake/rosmake_output-20100527-130333/rxtools/build_output.log
[rosmake-0] <<< rxtools <<< [FAIL] [ 1.81 seconds ]
[ rosmake ] Halting due to failure in package rxtools.
[ rosmake ] Waiting for other threads to complete.
[rosmake-1] <<< topic_tools <<< [PASS] [ 3.06 seconds ]
[ rosmake ] Summary output to directory
[ rosmake ] /home/rene/.ros/rosmake/rosmake_output-20100527-130333
*** Error code 255

Stop in /usr/home/rene/ros.
>>>>

Looking inside the build directory, the semicolon before -D_THREAD_SAFE in
/home/rene/ros/tools/rxtools/build/CMakeFiles/rxtools.dir/link.txt
looks suspicious (-Wl,-rpath
-L, and -l arguments omitted for readability, -lboost_thread is one of them):

/usr/bin/c++  -fPIC  -pthread;-D_THREAD_SAFE -O2 -g  -pthread -shared
-Wl,-soname,librxtools.so -o ../lib/librxtools.so
CMakeFiles/rxtools.dir/src/rxtools/topic_display.o
CMakeFiles/rxtools.dir/src/rxtools/topic_display_generated.o
CMakeFiles/rxtools.dir/src/rxtools/topic_display_dialog.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_generated.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_panel.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_filter.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_text_filter.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_text_filter_control.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_severity_filter.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_severity_filter_control.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_list_control.o
CMakeFiles/rxtools.dir/src/rxtools/rosout_setup_dialog.o
CMakeFiles/rxtools.dir/src/rxtools/logger_level_panel.o
CMakeFiles/rxtools.dir/src/rxtools/init_roscpp.o -pthread

I have the following threading libraries installed:

% ls -l /usr/lib | grep thread
lrwxr-xr-x  1 root  wheel        8 21 nov  2009 libpthread.a -> libthr.a
lrwxr-xr-x  1 root  wheel        9 21 nov  2009 libpthread.so -> libthr.so
-r--r--r--  1 root  wheel    42228 21 nov  2009 libthread_db.a
lrwxr-xr-x  1 root  wheel       17 21 nov  2009 libthread_db.so ->
libthread_db.so.3
-r--r--r--  1 root  wheel    27680 21 nov  2009 libthread_db.so.3

% ls -l /usr/local/lib|grep thread
-r--r--r--   1 root  wheel    159304  1 mei 23:19 libboost_thread.a
lrwxr-xr-x   1 root  wheel        20  1 mei 23:19 libboost_thread.so
-> libboost_thread.so.4
-r--r--r--   1 root  wheel     87384  1 mei 23:19 libboost_thread.so.4
-rw-r--r--   1 root  wheel     41430  2 mei 00:05 libfftw3_threads.a
-rwxr-xr-x   1 root  wheel      1022  2 mei 00:05 libfftw3_threads.la
lrwxr-xr-x   1 root  wheel        21  2 mei 00:05 libfftw3_threads.so
-> libfftw3_threads.so.5
-rwxr-xr-x   1 root  wheel     33048  2 mei 00:05 libfftw3_threads.so.5
-rw-r--r--   1 root  wheel    479118  2 mei 10:11 libgpgme-pthread.a
-rwxr-xr-x   1 root  wheel      1116  2 mei 10:11 libgpgme-pthread.la
lrwxr-xr-x   1 root  wheel        22  2 mei 10:11 libgpgme-pthread.so
-> libgpgme-pthread.so.18
-rwxr-xr-x   1 root  wheel    254846  2 mei 10:11 libgpgme-pthread.so.18
-rw-r--r--   1 root  wheel      9550  2 mei 01:16 libgthread-12.a
lrwxr-xr-x   1 root  wheel        18  2 mei 01:16 libgthread-12.so ->
libgthread-12.so.3
-rwxr-xr-x   1 root  wheel     13936  2 mei 01:16 libgthread-12.so.3
-rw-r--r--   1 root  wheel     21576 11 mei 21:25 libgthread-2.0.a
-rwxr-xr-x   1 root  wheel      1130 11 mei 21:25 libgthread-2.0.la
lrwxr-xr-x   1 root  wheel        19 11 mei 21:25 libgthread-2.0.so ->
libgthread-2.0.so.0
-rwxr-xr-x   1 root  wheel     23968 11 mei 21:25 libgthread-2.0.so.0
-rw-r--r--   1 root  wheel       958  1 mei 20:34 libpthread-stubs.a
-rwxr-xr-x   1 root  wheel       992  1 mei 20:34 libpthread-stubs.la
lrwxr-xr-x   1 root  wheel        21  1 mei 20:34 libpthread-stubs.so
-> libpthread-stubs.so.0
-rwxr-xr-x   1 root  wheel      6474  1 mei 20:34 libpthread-stubs.so.0

Versions of utilities installed:
FreeBSD 8.0-amd64 (x86_64)
/usr/bin/c++ : gcc 4.2.1
cmake 2.8.1
boost 1.41.0
gmake 3.81

Can anyone shed a light on this?

Regards,
Rene



More information about the ros-users mailing list