'Milk' Build Issues on OSX 10.9 (Mavericks)

137 views
Skip to first unread message

dav...@softintel.com

unread,
Nov 16, 2013, 11:50:21 PM11/16/13
to milk-...@googlegroups.com
Hi,

I'm trying to build 'milk' on OSX 10.9 with Continuum's Anaconda distribution.

I'm getting the following errors (below).
Any ideas?

Thanks in advance!!

-Dave

sudo conda install milk
Conda package not available for milk, attempting to install via pip
Downloading/unpacking milk
  Running setup.py egg_info for package milk
    build_src
    building extension "milk.supervised._perceptron" sources
    building extension "milk.supervised._lasso" sources
    building extension "milk.unsupervised._kmeans" sources
    building extension "milk.supervised._tree" sources
    building extension "milk.unsupervised._som" sources
    building extension "milk.supervised._svm" sources
    build_src: building npy-pkg config files
   
Installing collected packages: milk
  Running setup.py install for milk
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    build_src
    building extension "milk.supervised._perceptron" sources
    building extension "milk.supervised._lasso" sources
    building extension "milk.unsupervised._kmeans" sources
    building extension "milk.supervised._tree" sources
    building extension "milk.unsupervised._som" sources
    building extension "milk.supervised._svm" sources
    build_src: building npy-pkg config files
    customize UnixCCompiler
    customize UnixCCompiler using build_ext
    customize UnixCCompiler
    customize UnixCCompiler using build_ext
    building 'milk.supervised._perceptron' extension
    compiling C++ sources
    C compiler: g++ -fno-strict-aliasing -I/Users/davidlaxer/anaconda/include -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -fwrapv -O3 -Wall
   
    compile options: '-I/Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/davidlaxer/anaconda/include/python2.7 -c'
    extra options: '-std=c++0x -stdlib=libc++'
    g++: milk/supervised/_perceptron.cpp
    In file included from milk/supervised/_perceptron.cpp:4:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iostream:40:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/istream:156:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:187:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:86:
    In file included from /Developer/SDKs/MacOSX10.5.sdk/usr/include/stdlib.h:61:
    /Developer/SDKs/MacOSX10.5.sdk/usr/include/available.h:111:6: error: __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED
        #error __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED
         ^
    In file included from milk/supervised/_perceptron.cpp:6:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1339:9: error: no member named 'llrint' in the global namespace
    using ::llrint;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1340:9: error: no member named 'llrintf' in the global namespace
    using ::llrintf;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1342:86: error: use of undeclared identifier 'llrintf'
    inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x) _NOEXCEPT       {return llrintf(__x);}
                                                                                         ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1343:86: error: use of undeclared identifier 'llrintl'
    inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) _NOEXCEPT {return llrintl(__x);}
                                                                                         ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1348:35: error: call to 'llrint' is ambiguous
    llrint(_A1 __x) _NOEXCEPT {return llrint((double)__x);}
                                      ^~~~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1342:44: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x) _NOEXCEPT       {return llrintf(__x);}
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1343:44: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) _NOEXCEPT {return llrintl(__x);}
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1352:9: error: no member named 'llround' in the global namespace
    using ::llround;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1353:9: error: no member named 'llroundf' in the global namespace
    using ::llroundf;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1355:87: error: use of undeclared identifier 'llroundf'
    inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x) _NOEXCEPT       {return llroundf(__x);}
                                                                                          ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1356:87: error: use of undeclared identifier 'llroundl'
    inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) _NOEXCEPT {return llroundl(__x);}
                                                                                          ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1361:36: error: call to 'llround' is ambiguous
    llround(_A1 __x) _NOEXCEPT {return llround((double)__x);}
                                       ^~~~~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1355:44: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x) _NOEXCEPT       {return llroundf(__x);}
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1356:44: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) _NOEXCEPT {return llroundl(__x);}
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1655:9: error: no member named 'llrintl' in the global namespace
    using ::llrintl;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1656:9: error: no member named 'llroundl' in the global namespace
    using ::llroundl;
          ~~^
    In file included from milk/supervised/_perceptron.cpp:10:
    In file included from /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:
    In file included from /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728:
    /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
    #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
     ^
    1 warning and 13 errors generated.
    In file included from milk/supervised/_perceptron.cpp:4:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iostream:40:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/istream:156:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:187:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:86:
    In file included from /Developer/SDKs/MacOSX10.5.sdk/usr/include/stdlib.h:61:
    /Developer/SDKs/MacOSX10.5.sdk/usr/include/available.h:111:6: error: __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED
        #error __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED
         ^
    In file included from milk/supervised/_perceptron.cpp:6:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1339:9: error: no member named 'llrint' in the global namespace
    using ::llrint;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1340:9: error: no member named 'llrintf' in the global namespace
    using ::llrintf;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1342:86: error: use of undeclared identifier 'llrintf'
    inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x) _NOEXCEPT       {return llrintf(__x);}
                                                                                         ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1343:86: error: use of undeclared identifier 'llrintl'
    inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) _NOEXCEPT {return llrintl(__x);}
                                                                                         ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1348:35: error: call to 'llrint' is ambiguous
    llrint(_A1 __x) _NOEXCEPT {return llrint((double)__x);}
                                      ^~~~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1342:44: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x) _NOEXCEPT       {return llrintf(__x);}
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1343:44: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) _NOEXCEPT {return llrintl(__x);}
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1352:9: error: no member named 'llround' in the global namespace
    using ::llround;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1353:9: error: no member named 'llroundf' in the global namespace
    using ::llroundf;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1355:87: error: use of undeclared identifier 'llroundf'
    inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x) _NOEXCEPT       {return llroundf(__x);}
                                                                                          ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1356:87: error: use of undeclared identifier 'llroundl'
    inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) _NOEXCEPT {return llroundl(__x);}
                                                                                          ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1361:36: error: call to 'llround' is ambiguous
    llround(_A1 __x) _NOEXCEPT {return llround((double)__x);}
                                       ^~~~~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1355:44: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x) _NOEXCEPT       {return llroundf(__x);}
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1356:44: note: candidate function
    inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) _NOEXCEPT {return llroundl(__x);}
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1655:9: error: no member named 'llrintl' in the global namespace
    using ::llrintl;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1656:9: error: no member named 'llroundl' in the global namespace
    using ::llroundl;
          ~~^
    In file included from milk/supervised/_perceptron.cpp:10:
    In file included from /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:
    In file included from /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728:
    /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
    #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
     ^
    1 warning and 13 errors generated.
    error: Command "g++ -fno-strict-aliasing -I/Users/davidlaxer/anaconda/include -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/davidlaxer/anaconda/include/python2.7 -c milk/supervised/_perceptron.cpp -o build/temp.macosx-10.5-x86_64-2.7/milk/supervised/_perceptron.o -std=c++0x -stdlib=libc++" failed with exit status 1
    Complete output from command /Users/davidlaxer/anaconda/bin/python -c "import setuptools;__file__='/tmp/pip-build/milk/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-tTc3Y_-record/install-record.txt --single-version-externally-managed:
    running install

running build

running config_cc

unifing config_cc, config, build_clib, build_ext, build commands --compiler options

running config_fc

unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options

running build_src

build_src

building extension "milk.supervised._perceptron" sources

building extension "milk.supervised._lasso" sources

building extension "milk.unsupervised._kmeans" sources

building extension "milk.supervised._tree" sources

building extension "milk.unsupervised._som" sources

building extension "milk.supervised._svm" sources

build_src: building npy-pkg config files

running build_py

running build_ext

customize UnixCCompiler

customize UnixCCompiler using build_ext

customize UnixCCompiler

customize UnixCCompiler using build_ext

building 'milk.supervised._perceptron' extension

compiling C++ sources

C compiler: g++ -fno-strict-aliasing -I/Users/davidlaxer/anaconda/include -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -fwrapv -O3 -Wall



compile options: '-I/Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/davidlaxer/anaconda/include/python2.7 -c'

extra options: '-std=c++0x -stdlib=libc++'

g++: milk/supervised/_perceptron.cpp

In file included from milk/supervised/_perceptron.cpp:4:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iostream:40:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/istream:156:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:187:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:86:

In file included from /Developer/SDKs/MacOSX10.5.sdk/usr/include/stdlib.h:61:

/Developer/SDKs/MacOSX10.5.sdk/usr/include/available.h:111:6: error: __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED

    #error __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED

     ^

In file included from milk/supervised/_perceptron.cpp:6:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1339:9: error: no member named 'llrint' in the global namespace

using ::llrint;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1340:9: error: no member named 'llrintf' in the global namespace

using ::llrintf;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1342:86: error: use of undeclared identifier 'llrintf'

inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x) _NOEXCEPT       {return llrintf(__x);}

                                                                                     ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1343:86: error: use of undeclared identifier 'llrintl'

inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) _NOEXCEPT {return llrintl(__x);}

                                                                                     ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1348:35: error: call to 'llrint' is ambiguous

llrint(_A1 __x) _NOEXCEPT {return llrint((double)__x);}

                                  ^~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1342:44: note: candidate function

inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x) _NOEXCEPT       {return llrintf(__x);}

                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1343:44: note: candidate function

inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) _NOEXCEPT {return llrintl(__x);}

                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1352:9: error: no member named 'llround' in the global namespace

using ::llround;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1353:9: error: no member named 'llroundf' in the global namespace

using ::llroundf;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1355:87: error: use of undeclared identifier 'llroundf'

inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x) _NOEXCEPT       {return llroundf(__x);}

                                                                                      ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1356:87: error: use of undeclared identifier 'llroundl'

inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) _NOEXCEPT {return llroundl(__x);}

                                                                                      ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1361:36: error: call to 'llround' is ambiguous

llround(_A1 __x) _NOEXCEPT {return llround((double)__x);}

                                   ^~~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1355:44: note: candidate function

inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x) _NOEXCEPT       {return llroundf(__x);}

                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1356:44: note: candidate function

inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) _NOEXCEPT {return llroundl(__x);}

                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1655:9: error: no member named 'llrintl' in the global namespace

using ::llrintl;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1656:9: error: no member named 'llroundl' in the global namespace

using ::llroundl;

      ~~^

In file included from milk/supervised/_perceptron.cpp:10:

In file included from /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:

In file included from /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728:

/Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]

#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"

 ^

1 warning and 13 errors generated.

In file included from milk/supervised/_perceptron.cpp:4:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iostream:40:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/istream:156:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:187:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:86:

In file included from /Developer/SDKs/MacOSX10.5.sdk/usr/include/stdlib.h:61:

/Developer/SDKs/MacOSX10.5.sdk/usr/include/available.h:111:6: error: __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED

    #error __MAC_OS_X_VERSION_MAX_ALLOWED must be >= __MAC_OS_X_VERSION_MIN_REQUIRED

     ^

In file included from milk/supervised/_perceptron.cpp:6:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1339:9: error: no member named 'llrint' in the global namespace

using ::llrint;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1340:9: error: no member named 'llrintf' in the global namespace

using ::llrintf;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1342:86: error: use of undeclared identifier 'llrintf'

inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x) _NOEXCEPT       {return llrintf(__x);}

                                                                                     ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1343:86: error: use of undeclared identifier 'llrintl'

inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) _NOEXCEPT {return llrintl(__x);}

                                                                                     ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1348:35: error: call to 'llrint' is ambiguous

llrint(_A1 __x) _NOEXCEPT {return llrint((double)__x);}

                                  ^~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1342:44: note: candidate function

inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __x) _NOEXCEPT       {return llrintf(__x);}

                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1343:44: note: candidate function

inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __x) _NOEXCEPT {return llrintl(__x);}

                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1352:9: error: no member named 'llround' in the global namespace

using ::llround;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1353:9: error: no member named 'llroundf' in the global namespace

using ::llroundf;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1355:87: error: use of undeclared identifier 'llroundf'

inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x) _NOEXCEPT       {return llroundf(__x);}

                                                                                      ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1356:87: error: use of undeclared identifier 'llroundl'

inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) _NOEXCEPT {return llroundl(__x);}

                                                                                      ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1361:36: error: call to 'llround' is ambiguous

llround(_A1 __x) _NOEXCEPT {return llround((double)__x);}

                                   ^~~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1355:44: note: candidate function

inline _LIBCPP_INLINE_VISIBILITY long long llround(float __x) _NOEXCEPT       {return llroundf(__x);}

                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1356:44: note: candidate function

inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __x) _NOEXCEPT {return llroundl(__x);}

                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1655:9: error: no member named 'llrintl' in the global namespace

using ::llrintl;

      ~~^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1656:9: error: no member named 'llroundl' in the global namespace

using ::llroundl;

      ~~^

In file included from milk/supervised/_perceptron.cpp:10:

In file included from /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:

In file included from /Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728:

/Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]

#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"

 ^

1 warning and 13 errors generated.

error: Command "g++ -fno-strict-aliasing -I/Users/davidlaxer/anaconda/include -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/davidlaxer/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/davidlaxer/anaconda/include/python2.7 -c milk/supervised/_perceptron.cpp -o build/temp.macosx-10.5-x86_64-2.7/milk/supervised/_perceptron.o -std=c++0x -stdlib=libc++" failed with exit status 1

----------------------------------------
Command /Users/davidlaxer/anaconda/bin/python -c "import setuptools;__file__='/tmp/pip-build/milk/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-tTc3Y_-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build/milk
Storing complete log in /Users/davidlaxer/.pip/pip.log
Could not install 'milk' using pip

dav...@softintel.com

unread,
Nov 17, 2013, 2:29:00 PM11/17/13
to milk-...@googlegroups.com
Hi,

I noticed:

 gcc-4.2 not found, using clang instead

Could this be the problem?

Thanks in advance!

Best,
-Dave

dav...@softintel.com

unread,
Nov 23, 2013, 3:10:25 PM11/23/13
to milk-...@googlegroups.com
This problem was due to an old OS X SDK from Snow Lion remaining after upgrading to Maverick.
Removing the old SDK (and the /Developer directory) resolved the problem.


On Saturday, November 16, 2013 8:50:21 PM UTC-8, dav...@softintel.com wrote:
Reply all
Reply to author
Forward
0 new messages