Yikes, I have never seen this error before. Did you manually install a
version of Capn Proto yourself? If so, perhaps you could uninstall it
and try again?
---------
Matt Taylor
OS Community Flag-Bearer
Numenta


On Mon, Mar 30, 2015 at 12:10 AM, Giuseppe Torre <[email protected]> wrote:
> Hi Matthew,
>    I am using os x 10.9
> I have run in shell the command: export MACOSX_DEPLOYMENT_TARGET=10.9
> Now it worked! No more CLANG error! Thanks!
> However, now I get other errors after a while...
> They are all error compiling Cython files....
> I am copying only a few lines from the error below. (Thank you all for the
> help!)
>
> Compiling capnp/lib/capnp.pyx because it depends on
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython-0.22-py2.7-macosx-10.6-intel.egg/Cython/Includes/libcpp/__init__.pxd.
>
> Cythonizing capnp/lib/capnp.pyx
>
>
> Error compiling Cython file:
>
> ------------------------------------------------------------
>
> ...
>
>     cdef _init(self, capnp.DynamicEnum other, object parent):
>
>         self.thisptr = other
>
>         self._parent = parent
>
>         return self
>
>
>     cpdef _as_str(self) except +reraise_kj_exception:
>
>          ^
> ..... etc etc....
>
>
>
>
>   File
> "/Users/giuseppetorre/nupic-darwin64/lib/python2.7/site-packages/setuptools-1.0-py2.7.egg/setuptools/sandbox.py",
> line 69, in run_setup
>
>   File
> "/Users/giuseppetorre/nupic-darwin64/lib/python2.7/site-packages/setuptools-1.0-py2.7.egg/setuptools/sandbox.py",
> line 120, in run
>
>   File
> "/Users/giuseppetorre/nupic-darwin64/lib/python2.7/site-packages/setuptools-1.0-py2.7.egg/setuptools/sandbox.py",
> line 71, in <lambda>
>
>   File "setup.py", line 122, in <module>
>
>     optionsDesc.append(
>
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython-0.22-py2.7-macosx-10.6-intel.egg/Cython/Build/Dependencies.py",
> line 865, in cythonize
>
>     cythonize_one(*args[1:])
>
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython-0.22-py2.7-macosx-10.6-intel.egg/Cython/Build/Dependencies.py",
> line 985, in cythonize_one
>
>     raise CompileError(None, pyx_file)
>
> Cython.Compiler.Errors.CompileError: capnp/lib/capnp.pyx
>
>
>
> /G
>
>
>
>
> On Mon, Mar 30, 2015 at 3:44 AM, Matthew Taylor <[email protected]> wrote:
>>
>> I think your clang error is because of the `MACOSX_DEPLOYMENT_TARGET`
>> environment variable. What version of OS X are you running? What is
>> the value of "echo $MACOSX_DEPLOYMENT_TARGET" in your shell?
>>
>> It needs to be 10.7 or higher.
>>
>> ---------
>> Matt Taylor
>> OS Community Flag-Bearer
>> Numenta
>>
>>
>> On Sun, Mar 29, 2015 at 2:50 PM, Giuseppe Torre <[email protected]>
>> wrote:
>> > Yes Env done and echo $NUPIC provides  /Users/giuseppe/nupic  indeed.
>> >
>> > I tried the following:
>> >
>> > ARCHFLAGS="-arch x86_64";python setup.py install --user
>> >
>> > gives this:
>> > File "setup.py", line 635, in <module>
>> > raise Exception("To build NuPIC in OS X, you must "
>> > Exception: To build NuPIC in OS X, you must `export ARCHFLAGS="-arch
>> > x86_64"`.
>> >
>> >
>> > ARCHFLAGS="-arch x86_64" python setup.py install --user (...no
>> > semicolon)
>> >
>> > gives  CLANG error...
>> >
>> > /G
>> >
>> >
>> >
>> >
>> > On Sun, Mar 29, 2015 at 11:39 PM, cogmission (David Ray)
>> > <[email protected]> wrote:
>> >>
>> >> I think he did that? That is what he meant by, "Env done". I mentioned
>> >> the
>> >> "export" command a few emails back...
>> >>
>> >> To be sure Giuseppe try running: "echo $NUPIC" and see if it outputs
>> >> the
>> >> correct directory (or nothing if it wasn't exported correctly)
>> >>
>> >> On Sun, Mar 29, 2015 at 4:27 PM, David Wood <[email protected]>
>> >> wrote:
>> >>>
>> >>> Hi Giuseppe,
>> >>>
>> >>> Try this process, with the addition I’ve made:
>> >>>
>> >>> - download nupic-darwin64  ( https://github.com/numenta/nupic-darwin64
>> >>> )
>> >>> - saved to /User/giuseppe/
>> >>> - in terminal run: source nupic-darwin64/bin/activate   ( I have not
>> >>> run
>> >>> make within nupic-darwin64  just activate)
>> >>> - download nupic  ( https://github.com/numenta/nupic )
>> >>> - saved to /User/giuseppe/
>> >>>
>> >>>
>> >>> - In the Terminal, run:
>> >>> $ export NUPIC=/Users/giuseppe/nupic
>> >>>
>> >>> - in Terminal cd nupic and then ARCHFLAGS="-arch x86_64" python
>> >>> setup.py
>> >>> install
>> >>>
>> >>>
>> >>> Regards,
>> >>> Dave
>> >>> --
>> >>> http://about.me/david_wood
>> >>>
>> >>>
>> >>>
>> >>> On Mar 29, 2015, at 17:24, Giuseppe Torre <[email protected]>
>> >>> wrote:
>> >>>
>> >>> I see thank you! ENV done now.
>> >>> here is the complete list of steps I have done and that will
>> >>> eventually
>> >>> lead to the CLANG error:
>> >>>
>> >>> - download nupic-darwin64  ( https://github.com/numenta/nupic-darwin64
>> >>> )
>> >>> - saved to /User/giuseppe/
>> >>> - in terminal run: source nupic-darwin64/bin/activate   ( I have not
>> >>> run
>> >>> make within nupic-darwin64  just activate)
>> >>> - download nupic  ( https://github.com/numenta/nupic )
>> >>> - saved to /User/giuseppe/
>> >>> - in Terminal cd nupic and then ARCHFLAGS="-arch x86_64" python
>> >>> setup.py
>> >>> install
>> >>>
>> >>> At this stage, after a bit a get the CLANG error...
>> >>> /G
>> >>>
>> >>>
>> >>>
>> >>> On Sun, Mar 29, 2015 at 10:55 PM, cogmission (David Ray)
>> >>> <[email protected]> wrote:
>> >>>>
>> >>>> Mine is /Users/cogmission/git/nupic... for instance
>> >>>>
>> >>>> On Sun, Mar 29, 2015 at 3:55 PM, cogmission (David Ray)
>> >>>> <[email protected]> wrote:
>> >>>>>
>> >>>>> that means do:  "export NUPIC=<path to your nupic dir>"
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> On Sun, Mar 29, 2015 at 3:49 PM, Giuseppe Torre
>> >>>>> <[email protected]> wrote:
>> >>>>>>
>> >>>>>> Hi David,
>> >>>>>>   I do have Xcode 6.1.1, command line tool as well as all required
>> >>>>>> stuff  installed..
>> >>>>>> but I still get that CLANG error.
>> >>>>>> The only step I did not do is: "Set the NUPIC environment variable
>> >>>>>> to
>> >>>>>> the absolute path to your local checkout of NuPIC." because I am
>> >>>>>> not sure
>> >>>>>> what it means...I wonder if this is cause of the Clang issue...
>> >>>>>> Thanks though
>> >>>>>> /G
>> >>>>>>
>> >>>>>> On Sun, Mar 29, 2015 at 8:46 PM, cogmission (David Ray)
>> >>>>>> <[email protected]> wrote:
>> >>>>>>>
>> >>>>>>> Hi Giuseppe,
>> >>>>>>>
>> >>>>>>> I am in no way a Python/C++ NuPIC installation guru - but I would
>> >>>>>>> first recommend
>> >>>>>>> making sure you have both Xcode installed then make sure you
>> >>>>>>> install
>> >>>>>>> the "command line tools" -->
>> >>>>>>>
>> >>>>>>> http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/
>> >>>>>>>
>> >>>>>>> Cheers...
>> >>>>>>>
>> >>>>>>> On Sun, Mar 29, 2015 at 12:39 PM, Giuseppe Torre
>> >>>>>>> <[email protected]> wrote:
>> >>>>>>>>
>> >>>>>>>> Hello,
>> >>>>>>>>   I have a problem and a doubt.
>> >>>>>>>> I will start with the doubt (I am a newbie so apologies in
>> >>>>>>>> advance):
>> >>>>>>>> In the documentation you ask :
>> >>>>>>>>
>> >>>>>>>> Set the NUPIC environment variable to the absolute path to your
>> >>>>>>>> local checkout of NuPIC.
>> >>>>>>>>
>> >>>>>>>> export NUPIC=<repo-path>
>> >>>>>>>>
>> >>>>>>>> If you are going to run tests, you might need to add py.test to
>> >>>>>>>> your
>> >>>>>>>> $PATH for tests to run. This will be in different locations
>> >>>>>>>> depending on
>> >>>>>>>> your python environment, so we'll leave this up to you.
>> >>>>>>>>
>> >>>>>>>> What do you mean? What am I suppose to do?
>> >>>>>>>>
>> >>>>>>>> The problem:
>> >>>>>>>> I have tries to compile using ARCHFLAGS="-arch x86_64" python
>> >>>>>>>> setup.py install
>> >>>>>>>> ....but I get the following CLANG error:
>> >>>>>>>>
>> >>>>>>>> building 'nupic.libcpp_region' extension
>> >>>>>>>>
>> >>>>>>>> clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
>> >>>>>>>> -Qunused-arguments -Qunused-arguments -arch x86_64 -DNUPIC2
>> >>>>>>>> -DNTA_OS_DARWIN
>> >>>>>>>> -DNTA_ARCH_64 -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL
>> >>>>>>>> -DNTA_ASSERTIONS_ON
>> >>>>>>>> -DNTA_ASM -DHAVE_CONFIG_H -DBOOST_NO_WREGEX
>> >>>>>>>> -I/Users/giuseppetorre/nupic/external/darwin64/include
>> >>>>>>>> -I/Users/giuseppetorre/nupic/external/common/include
>> >>>>>>>> -I/Users/giuseppetorre/nupic/extensions
>> >>>>>>>> -I/Users/giuseppetorre/nupic
>> >>>>>>>>
>> >>>>>>>> -I/Users/giuseppetorre/nupic/extensions/core/build/release/include
>> >>>>>>>>
>> >>>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
>> >>>>>>>>
>> >>>>>>>> -I/Users/giuseppetorre/nupic-darwin64/lib/python2.7/site-packages/numpy/core/include
>> >>>>>>>>
>> >>>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
>> >>>>>>>>  -c
>> >>>>>>>> extensions/py_support/NumpyVector.cpp -o
>> >>>>>>>>
>> >>>>>>>> build/temp.macosx-10.6-intel-2.7/extensions/py_support/NumpyVector.o
>> >>>>>>>> -std=c++11 -m64 -fPIC -fvisibility=hidden -Wall -Wextra
>> >>>>>>>> -Wreturn-type
>> >>>>>>>> -Wunused -Wno-unused-parameter -mtune=generic -O2 -stdlib=libc++
>> >>>>>>>>
>> >>>>>>>> clang: error: invalid deployment target for -stdlib=libc++
>> >>>>>>>> (requires
>> >>>>>>>> OS X 10.7 or later)
>> >>>>>>>>
>> >>>>>>>> error: command 'clang' failed with exit status 1
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> Thanks in advance for your help
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> --
>> >>>>>>> With kind regards,
>> >>>>>>>
>> >>>>>>> David Ray
>> >>>>>>> Java Solutions Architect
>> >>>>>>>
>> >>>>>>> cortical.io
>> >>>>>>> Sponsor of:  HTM.java
>> >>>>>>>
>> >>>>>>> [email protected]
>> >>>>>>> http://cortical.io
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> --
>> >>>>> With kind regards,
>> >>>>>
>> >>>>> David Ray
>> >>>>> Java Solutions Architect
>> >>>>>
>> >>>>> cortical.io
>> >>>>> Sponsor of:  HTM.java
>> >>>>>
>> >>>>> [email protected]
>> >>>>> http://cortical.io
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> --
>> >>>> With kind regards,
>> >>>>
>> >>>> David Ray
>> >>>> Java Solutions Architect
>> >>>>
>> >>>> cortical.io
>> >>>> Sponsor of:  HTM.java
>> >>>>
>> >>>> [email protected]
>> >>>> http://cortical.io
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> With kind regards,
>> >>
>> >> David Ray
>> >> Java Solutions Architect
>> >>
>> >> cortical.io
>> >> Sponsor of:  HTM.java
>> >>
>> >> [email protected]
>> >> http://cortical.io
>> >
>> >
>> >
>> >
>> >
>>
>
>
>
>

Reply via email to