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

[C++][Python] Build error building on Mac OS Mojave

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • C++, Python
    • None

    Description

      After following the instruction on the Python development and Building instruction for C++, I get a linking error:

       

      $ pwd
      /Users/mcabrera/dev/arrow/cpp/release
      $ cmake -DARROW_BUILD_TESTS=ON  ..
      
      (....)
      
      ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd}}
       ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
      clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
      make[1]: *** [cmTC_510d0] Error 1
      make: *** [cmTC_510d0/fast] Error 2
      
       

      Same issue if I follow the instructions on the Python Development documentation

       mkdir arrow/cpp/build
       pushd arrow/cpp/build
      cmake -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
            -DCMAKE_INSTALL_LIBDIR=lib \
            -DARROW_FLIGHT=ON \
            -DARROW_GANDIVA=ON \
            -DARROW_ORC=ON \
            -DARROW_PARQUET=ON \
            -DARROW_PYTHON=ON \
            -DARROW_PLASMA=ON \
            -DARROW_BUILD_TESTS=ON \
            ..
      

      The Python development documentation is not clear whether in order to build the Python (and CPP library) brew depedencies are necessary (or just with the Anaconda is enough) so I installed them nonetheless. However I get the same issue

      Enviornment

      Mac OSX Mojave 10.14.5
      Anaconda 4.6.14
      XCode 10.2.1
      CLANGXX=/Users/mcabrera/anaconda3/envs/pyarrow-dev/bin/x86_64-apple-darwin13.4.0-clang++
      CLANG=/Users/mcabrera/anaconda3/envs/pyarrow-dev/bin/x86_64-apple-darwin13.4.0-clang

       

       

       

       

       

       

      Attachments

        Activity

          People

            uwe Uwe Korn
            mfcabrera Miguel Cabrera
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: