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

[C++] Build failure on googletest_ep on Windows when using Ninja

    XMLWordPrintableJSON

Details

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

    Description

      I consistently get this error when trying to use Ninja locally:

      -- extracting...
           src='C:/Users/wesmc/code/arrow/cpp/build/googletest_ep-prefix/src/release-1.8.1.tar.gz'
           dst='C:/Users/wesmc/code/arrow/cpp/build/googletest_ep-prefix/src/googletest_ep'
      -- extracting... [tar xfz]
      -- extracting... [analysis]
      -- extracting... [rename]
      CMake Error at googletest_ep-stamp/extract-googletest_ep.cmake:51 (file):
        file RENAME failed to rename
      
          C:/Users/wesmc/code/arrow/cpp/build/googletest_ep-prefix/src/ex-googletest_ep1234/googletest-release-1.8.1
      
        to
      
          C:/Users/wesmc/code/arrow/cpp/build/googletest_ep-prefix/src/googletest_ep
      
        because: Directory not empty
      
      
      
      [179/623] Building CXX object src\arrow\CMakeFiles\arrow_static.dir\array\builder_dict.cc.obj
      ninja: build stopped: subcommand failed.
      

      I'm running within cmdr terminal emulator so it's conceivable there's some path modifications that are causing issues.

      The CMake invocation is

      cmake -G "Ninja" ^          -DCMAKE_BUILD_TYPE=Release ^          -DARROW_BUILD_TESTS=on ^          -DARROW_CXXFLAGS="/WX /MP" ^
           -DARROW_FLIGHT=off -DARROW_PARQUET=on -DARROW_GANDIVA=ON -DARROW_VERBOSE_THIRDPARTY_BUILD=on     ..
      

      Attachments

        Issue Links

          Activity

            People

              bkietz Ben Kietzman
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 50m
                  50m