catkin_make c compiler problem -- broken

asked 2020-03-14 12:45:42 -0500

Iftahnaf gravatar image

updated 2020-03-14 13:07:23 -0500

gvdhoorn gravatar image

Hi guys, I'm new at ROS, and I have problem when I'm trying to create a new catkin workspace.

Im using UBUNTU 18.04 with ROS melodic.

im trying to use catking_make on a new folder that I made with the following commands:

$ mkdir -p ~/test_catkin/src

$ cd test_catkin

$ catkin_make

I get the following:

iftach@iftach-G5-5587:~/test_catkin$ catkin_make
Base path: /home/iftach/test_catkin
Source space: /home/iftach/test_catkin/src
Build space: /home/iftach/test_catkin/build
Devel space: /home/iftach/test_catkin/devel
Install space: /home/iftach/test_catkin/install
Creating symlink "/home/iftach/test_catkin/src/CMakeLists.txt" pointing to "/opt/ros/melodic/share/catkin/cmake/toplevel.cmake"
####
#### Running command: "cmake /home/iftach/test_catkin/src -DCATKIN_DEVEL_PREFIX=/home/iftach/test_catkin/devel -DCMAKE_INSTALL_PREFIX=/home/iftach/test_catkin/install -G Unix Makefiles" in "/home/iftach/test_catkin/build"
####
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/lib/ccache/cc
-- Check for working C compiler: /usr/lib/ccache/cc -- broken
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/usr/lib/ccache/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/iftach/test_catkin/build/CMakeFiles/CMakeTmp

    Run Build Command:"/usr/bin/make" "cmTC_b6194/fast"
    /usr/bin/make -f CMakeFiles/cmTC_b6194.dir/build.make CMakeFiles/cmTC_b6194.dir/build
    make[1]: Entering directory '/home/iftach/test_catkin/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_b6194.dir/testCCompiler.c.o
    /usr/lib/ccache/cc    -o CMakeFiles/cmTC_b6194.dir/testCCompiler.c.o   -c /home/iftach/test_catkin/build/CMakeFiles/CMakeTmp/testCCompiler.c
    ccache: error: Failed to create temporary file for /home/iftach/.ccache/3/2/9bc9508eba8818287d674579059a18-470.o.tmp.stdout: Permission denied
    CMakeFiles/cmTC_b6194.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_b6194.dir/testCCompiler.c.o' failed
    make[1]: *** [CMakeFiles/cmTC_b6194.dir/testCCompiler.c.o] Error 1
    make[1]: Leaving directory '/home/iftach/test_catkin/build/CMakeFiles/CMakeTmp'
    Makefile:126: recipe for target 'cmTC_b6194/fast' failed
    make: *** [cmTC_b6194/fast] Error 2




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


-- Configuring incomplete, errors occurred!
See also "/home/iftach/test_catkin/build/CMakeFiles/CMakeOutput.log".
See also "/home/iftach/test_catkin/build/CMakeFiles/CMakeError.log".

iftach@iftach-G5-5587:~/test_catkin$ env | grep ROS
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/home/iftach/catkin_ws/src:/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=/home/iftach/catkin_ws/devel/share/common-lisp
ROS_DISTRO=melodic

iftach@iftach-G5-5587:~/test_catkin$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

when I tried to compile simple hello_world.c it didn't had any problem ($ gcc hello_world.c hello)

edit retag flag offensive close merge delete