Open davidbp opened 8 years ago
Please delete siteconf.py and run ./configure.py --no-use-openmp
After that your build via python setup.py build
should work.
Hello Karl,
I'm sorry for writing so much! It's a pity the last version is not available with pip install, installing with pip was super easy.
Now I get the following error:
python setup.py build running build running build_py running build_ext building '_viennacl' extension gcc -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -DBOOST_PYTHON_SOURCE=1 -DVIENNACL_WITH_OPENCL -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DVIENNACL_WITH_UBLAS -DBOOST_CHRONO_HEADER_ONLY=1 -DBOOST_THREAD_BUILD_DLL=1 -Dboost=pyviennaclboost -DBOOST_ALL_NO_LIB=1 -Iexternal/boost_numpy/ -Iexternal/boost-python-ublas-subset/boost_subset -Iexternal/viennacl-dev/ -I/Users/macpro/anaconda/envs/py2acc/lib/python2.7/site-packages/numpy/core/include -I/Users/macpro/anaconda/envs/py2acc/include/python2.7 -c src/_viennacl/core.cpp -o build/temp.macosx-10.5-x86_64-2.7/src/_viennacl/core.o -Wno-unused-function -Wno-unused-local-typedefs error: unable to open output file 'build/temp.macosx-10.5-x86_64-2.7/src/_viennacl/core.o': 'Undefined error: 0' 1 error generated. error: command 'gcc' failed with exit status 1
Hmm, the compilation error is weird, because it indicates that the output file cannot be written (yet the return value is zero??). Could you please try switching to Clang via
export CC=clang
export CXX=clang++
./configure --no-use-openmp
python setup.py build
you may also try to create the destination folder, maybe that helps:
mkdir build/temp.macosx-10.5-x86_64-2.7/src/_viennacl/
Hello again,
I was trying to install pyviennacl by cloning the git repo and then follow the instructions.
When I write python setup.py build
I get the following...
NB: OpenMP not currently supported with the clang compiler!
running build running build_py running build_ext building '_viennacl' extension gcc -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -DBOOST_PYTHON_SOURCE=1 -DVIENNACL_WITH_OPENCL -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DVIENNACL_WITH_UBLAS -DVIENNACL_WITH_OPENMP -DBOOST_CHRONO_HEADER_ONLY=1 -DBOOST_THREAD_BUILD_DLL=1 -Dboost=pyviennaclboost -DBOOST_ALL_NO_LIB=1 -Iexternal/boost_numpy/ -Iexternal/boost-python-ublas-subset/boost_subset -Iexternal/viennacl-dev/ -I/Users/macpro/anaconda/envs/py2acc/lib/python2.7/site-packages/numpy/core/include -I/Users/macpro/anaconda/envs/py2acc/include/python2.7 -c src/_viennacl/core.cpp -o build/temp.macosx-10.5-x86_64-2.7/src/_viennacl/core.o -Wno-unused-function -Wno-unused-local-typedefs error: unable to open output file 'build/temp.macosx-10.5-x86_64-2.7/src/_viennacl/core.o': 'Undefined error: 0' 1 error generated. error: command 'gcc' failed with exit status 1