[ 
https://issues.apache.org/jira/browse/ARROW-826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wes McKinney updated ARROW-826:
-------------------------------
    Fix Version/s: 0.3.0

> Compilation error on Mac with -DARROW_PYTHON=on
> -----------------------------------------------
>
>                 Key: ARROW-826
>                 URL: https://issues.apache.org/jira/browse/ARROW-826
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Robert Nishihara
>             Fix For: 0.3.0
>
>         Attachments: Without-Python-ON-success.txt, With-Python-ON-failure.txt
>
>
> It looks like compiling Arrow with {{-DARROW_PYTHON=on}} failed for a Ray 
> user on MacOS.
> The logs are attached (one failed with {{-DARROW_PYTHON=on}} and one 
> succeeded without that flag).
> The issue was originally reported at 
> https://github.com/ray-project/ray/issues/461.
> I think the first couple errors are:
> {code}
> In file included from 
> /Users/gmedasani/Documents/bigdata/project-ray/build_arrow_temp/arrow/cpp/src/arrow/python/common.cc:22:
> In file included from 
> /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/sstream:174:
> In file included from 
> /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ostream:138:
> In file included from 
> /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:216:
> /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:468:15:
>  error: C++ requires a type specifier for all declarations
>     char_type toupper(char_type __c) const
>               ^
> /Users/gmedasani/software/anaconda_2_7/anaconda/include/python2.7/pyport.h:731:29:
>  note: expanded from macro 'toupper'
> #define toupper(c) towupper(btowc(c))
>                             ^
> In file included from 
> /Users/gmedasani/Documents/bigdata/project-ray/build_arrow_temp/arrow/cpp/src/arrow/python/common.cc:22:
> In file included from 
> /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/sstream:174:
> In file included from 
> /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ostream:138:
> In file included from 
> /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:216:
> /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:474:48:
>  error: too many arguments provided to function-like macro invocation
>     const char_type* toupper(char_type* __low, const char_type* __high) const
>                                                ^
> /Users/gmedasani/software/anaconda_2_7/anaconda/include/python2.7/pyport.h:731:9:
>  note: macro 'toupper' defined here
> #define toupper(c) towupper(btowc(c))
>         ^
> {code}
> Some environment information
> {code}
> > python --version
>     Python 2.7.12 :: Anaconda custom (x86_64)
> > system_profiler SPSoftwareDataType
> Software:
>     System Software Overview:
>       System Version: macOS 10.12.4 (16E195)
>       Kernel Version: Darwin 16.5.0
>       Boot Volume: Macintosh HD
> > conda install libgcc
>     Fetching package metadata .........
>     Solving package specifications: .
>     # All requested packages already installed.
>     libgcc                    4.8.5
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to