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

[C++] xcodebuild failure for cmake generated project

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0
    • C++

    Description

      Using the cmake xcode project generator fails to build using xcodebuild as follows:

      $ cmake .. -G Xcode -DARROW_PARQUET=ON  -DPARQUET_BUILD_EXECUTABLES=ON -DPARQUET_BUILD_EXAMPLES=ON  -DFLATBUFFERS_HOME=/usr/local/Cellar/flatbuffers/1.10.0 -DCMAKE_BUILD_TYPE=Debug  -DTHRIFT_HOME=/usr/local/Cellar/thrift/0.11.0 -DARROW_EXTRA_ERROR_CONTEXT=ON -DARROW_BUILD_TESTS=ON -DClangTools_PATH=/usr/local/Cellar/llvm@6/6.0.1_1
      
      ....
      
      Libtool xcode-build/src/arrow/arrow.build/Debug/arrow_objlib.build/Objects-normal/libarrow_objlib.a normal x86_64
      cd /Users/hhelal/Documents/code/arrow/cpp
      export MACOSX_DEPLOYMENT_TARGET=10.14
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -L/Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/arrow/arrow.build/Debug/arrow_objlib.build/Objects-normal -filelist /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/arrow/arrow.build/Debug/arrow_objlib.build/Objects-normal/x86_64/arrow_objlib.LinkFileList -o /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/arrow/arrow.build/Debug/arrow_objlib.build/Objects-normal/libarrow_objlib.a
      
      PhaseScriptExecution CMake\ PostBuild\ Rules xcode-build/src/arrow/arrow.build/Debug/arrow_objlib.build/Script-2604120B03B14AB58C2E586A.sh
      cd /Users/hhelal/Documents/code/arrow/cpp
      /bin/sh -c /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/arrow/arrow.build/Debug/arrow_objlib.build/Script-2604120B03B14AB58C2E586A.sh
      echo "Depend check for xcode"
      Depend check for xcode
      cd /Users/hhelal/Documents/code/arrow/cpp/xcode-build && make -C /Users/hhelal/Documents/code/arrow/cpp/xcode-build -f /Users/hhelal/Documents/code/arrow/cpp/xcode-build/CMakeScripts/XCODE_DEPEND_HELPER.make PostBuild.arrow_objlib.Debug
      /bin/rm -f /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.dylib
      /bin/rm -f /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.a
      
      === BUILD TARGET arrow_shared OF PROJECT arrow WITH THE DEFAULT CONFIGURATION (Debug) ===
      
      Check dependencies
      
      Write auxiliary files
      write-file /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/arrow/arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
      chmod 0755 /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/arrow/arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
      
      PhaseScriptExecution CMake\ PostBuild\ Rules xcode-build/src/arrow/arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
      cd /Users/hhelal/Documents/code/arrow/cpp
      /bin/sh -c /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/arrow/arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
      echo "Creating symlinks"
      Creating symlinks
      /usr/local/Cellar/cmake/3.12.4/bin/cmake -E cmake_symlink_library /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.12.0.0.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.12.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.dylib
      CMake Error: cmake_symlink_library: System Error: No such file or directory
      CMake Error: cmake_symlink_library: System Error: No such file or directory
      make: *** [arrow_shared_buildpart_0] Error 1
      
      ** BUILD FAILED **
      
      
      The following build commands failed:
      PhaseScriptExecution CMake\ PostBuild\ Rules xcode-build/src/arrow/arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
      (1 failure)
      
      

      Attachments

        1. cmakeoutput.txt
          8 kB
          Hatem Helal
        2. xcodebuildOutput.txt
          350 kB
          Hatem Helal

        Issue Links

          Activity

            People

              uwe Uwe Korn
              hatem Hatem Helal
              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 - 40m
                  40m