The CMake configuration in nupic doesn't support gcc on OS X.  It assumes
clang, which is the default compiler on that platform.  You might also
consider, as an alternative to setting CXX env variable, pass it through on
the command line:

python setup.py install --cmake_options="-DCMAKE_CXX_COMPILER=clang++"

On Tue, Nov 25, 2014 at 9:44 AM, Matthew Taylor <[email protected]> wrote:

> Try switching to the clang compiler instead of gcc.
>
> export CXX=clang++
> export CC=clang
>
> Then install again?
> ---------
> Matt Taylor
> OS Community Flag-Bearer
> Numenta
>
>
> On Tue, Nov 25, 2014 at 9:38 AM, Antonio <[email protected]> wrote:
> > Hi Mat,
> >
> > The --user flag didn't make any difference.
> > Below is the output of the commands you requested:
> >
> > clang --version
> > Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
> > Target: x86_64-apple-darwin13.4.0
> > Thread model: posix
> >
> > gcc --version
> > gcc (MacPorts gcc48 4.8.3_0) 4.8.3
> > Copyright (C) 2013 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.  There is
> NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> >
> >
> > On 25 Nov 2014, at 19:32, Matthew Taylor <[email protected]> wrote:
> >
> > First, try "python setup.py install --user" and see if that helps.
> > Also, what do the following commands output?
> >
> > clang --version
> >
> >
> > gcc --version
> >
> >
> > Regards,
> > ---------
> > Matt Taylor
> > OS Community Flag-Bearer
> > Numenta
> >
> >
> > On Tue, Nov 25, 2014 at 9:19 AM, Antonio <[email protected]> wrote:
> >
> > Hi all,
> >
> > I am trying to install NuPIC on OS X 10.9.
> > I am following the instructions, I activated nupic-darwin64, I installed
> the
> > Python Dependencies and when I try:
> > python setup.py install
> >
> > I get the following message.
> >
> > Any idea on how to proceed ?
> >
> > Thank you in advance,
> > Antonio
> >
> >
> > Antonios-MacBook-Pro:nupic antoniopanteliasgarces$ python setup.py
> install
> > -- The CXX compiler identification is GNU 4.8.3
> > -- Checking whether CXX compiler has -isysroot
> > -- Checking whether CXX compiler has -isysroot - yes
> > -- Checking whether CXX compiler supports OSX deployment target flag
> > -- Checking whether CXX compiler supports OSX deployment target flag -
> yes
> > -- Check for working CXX compiler: /opt/local/bin/c++
> > -- Check for working CXX compiler: /opt/local/bin/c++ -- works
> > -- Detecting CXX compiler ABI info
> > -- Detecting CXX compiler ABI info - done
> > Python 2.7.8
> > -- Attempting to fetch nupic.core binaries from
> >
> https://s3-us-west-2.amazonaws.com/artifacts.numenta.org/numenta/nupic.core/nupic_core-bff505ebfa3c107d78943f155ae79795e557d01d-darwin64.tar.gz
> > and save to
> >
> /Users/antoniopanteliasgarces/Documents/GitHub/nupic/extensions/core/build/release/nupic_core-bff505ebfa3c107d78943f155ae79795e557d01d-darwin64.tar.gz...
> > -- Download successful.
> > -- Unpacking
> >
> /Users/antoniopanteliasgarces/Documents/GitHub/nupic/extensions/core/build/release/nupic_core-bff505ebfa3c107d78943f155ae79795e557d01d-darwin64.tar.gz
> > into
> >
> /Users/antoniopanteliasgarces/Documents/GitHub/nupic/extensions/core/build/release/nupic_core-bff505ebfa3c107d78943f155ae79795e557d01d-darwin64...
> > CMake Warning (dev) at CMakeLists.txt:301 (add_library):
> >  Policy CMP0037 is not set: Target names should not be reserved and
> should
> >  match a validity pattern.  Run "cmake --help-policy CMP0037" for policy
> >  details.  Use the cmake_policy command to set the policy and suppress
> this
> >  warning.
> >
> >  The target name
> >
> >
> "/Users/antoniopanteliasgarces/Documents/GitHub/nupic/extensions/core/build/release/lib/libnupic_core.a"
> >  is reserved or not valid for certain CMake features, such as generator
> >  expressions, and may result in undefined behavior.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > -- Configuring done
> > CMake Warning (dev) at CMakeLists.txt:465 (add_dependencies):
> >  Policy CMP0046 is not set: Error on non-existent dependency in
> >  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
> >  Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >  The dependency target "nupic_core" of target
> "compare_nupic_core_version"
> >  does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev):
> >  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run
> "cmake
> >  --help-policy CMP0042" for policy details.  Use the cmake_policy command
> > to
> >  set the policy and suppress this warning.
> >
> >  MACOSX_RPATH is not specified for the following targets:
> >
> >   cpp_region
> >
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > -- Generating done
> > -- Build files have been written to:
> > /Users/antoniopanteliasgarces/Documents/GitHub/nupic/build/scripts
> > Scanning dependencies of target py_support
> > [  5%] Building CXX object
> > CMakeFiles/py_support.dir/extensions/py_support/NumpyVector.cpp.o
> > c++: error: unrecognized command line option '-stdlib=libc++'
> > make[2]: ***
> > [CMakeFiles/py_support.dir/extensions/py_support/NumpyVector.cpp.o]
> Error 1
> > make[1]: *** [CMakeFiles/py_support.dir/all] Error 2
> > make: *** [all] Error 2
> > Unable to build the library!
> >
> >
> >
>
>

Reply via email to