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

[C++] LZ4 fails to build when depending on arrow via CMake

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 9.0.0
    • C++

    Description

      When depending on arrow as an external CMake project in another CMake project, and attempting to build LZ4 from source the following occurs:

      [ 11%] Performing build step for 'lz4_ep'
      cd /tmp/tmp.uDaq1bz2ia/cmake-build-debug-diascld-36/_deps/arrow-download-build/lz4_ep-prefix/src/lz4_ep && /scratch/chrysoge/pelago-llvm-14/opt/bin/cmake -P /tmp/tmp.uDaq1bz2ia/cmake-build-debug-diascld-36/_deps/arrow-download-build/lz4_ep-prefix/src/lz4_ep-stamp/lz4_ep-build-DEBUG.cmake
      CMake Error at /tmp/tmp.uDaq1bz2ia/cmake-build-debug-diascld-36/_deps/arrow-download-build/lz4_ep-prefix/src/lz4_ep-stamp/lz4_ep-build-DEBUG.cmake:37 (message):
        Command failed: 127
      
         'sh' '/tmp/tmp.uDaq1bz2ia/build-support/build-lz4-lib.sh' 'AR=/scratch/pelago/llvm-14/opt/bin/llvm-ar' 'OS=Linux'
      
        See also
      
          /tmp/tmp.uDaq1bz2ia/cmake-build-debug-diascld-36/_deps/arrow-download-build/lz4_ep-prefix/src/lz4_ep-stamp/lz4_ep-build-*.log
      
      
      -- stdout output is:
      
      -- stderr output is:
      sh: 0: Can't open /tmp/tmp.uDaq1bz2ia/build-support/build-lz4-lib.sh
      
      CMake Error at /tmp/tmp.uDaq1bz2ia/cmake-build-debug-diascld-36/_deps/arrow-download-build/lz4_ep-prefix/src/lz4_ep-stamp/lz4_ep-build-DEBUG.cmake:47 (message):
        Stopping after outputting logs. 

      (/tmp/tmp.uDaq1bz2ia is the root CMake source directory of the parent CMake project)

      This is due to the use of `CMAKE_SOURCE_DIR` instead of `CMAKE_CURRENT_SOURCE_DIR`. I will have a PR up for this shortly.

       

      Attachments

        Issue Links

          Activity

            People

              HamishN Hamish Nicholson
              HamishN Hamish Nicholson
              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 - 1h
                  1h