[ros-users] Fail to compile cturtle from source using distcc

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: ros-users
Subject: [ros-users] Fail to compile cturtle from source using distcc
Hi all,

I'm getting a problem (distcc related it seems) when I try to compile
cturtle from source using distcc (export CCACHE_PREFIX=distcc, ...)

* My system "Ubuntu 10.04.1 LTS" (Lucid).
* cturtle from source: http://code.ros.org/svn/ros/stacks/ros/tags/cturtle

* Error:

make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
rosbuild`/rostoolchain.cmake ..
-- The C compiler identification is unknown
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/distcc
-- Check for working C compiler: /usr/bin/distcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
The C compiler "/usr/bin/distcc" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: /home/fiep/test/src/svn/twoLevelMTTL-ros/packages/ros/tools/rosservice/build/CMakeFiles/CMakeTmp



Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

make[1]: Entering directory
`/home/fiep/test/src/svn/twoLevelMTTL-ros/packages/ros/tools/rosservice/build/CMakeFiles/CMakeTmp'


/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build

make[2]: Entering directory
`/home/fiep/test/src/svn/twoLevelMTTL-ros/packages/ros/tools/rosservice/build/CMakeFiles/CMakeTmp'


/usr/bin/cmake -E cmake_progress_report
/home/fiep/test/src/svn/twoLevelMTTL-ros/packages/ros/tools/rosservice/build/CMakeFiles/CMakeTmp/CMakeFiles
1

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

/usr/bin/distcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
/home/fiep/test/src/svn/twoLevelMTTL-ros/packages/ros/tools/rosservice/build/CMakeFiles/CMakeTmp/testCCompiler.c


distcc[27536] (main) CRITICAL! distcc seems to have invoked itself
recursively!

make[2]: Leaving directory
`/home/fiep/test/src/svn/twoLevelMTTL-ros/packages/ros/tools/rosservice/build/CMakeFiles/CMakeTmp'


make[1]: Leaving directory
`/home/fiep/test/src/svn/twoLevelMTTL-ros/packages/ros/tools/rosservice/build/CMakeFiles/CMakeTmp'


distcc[27535] ERROR: compile
/home/fiep/test/src/svn/twoLevelMTTL-ros/packages/ros/tools/rosservice/build/CMakeFiles/CMakeTmp/testCCompiler.c
on localhost failed with exit code 111

make[2]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o] Error 111

make[1]: *** [cmTryCompileExec/fast] Error 2


CMake will not be able to correctly generate this project.
Call Stack (most recent call first):


-- Configuring incomplete, errors occurred!
make: *** [all] Error 1


Tinne