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

Compilation error on macOS with clang-802.0.42

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: C++
    • Labels:
      None
    • Environment:

      Description

      Compiling commit 2c3e111d45c056d429cef312533c9f3f96b08ae8 of arrow with Apple LLVM version 8.1.0 gives the following error:

      ```
      In file included from /Users/istoica/src/ray/minicamp-may5-17/ray-1/src/numbuf/thirdparty/arrow/cpp/src/arrow/python/helpers.cc:20:
      In file included from /Users/istoica/src/ray/minicamp-may5-17/ray-1/src/numbuf/thirdparty/arrow/cpp/src/arrow/util/decimal.h:24:
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/regex:1216:29: error:
      too many arguments provided to function-like macro invocation
      _ct->tolower(&_s[0], &_s[0] + __s.size());
      ^
      /Users/istoica/anaconda/include/python2.7/pyport.h:729:9: note: macro 'tolower'
      defined here
      #define tolower(c) towlower(btowc(c))
      ^
      In file included from /Users/istoica/src/ray/minicamp-may5-17/ray-1/src/numbuf/thirdparty/arrow/cpp/src/arrow/python/helpers.cc:20:
      In file included from /Users/istoica/src/ray/minicamp-may5-17/ray-1/src/numbuf/thirdparty/arrow/cpp/src/arrow/util/decimal.h:24:
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/regex:1228:29: error:
      too many arguments provided to function-like macro invocation
      _ct->tolower(&_s[0], &_s[0] + __s.size());
      ^
      /Users/istoica/anaconda/include/python2.7/pyport.h:729:9: note: macro 'tolower'
      defined here
      #define tolower(c) towlower(btowc(c))
      ^
      In file included from /Users/istoica/src/ray/minicamp-may5-17/ray-1/src/numbuf/thirdparty/arrow/cpp/src/arrow/python/builtin_convert.cc:30:
      ```

      It is a similar problem to
      https://github.com/apache/arrow/commit/4d2ac871c9126ba431ebb193ea19bd5eb7ef8ab3

        Attachments

          Activity

            People

            • Assignee:
              pcmoritz Philipp Moritz
              Reporter:
              pcmoritz Philipp Moritz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: