New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythran directive prevents compilation with xcode 10.1 #2739

Open
fgregg opened this Issue Nov 29, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@fgregg

fgregg commented Nov 29, 2018

System details:

macOS 10.13.6

system_profiler SPDeveloperToolsDataType
Developer:

    Developer Tools:

      Version: 10.1 (10B61)
      Location: /Applications/Xcode.app
      Applications:
          Xcode: 10.1 (14460.46)
      SDKs:
          macOS:
              10.14: (18B71)

python 3.7.1
cython, commit 3bc22a95b4ff59ed7b19c92e531da0d37267822f
pythran, commit 341818b2fbd6ce2aa764fb6240ab25eb43304c80

Problem

I can't get a cython file with the pythran backend to compile.

I'm not sure if the problem is cython, pythran, or somehow in my environment but with a test file that is just

https://github.com/dedupeio/pyhacrf/blob/e351c9d263a899a3198bded00a3a7105e0ebf9f2/pyhacrf/adjacent.pyx#L1

#cython: np_pythran=True

and a setup.py like

https://github.com/dedupeio/pyhacrf/blob/e351c9d263a899a3198bded00a3a7105e0ebf9f2/setup.py#L5-L13

try:
    from Cython.Build import cythonize
    use_cython = True
except ImportError:
    use_cython = False

if use_cython:
    ext_modules = cythonize([Extension('pyhacrf.adjacent',
                                       ['pyhacrf/adjacent.pyx'])])

python setup.py build_ext gives me this:

>python setup.py build_ext
In file included from /var/folders/h0/351mxgyd235flpkj85xbn7dc0000gn/T/tmph2jga8wz/source.c:1:
In file included from /usr/local/opt/openblas/include/cblas.h:5:
In file included from /usr/local/opt/openblas/include/openblas_config.h:104:
In file included from /usr/include/stdio.h:64:
/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
        unsigned char   *_base;
                        ^
/usr/include/_stdio.h:93:16: note: insert '_Nullable' if the pointer may be null
        unsigned char   *_base;
                        ^
                          _Nullable 
/usr/include/_stdio.h:93:16: note: insert '_Nonnull' if the pointer should never be null
        unsigned char   *_base;
                        ^
                          _Nonnull 
/usr/include/_stdio.h:138:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
        int     (* _Nullable _read) (void *, char *, int);
                                          ^
/usr/include/_stdio.h:138:32: note: insert '_Nullable' if the pointer may be null
        int     (* _Nullable _read) (void *, char *, int);
                                          ^
                                           _Nullable
/usr/include/_stdio.h:138:32: note: insert '_Nonnull' if the pointer should never be null
        int     (* _Nullable _read) (void *, char *, int);
                                          ^
                                           _Nonnull
/usr/include/_stdio.h:138:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
        int     (* _Nullable _read) (void *, char *, int);
                                                  ^
/usr/include/_stdio.h:138:40: note: insert '_Nullable' if the pointer may be null
        int     (* _Nullable _read) (void *, char *, int);
                                                  ^
                                                   _Nullable
/usr/include/_stdio.h:138:40: note: insert '_Nonnull' if the pointer should never be null
        int     (* _Nullable _read) (void *, char *, int);
                                                  ^
                                                   _Nonnull
/usr/include/_stdio.h:139:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
        fpos_t  (* _Nullable _seek) (void *, fpos_t, int);
                                          ^
/usr/include/_stdio.h:139:35: note: insert '_Nullable' if the pointer may be null
        fpos_t  (* _Nullable _seek) (void *, fpos_t, int);
                                          ^
                                           _Nullable
/usr/include/_stdio.h:139:35: note: insert '_Nonnull' if the pointer should never be null
        fpos_t  (* _Nullable _seek) (void *, fpos_t, int);
                                          ^
                                           _Nonnull
/usr/include/_stdio.h:140:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
        int     (* _Nullable _write)(void *, const char *, int);
                                          ^
/usr/include/_stdio.h:140:32: note: insert '_Nullable' if the pointer may be null
        int     (* _Nullable _write)(void *, const char *, int);
                                          ^
                                           _Nullable
/usr/include/_stdio.h:140:32: note: insert '_Nonnull' if the pointer should never be null
        int     (* _Nullable _write)(void *, const char *, int);
                                          ^
                                           _Nonnull
/usr/include/_stdio.h:140:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
        int     (* _Nullable _write)(void *, const char *, int);
                                                        ^
/usr/include/_stdio.h:140:46: note: insert '_Nullable' if the pointer may be null
        int     (* _Nullable _write)(void *, const char *, int);
                                                        ^
                                                         _Nullable
/usr/include/_stdio.h:140:46: note: insert '_Nonnull' if the pointer should never be null
        int     (* _Nullable _write)(void *, const char *, int);
                                                        ^
                                                         _Nonnull
/usr/include/_stdio.h:144:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
        struct __sFILEX *_extra; /* additions to FILE to not break ABI */
                        ^
/usr/include/_stdio.h:144:18: note: insert '_Nullable' if the pointer may be null
        struct __sFILEX *_extra; /* additions to FILE to not break ABI */
                        ^
                          _Nullable 
/usr/include/_stdio.h:144:18: note: insert '_Nonnull' if the pointer should never be null
        struct __sFILEX *_extra; /* additions to FILE to not break ABI */
                        ^
                          _Nonnull 
In file included from /var/folders/h0/351mxgyd235flpkj85xbn7dc0000gn/T/tmph2jga8wz/source.c:1:
In file included from /usr/local/opt/openblas/include/cblas.h:5:
In file included from /usr/local/opt/openblas/include/openblas_config.h:104:
/usr/include/stdio.h:67:13: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
extern FILE *__stdinp;
            ^
/usr/include/stdio.h:67:13: note: insert '_Nullable' if the pointer may be null
extern FILE *__stdinp;
            ^
              _Nullable 
/usr/include/stdio.h:67:13: note: insert '_Nonnull' if the pointer should never be null
extern FILE *__stdinp;
            ^
              _Nonnull 
/usr/include/stdio.h:390:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                 int (* _Nullable)(void *, const char *, int),
                                        ^
/usr/include/stdio.h:390:41: note: insert '_Nullable' if the pointer may be null
                 int (* _Nullable)(void *, const char *, int),
                                        ^
                                         _Nullable
/usr/include/stdio.h:390:41: note: insert '_Nonnull' if the pointer should never be null
                 int (* _Nullable)(void *, const char *, int),
                                        ^
                                         _Nonnull
/usr/include/stdio.h:390:55: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                 int (* _Nullable)(void *, const char *, int),
                                                      ^
/usr/include/stdio.h:390:55: note: insert '_Nullable' if the pointer may be null
                 int (* _Nullable)(void *, const char *, int),
                                                      ^
                                                       _Nullable
/usr/include/stdio.h:390:55: note: insert '_Nonnull' if the pointer should never be null
                 int (* _Nullable)(void *, const char *, int),
                                                      ^
                                                       _Nonnull
/usr/include/stdio.h:391:44: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                 fpos_t (* _Nullable)(void *, fpos_t, int),
                                           ^
/usr/include/stdio.h:391:44: note: insert '_Nullable' if the pointer may be null
                 fpos_t (* _Nullable)(void *, fpos_t, int),
                                           ^
                                            _Nullable
/usr/include/stdio.h:391:44: note: insert '_Nonnull' if the pointer should never be null
                 fpos_t (* _Nullable)(void *, fpos_t, int),
                                           ^
                                            _Nonnull
/usr/include/stdio.h:392:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                 int (* _Nullable)(void *));
                                        ^
/usr/include/stdio.h:392:41: note: insert '_Nullable' if the pointer may be null
                 int (* _Nullable)(void *));
                                        ^
                                         _Nullable
/usr/include/stdio.h:392:41: note: insert '_Nonnull' if the pointer should never be null
                 int (* _Nullable)(void *));
                                        ^
                                         _Nonnull
/usr/include/stdio.h:388:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
FILE    *funopen(const void *,
        ^
/usr/include/stdio.h:388:6: note: insert '_Nullable' if the pointer may be null
FILE    *funopen(const void *,
        ^
          _Nullable 
/usr/include/stdio.h:388:6: note: insert '_Nonnull' if the pointer should never be null
FILE    *funopen(const void *,
        ^
          _Nonnull 
13 warnings generated.
running build_ext
building 'pyhacrf.adjacent' extension
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/opt/openblas/include

compile options: '-DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_BLAS -I/Users/fgregg/work/pythran/pythran -I/Users/fgregg/work/pyhacrf/.env/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I/Users/fgregg/work/pyhacrf/.env/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/Users/fgregg/work/pyhacrf/.env/include -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
extra options: '-std=c++11 -fno-math-errno -w'
clang: pyhacrf/adjacent.cpp
In file included from pyhacrf/adjacent.cpp:652:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/core.hpp:25:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/types/combined.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/types/combined.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/types/traits.hpp:4:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/complex:246:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/usr/include/math.h:757:12: note: 'finite' declared here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from pyhacrf/adjacent.cpp:652:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/core.hpp:25:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/types/combined.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/types/combined.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/types/traits.hpp:4:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/complex:246:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace
using ::isgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace
using ::isgreaterequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:331:5: error: expected unqualified-id
    isnan(const simd_batch<X>& x);
    ^
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:331:5: error: expected ')'
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:331:5: note: to match this '('
/usr/include/math.h:179:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:1859:5: error: expected unqualified-id
    isnan(const simd_batch<X>& x)
    ^
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:1859:5: error: expected ')'
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:1859:5: note: to match this '('
/usr/include/math.h:179:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:597:36: error: expected member name or ';' after declaration specifiers
            static batch_bool_type isnan(const batch_type& x)
            ~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:597:36: error: expected ')'
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:597:36: note: to match this '('
/usr/include/math.h:179:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
In file included from pyhacrf/adjacent.cpp:652:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/core.hpp:25:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/types/combined.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/types/combined.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/types/traits.hpp:4:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/complex:246:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/usr/include/math.h:757:12: note: 'finite' declared here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from pyhacrf/adjacent.cpp:652:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/core.hpp:25:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/types/combined.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/types/combined.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/types/traits.hpp:4:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/complex:246:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace
using ::isgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace
using ::isgreaterequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:331:5: error: expected unqualified-id
    isnan(const simd_batch<X>& x);
    ^
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:331:5: error: expected ')'
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:331:5: note: to match this '('
/usr/include/math.h:179:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:1859:5: error: expected unqualified-id
    isnan(const simd_batch<X>& x)
    ^
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:1859:5: error: expected ')'
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_base.hpp:1859:5: note: to match this '('
/usr/include/math.h:179:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:597:36: error: expected member name or ';' after declaration specifiers
            static batch_bool_type isnan(const batch_type& x)
            ~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from pyhacrf/adjacent.cpp:656:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/numpy/power.hpp:4:
In file included from /Users/fgregg/work/pythran/pythran/pythonic/include/numpy/power.hpp:9:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/xsimd.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_traits.hpp:14:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_types_include.hpp:19:
In file included from /Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_conversion.hpp:12:
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:597:36: error: expected ')'
/usr/include/math.h:179:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/Users/fgregg/work/pythran/pythran/xsimd/types/xsimd_sse_double.hpp:597:36: note: to match this '('
/usr/include/math.h:179:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/opt/openblas/include -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_BLAS -I/Users/fgregg/work/pythran/pythran -I/Users/fgregg/work/pyhacrf/.env/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I/Users/fgregg/work/pyhacrf/.env/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/Users/fgregg/work/pyhacrf/.env/include -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c pyhacrf/adjacent.cpp -o build/temp.macosx-10.13-x86_64-3.7/pyhacrf/adjacent.o -std=c++11 -fno-math-errno -w" failed with exit status 1

@fgregg fgregg changed the title from pythran directive prevents compilation with xcode 10.2 to pythran directive prevents compilation with xcode 10.1 Nov 29, 2018

@scoder

This comment has been minimized.

Contributor

scoder commented Nov 30, 2018

@scoder scoder added the Pythran label Nov 30, 2018

@aguinet

This comment has been minimized.

Contributor

aguinet commented Nov 30, 2018

Is the file you try to compile https://github.com/dedupeio/pyhacrf/blob/e351c9d263a899a3198bded00a3a7105e0ebf9f2/pyhacrf/adjacent.pyx#L1 , that is an empty python file with only the pythran directive?

@fgregg

This comment has been minimized.

fgregg commented Nov 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment