Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16016

[C++] Recursive ccache invocation error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 8.0.0
    • C++

    Description

      When you try to enable ccache globally by setting the CMAKE_CXX_COMPILER_LAUNCHER environment variable to ccache, compiling Arrow can fail with the following errors:

      [1/430] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/array/array_base.cc.o
      FAILED: src/arrow/CMakeFiles/arrow_objlib.dir/array/array_base.cc.o 
      /usr/bin/ccache ccache /usr/bin/clang++-10 -DARROW_EXPORTING -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_AVX512 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_HDFS -DARROW_JEMALLOC -DARROW_JEMALLOC_INCLUDE_DIR="" -DARROW_MIMALLOC -DARROW_WITH_BACKTRACE -DARROW_WITH_BENCHMARKS_REFERENCE -DARROW_WITH_BROTLI -DARROW_WITH_BZ2 -DARROW_WITH_LZ4 -DARROW_WITH_RE2 -DARROW_WITH_SNAPPY -DARROW_WITH_TIMING_TESTS -DARROW_WITH_UTF8PROC -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD -DURI_STATIC_BUILD -I/home/antoine/arrow/dev/cpp/build-release/src -I/home/antoine/arrow/dev/cpp/src -I/home/antoine/arrow/dev/cpp/src/generated -isystem /home/antoine/arrow/dev/cpp/thirdparty/flatbuffers/include -isystem /home/antoine/miniconda3/envs/pyarrow/include -isystem /home/antoine/arrow/dev/cpp/build-release/jemalloc_ep-prefix/src -isystem /home/antoine/arrow/dev/cpp/build-release/mimalloc_ep/src/mimalloc_ep/include/mimalloc-1.7 -isystem /home/antoine/arrow/dev/cpp/build-release/xsimd_ep/src/xsimd_ep-install/include -isystem /home/antoine/arrow/dev/cpp/thirdparty/hadoop/include -Qunused-arguments -fcolor-diagnostics  -Wall -Wextra -Wdocumentation -Wno-missing-braces -Wno-unused-parameter -Wno-constant-logical-operand -Wno-unknown-warning-option -Wno-pass-failed -msse4.2  -O2 -g -DNDEBUG -fPIC -std=c++11 -MD -MT src/arrow/CMakeFiles/arrow_objlib.dir/array/array_base.cc.o -MF src/arrow/CMakeFiles/arrow_objlib.dir/array/array_base.cc.o.d -o src/arrow/CMakeFiles/arrow_objlib.dir/array/array_base.cc.o -c /home/antoine/arrow/dev/cpp/src/arrow/array/array_base.cc
      ccache: error: Recursive invocation (the name of the ccache binary must be "ccache")
      

      I'm not sure what triggers this exactly because I get the issue with a certain build configuration and not another.

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m