Hi again Matt, guys,
So we  kept on fighting with this issues, relating probably to flags on the 
instructions, relocating files and/or libraries, and we are still very stuck. 
Do you have any idea on what to explore, road to follow, crazy thoughts? Even a 
hint, if you don“t have time we can try it. 
Cheers!


Roberto,This is really useful, thank you so much! I have a Pi 2 at home aswell, 
and I tried for a few days to get NuPIC running on it, but alsoran into similar 
issues. I gave up and moved onto other things, but Iwould love to get this 
problem solved so it is easier to install on aPi.Regards,---------Matt TaylorOS 
Community Flag-BearerNumenta> 
> Message: 1
> Date: Mon, 6 Jul 2015 17:41:03 +0100
> From: Roberto Becerra <[email protected]>
> To: "[email protected]" <[email protected]>,
>       "[email protected]" <[email protected]>, "[email protected]"
>       <[email protected]>
> Subject: Nupic in Raspberry PI 2B
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi all, Nupic guys,  and sorry for the long thread :P
> We have been working on porting Nupic to Raspberry PI 2 B, so far we have 
> successfully compiled and ran all the nupic system in a Linux 32 PC, we even 
> have notes that could be useful for others. 
> We did this in on a 32-bit machine first to find out how to compile Nupic 
> properly, and once having that naively thought to the same steps in the PI. 
> When we did so, we found a number of problems that have to do with the 
> Processor,  we have been debugging them as we find them. We got all the way 
> to successfully compiling Nupic-Core. But when trying to compile Nupic using 
> the setup.py script, we found problems due to architecture issues (we think). 
> We think it has to do with linking flags between shared and static libraries 
> creating a position independent code (-fPIC). 
> Looking for a solution to this we found that adding the -pie flag could solve 
> this issue, but instead we got some other problems that got us stuck now, so 
> now we turn to your wisdom, maybe you can spot what we are doing wrong or 
> what to do. 
> This is the terminal output of the case before adding 
> -pie//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>   platform linuxUsing nupic.core binaries at 
> /home/pi/nupic.core/build/release['-std=c++11', '-march=armv7-a', '-fPIC', 
> '-fvisibility=hidden', '-Wall', '-Wextra', '-Wreturn-type', '-Wunused', 
> '-Wno-unused-parameter', '-mtune=generic-armv7-a', '-O2']['-march=armv7-a', 
> '-fPIC', '-L/home/pi/nupic.core/build/release/lib', '-lkj', '-lcapnp', 
> '-lcapnpc', '-O2']/home/pi/nupic/external/linux32armv7/bin/swig -c++ -python 
> -features autodoc=0,directors=0 -noproxyimport -keyword -modern -modernargs 
> -noproxydel -fvirtual -fastunpack -nofastproxy -fastquery -outputtuple 
> -castmode -nosafecstrings -w402 -w503 -w511 -w302 -w362 -w312 -w389 
> -DSWIG_PYTHON_LEGACY_BOOL 
> -I/home/pi/nupic/external/common/share/swig/3.0.2/python 
> -I/home/pi/nupic/external/common/share/swig/3.0.2 -DNUPIC2 -DNTA_OS_LINUX 
> -DNTA_ARCH_32 -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON 
> -DNTA_ASM -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> nupic/bindings/algorithms.iAQUI 
> ESTOY*************************/home/pi/nupic/external/linux32armv7/bin/swig 
> -c++ -python -features autodoc=0,directors=0 -noproxyimport -keyword -modern 
> -modernargs -noproxydel -fvirtual -fastunpack -nofastproxy -fastquery 
> -outputtuple -castmode -nosafecstrings -w402 -w503 -w511 -w302 -w362 -w312 
> -w389 -DSWIG_PYTHON_LEGACY_BOOL 
> -I/home/pi/nupic/external/common/share/swig/3.0.2/python 
> -I/home/pi/nupic/external/common/share/swig/3.0.2 -DNUPIC2 -DNTA_OS_LINUX 
> -DNTA_ARCH_32 -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON 
> -DNTA_ASM -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> nupic/bindings/engine_internal.iAQUI 
> ESTOY*************************/home/pi/nupic/external/linux32armv7/bin/swig 
> -c++ -python -features autodoc=0,directors=0 -noproxyimport -keyword -modern 
> -modernargs -noproxydel -fvirtual -fastunpack -nofastproxy -fastquery 
> -outputtuple -castmode -nosafecstrings -w402 -w503 -w511 -w302 -w362 -w312 
> -w389 -DSWIG_PYTHON_LEGACY_BOOL 
> -I/home/pi/nupic/external/common/share/swig/3.0.2/python 
> -I/home/pi/nupic/external/common/share/swig/3.0.2 -DNUPIC2 -DNTA_OS_LINUX 
> -DNTA_ARCH_32 -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON 
> -DNTA_ASM -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> nupic/bindings/math.iAQUI ESTOY*************************Despues de las 
> extensionesrunning installrunning bdist_eggrunning egg_infowriting 
> requirements to nupic.egg-info/requires.txtwriting 
> nupic.egg-info/PKG-INFOwriting top-level names to 
> nupic.egg-info/top_level.txtwriting dependency_links to 
> nupic.egg-info/dependency_links.txtwriting requirements to 
> nupic.egg-info/requires.txtwriting nupic.egg-info/PKG-INFOwriting top-level 
> names to nupic.egg-info/top_level.txtwriting dependency_links to 
> nupic.egg-info/dependency_links.txtreading manifest file 
> 'nupic.egg-info/SOURCES.txt'reading manifest template 'MANIFEST.in'writing 
> manifest file 'nupic.egg-info/SOURCES.txt'installing library code to 
> build/bdist.linux-armv7l/eggrunning install_librunning build_pycopying 
> nupic/bindings/proto/BitHistory.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/ClaClassifier.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/ConnectionsProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/LinkProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/Map.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/NetworkProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/RandomProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/RegionProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/SparseBinaryMatrixProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/SparseMatrixProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/SpatialPoolerProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/TemporalMemoryProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/TemporalMemoryV1.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/TestNodeProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protocopying 
> nupic/bindings/proto/VectorFileSensorProto.capnp -> 
> build/lib.linux-armv7l-2.7/nupic/bindings/protorunning build_extbuilding 
> 'nupic.libcpp_region' extensiongcc -pthread -fno-strict-aliasing -DNDEBUG -g 
> -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX 
> -DNTA_ARCH_32 -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON 
> -DNTA_ASM -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/py_support/NumpyVector.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/py_support/NumpyVector.o -std=c++11 
> -march=armv7-a -fPIC -fvisibility=hidden -Wall -Wextra -Wreturn-type -Wunused 
> -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: command 
> line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/py_support/PyArray.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PyArray.o -std=c++11 
> -march=armv7-a -fPIC -fvisibility=hidden -Wall -Wextra -Wreturn-type -Wunused 
> -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: command 
> line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/py_support/PyHelpers.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PyHelpers.o -std=c++11 
> -march=armv7-a -fPIC -fvisibility=hidden -Wall -Wextra -Wreturn-type -Wunused 
> -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: command 
> line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/py_support/PythonStream.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PythonStream.o -std=c++11 
> -march=armv7-a -fPIC -fvisibility=hidden -Wall -Wextra -Wreturn-type -Wunused 
> -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: command 
> line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/cpp_region/PyRegion.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/PyRegion.o -std=c++11 
> -march=armv7-a -fPIC -fvisibility=hidden -Wall -Wextra -Wreturn-type -Wunused 
> -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: command 
> line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/cpp_region/unittests/PyHelpersTest.cpp 
> -o 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o 
> -std=c++11 -march=armv7-a -fPIC -fvisibility=hidden -Wall -Wextra 
> -Wreturn-type -Wunused -Wno-unused-parameter -mtune=generic-armv7-a 
> -O2cc1plus: warning: command line option '-Wstrict-prototypes' is valid for 
> C/ObjC but not for C++ [enabled by default]g++ -pthread -shared -Wl,-O1 
> -Wl,-Bsymbolic-functions -Wl,-z,relro 
> build/temp.linux-armv7l-2.7/extensions/py_support/NumpyVector.o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PyArray.o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PyHelpers.o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PythonStream.o 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/PyRegion.o 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o 
> /home/pi/nupic.core/build/release/lib/libnupic_core.a -ldl -lpython2.7 -lkj 
> -lcapnp -lcapnpc -lpthread -o 
> build/lib.linux-armv7l-2.7/nupic/libcpp_region.so -march=armv7-a -fPIC 
> -L/home/pi/nupic.core/build/release/lib -lkj -lcapnp -lcapnpc -O2/usr/bin/ld: 
> /home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o)(.text+0x34):
>  R_ARM_TLS_LE32 relocation not permitted in shared 
> object/home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o): In 
> function 
> `kj::ExceptionCallback::~ExceptionCallback()':exception.c++:(.text+0x34): 
> dangerous relocation: unsupported relocation/usr/bin/ld: 
> /home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o)(.text+0xd8):
>  R_ARM_TLS_LE32 relocation not permitted in shared 
> object/home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o): In 
> function 
> `kj::ExceptionCallback::~ExceptionCallback()':exception.c++:(.text+0xd8): 
> dangerous relocation: unsupported relocation/usr/bin/ld: 
> /home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o)(.text+0x38c):
>  R_ARM_TLS_LE32 relocation not permitted in shared 
> object/home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o): In 
> function `kj::getExceptionCallback()':exception.c++:(.text+0x38c): dangerous 
> relocation: unsupported relocation/usr/bin/ld: 
> /home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o)(.text+0x750):
>  R_ARM_TLS_LE32 relocation not permitted in shared 
> object/home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o): In 
> function 
> `kj::ExceptionCallback::ExceptionCallback()':exception.c++:(.text+0x750): 
> dangerous relocation: unsupported relocation/usr/bin/ld: 
> /home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o)(.text._ZN2kj17ExceptionCallback21RootExceptionCallbackD2Ev[_ZN2kj17ExceptionCallback21RootExceptionCallbackD5Ev]+0x34):
>  R_ARM_TLS_LE32 relocation not permitted in shared 
> object/home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o): In 
> function 
> `kj::ExceptionCallback::RootExceptionCallback::~RootExceptionCallback()':exception.c++:(.text._ZN2kj17ExceptionCallback21RootExceptionCallbackD2Ev[_ZN2kj17ExceptionCallback21RootExceptionCallbackD5Ev]+0x34):
>  dangerous relocation: unsupported relocation/usr/bin/ld: 
> /home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o)(.text._ZN2kj17ExceptionCallback21RootExceptionCallbackD0Ev[_ZN2kj17ExceptionCallback21RootExceptionCallbackD0Ev]+0x3c):
>  R_ARM_TLS_LE32 relocation not permitted in shared 
> object/home/pi/nupic.core/build/release/lib/libnupic_core.a(exception.o): In 
> function 
> `kj::ExceptionCallback::RootExceptionCallback::~RootExceptionCallback()':exception.c++:(.text._ZN2kj17ExceptionCallback21RootExceptionCallbackD0Ev[_ZN2kj17ExceptionCallback21RootExceptionCallbackD0Ev]+0x3c):
>  dangerous relocation: unsupported relocationcollect2: error: ld returned 1 
> exit statuserror: command 'g++' failed with exit status 
> 1///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> Then, adding the -pie flag, we got the following output:
> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////building
>  'nupic.libcpp_region' extensiongcc -pthread -fno-strict-aliasing -DNDEBUG -g 
> -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX 
> -DNTA_ARCH_32 -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON 
> -DNTA_ASM -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/py_support/NumpyVector.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/py_support/NumpyVector.o -std=c++11 
> -march=armv7-a -fPIC -pie -fvisibility=hidden -Wall -Wextra -Wreturn-type 
> -Wunused -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: 
> command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/py_support/PyArray.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PyArray.o -std=c++11 
> -march=armv7-a -fPIC -pie -fvisibility=hidden -Wall -Wextra -Wreturn-type 
> -Wunused -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: 
> command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/py_support/PyHelpers.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PyHelpers.o -std=c++11 
> -march=armv7-a -fPIC -pie -fvisibility=hidden -Wall -Wextra -Wreturn-type 
> -Wunused -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: 
> command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/py_support/PythonStream.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PythonStream.o -std=c++11 
> -march=armv7-a -fPIC -pie -fvisibility=hidden -Wall -Wextra -Wreturn-type 
> -Wunused -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: 
> command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/cpp_region/PyRegion.cpp -o 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/PyRegion.o -std=c++11 
> -march=armv7-a -fPIC -pie -fvisibility=hidden -Wall -Wextra -Wreturn-type 
> -Wunused -Wno-unused-parameter -mtune=generic-armv7-a -O2cc1plus: warning: 
> command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
> -Wall -Wstrict-prototypes -fPIC -DNUPIC2 -DNTA_OS_LINUX -DNTA_ARCH_32 
> -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL -DNTA_ASSERTIONS_ON -DNTA_ASM 
> -DHAVE_CONFIG_H -DBOOST_NO_WREGEX 
> -I/home/pi/nupic/external/linux32armv7/include 
> -I/home/pi/nupic/external/common/include -I/home/pi/nupic/extensions 
> -I/home/pi/nupic -I/home/pi/nupic.core/build/release/include 
> -I/usr/include/python2.7 
> -I/usr/local/lib/python2.7/dist-packages/numpy/core/include 
> -I/usr/include/python2.7 -c extensions/cpp_region/unittests/PyHelpersTest.cpp 
> -o 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o 
> -std=c++11 -march=armv7-a -fPIC -pie -fvisibility=hidden -Wall -Wextra 
> -Wreturn-type -Wunused -Wno-unused-parameter -mtune=generic-armv7-a 
> -O2cc1plus: warning: command line option '-Wstrict-prototypes' is valid for 
> C/ObjC but not for C++ [enabled by default]g++ -pthread -shared -Wl,-O1 
> -Wl,-Bsymbolic-functions -Wl,-z,relro 
> build/temp.linux-armv7l-2.7/extensions/py_support/NumpyVector.o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PyArray.o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PyHelpers.o 
> build/temp.linux-armv7l-2.7/extensions/py_support/PythonStream.o 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/PyRegion.o 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o 
> /home/pi/nupic.core/build/release/lib/libnupic_core.a -ldl -lpython2.7 -lkj 
> -lcapnp -lcapnpc -lpthread -o 
> build/lib.linux-armv7l-2.7/nupic/libcpp_region.so -march=armv7-a -fPIC -pie 
> -L/home/pi/nupic.core/build/release/lib -lkj -lcapnp -lcapnpc 
> -O2/usr/lib/gcc/arm-linux-gnueabihf/4.8/../../../arm-linux-gnueabihf/Scrt1.o: 
> In function `_start':(.text+0x54): undefined reference to 
> `main'build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o:
>  In function 
> `nupic::PyHelpersTest::RunTests()':/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:53:
>  undefined reference to 
> `testing::internal::AlwaysTrue()'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:53:
>  undefined reference to 
> `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, 
> char const*, int, char 
> const*)'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:53: 
> undefined reference to 
> `testing::Message::Message()'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:53:
>  undefined reference to 
> `testing::internal::AssertHelper::operator=(testing::Message const&) 
> const'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:53: 
> undefined reference to 
> `testing::internal::AssertHelper::~AssertHelper()'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:56:
>  undefined reference to 
> `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult 
> const&, char const*, char const*, char 
> const*)'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:56: 
> undefined reference to 
> `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, 
> char const*, int, char 
> const*)'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:56: 
> undefined reference to 
> `testing::Message::Message()'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:56:
>  undefined reference to 
> `testing::internal::AssertHelper::operator=(testing::Message const&) 
> const'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:56: 
> undefined reference to 
> `testing::internal::AssertHelper::~AssertHelper()'build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o:
>  In function 
> `testing::internal::scoped_ptr<std::string>::reset(std::string*)':/home/pi/nupic.core/build/release/include/gtest/gtest.h:2016:
>  undefined reference to 
> `testing::internal::IsTrue(bool)'build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o:
>  In function 
> `nupic::PyHelpersTest::RunTests()':/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:57:
>  undefined reference to 
> `testing::internal::GetBoolAssertionFailureMessage(testing::AssertionResult 
> const&, char const*, char const*, char 
> const*)'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:57: 
> undefined reference to 
> `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, 
> char const*, int, char 
> const*)'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:57: 
> undefined reference to 
> `testing::Message::Message()'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:57:
>  undefined reference to 
> `testing::internal::AssertHelper::operator=(testing::Message const&) 
> const'/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:57: 
> undefined reference to 
> `testing::internal::AssertHelper::~AssertHelper()'build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o:
>  In function 
> `testing::internal::scoped_ptr<std::string>::reset(std::string*)':/home/pi/nupic.core/build/release/include/gtest/gtest.h:2016:
>  undefined reference to `testing::internal::IsTrue(bool)'[...] // more 
> undefined references to blah blah... 
> build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o:/home/pi/nupic/extensions/cpp_region/unittests/PyHelpersTest.cpp:414:
>  more undefined references to 
> `testing::internal::AssertHelper::~AssertHelper()' 
> followbuild/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o:
>  In function 
> `testing::internal::scoped_ptr<std::string>::reset(std::string*)':/home/pi/nupic.core/build/release/include/gtest/gtest.h:2016:
>  undefined reference to 
> `testing::internal::IsTrue(bool)'build/temp.linux-armv7l-2.7/extensions/cpp_region/unittests/PyHelpersTest.o:
>  In function `testing::internal::scoped_ptr<std::basic_stringstream<char, 
> std::char_traits<char>, std::allocator<char> > 
> >::reset(std::basic_stringstream<char, std::char_traits<char>, 
> std::allocator<char> 
> >*)':/home/pi/nupic.core/build/release/include/gtest/gtest.h:2016: undefined 
> reference to `testing::internal::IsTrue(bool)'collect2: error: ld returned 1 
> exit statuserror: command 'g++' failed with exit status 1 
> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> thanks in advance guys!
> Roberto 
> 
>                                         
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.numenta.org/pipermail/nupic_lists.numenta.org/attachments/20150706/69d23b02/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 6 Jul 2015 10:26:24 -0700
> From: Matthew Taylor <[email protected]>
> To: "NuPIC general mailing list." <[email protected]>
> Subject: Re: Nupic in Raspberry PI 2B
> Message-ID:
>       <CAJv6nDMAYbw8B8Ds_uYXeM22z=skxippytvsrn7p+2bkc9m...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> Roberto,
> 
> This is really useful, thank you so much! I have a Pi 2 at home as
> well, and I tried for a few days to get NuPIC running on it, but also
> ran into similar issues. I gave up and moved onto other things, but I
> would love to get this problem solved so it is easier to install on a
> Pi.
> 
> Regards,
> ---------
> Matt Taylor
> OS Community Flag-Bearer
> Numenta
> 

                                          

Reply via email to