- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to try pyDAAL out but I keep running into this error: "clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)". My mac OS version is 10.12.3, Xcode version is 8.0 (8A218a). Here is a full log of my latest attempt:
python setup.py install
running install
running bdist_egg
running egg_info
writing pydaal.egg-info/PKG-INFO
writing dependency_links to pydaal.egg-info/dependency_links.txt
writing top-level names to pydaal.egg-info/top_level.txt
reading manifest file 'pydaal.egg-info/SOURCES.txt'
writing manifest file 'pydaal.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-x86_64/egg
running install_lib
running build_py
running build_ext
building 'daal.algorithms.neural_networks.layers.lrn._lrn' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/intel/intelpython35/include -arch x86_64 -I./daal/include -I/opt/intel/compilers_and_libraries_2017.2.163/mac/daal/include -I/opt/intel/intelpython35/lib/python3.5/site-packages/numpy/core/include -I/opt/intel/intelpython35/include/python3.5m -c daal/wrp/_algorithms__neural_networks__layers__lrn.cpp -o build/temp.macosx-10.6-x86_64-3.5/daal/wrp/_algorithms__neural_networks__layers__lrn.o -std=c++11 -w -fstack-protector -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -DSWIGPY_USE_CAPSULE_
g++ -bundle -undefined dynamic_lookup -L/opt/intel/intelpython35/lib -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/daal/wrp/_algorithms__neural_networks__layers__lrn.o -L/opt/intel/compilers_and_libraries_2017.2.163/mac/daal/lib -L/opt/intel/intelpython35/lib -ldaal_core -ldaal_thread -o build/lib.macosx-10.6-x86_64-3.5/daal/algorithms/neural_networks/layers/lrn/_lrn.cpython-35m-darwin.so -stdlib=libc++ -Wl,-rpath,/opt/intel/compilers_and_libraries_2017.2.163/mac/daal/lib -Wl,-rpath,/opt/intel/compilers_and_libraries_2017.2.163/mac/daal/../tbb/lib
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
error: command 'g++' failed with exit status 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Andrei,
I’m sorry for the inconvenience. There are two options to get PyDAAL working for you.
- You can install Intel’s Python distribution, which includes a pre-built version of PyDAAL.
- You can try running the install like this:
MACOSX_DEPLOYMENT_TARGET=10.7 python setup.py install
Regards,
Chris
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Andrei,
I’m sorry for the inconvenience. There are two options to get PyDAAL working for you.
- You can install Intel’s Python distribution, which includes a pre-built version of PyDAAL.
- You can try running the install like this:
MACOSX_DEPLOYMENT_TARGET=10.7 python setup.py install
Regards,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Specific deployment target did help to get past the initial error, but 15 or so minutes later I ran into another:
building 'daal.data_management._db' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/intel/intelpython35/include -arch x86_64 -I./daal/include -I/opt/intel/compilers_and_libraries_2017.2.163/mac/daal/include -I/opt/intel/intelpython35/lib/python3.5/site-packages/numpy/core/include -I/opt/intel/intelpython35/include/python3.5m -c daal/wrp/_data_management__db.cpp -o build/temp.macosx-10.6-x86_64-3.5/daal/wrp/_data_management__db.o -std=c++11 -w -fstack-protector -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -DSWIGPY_USE_CAPSULE_
In file included from daal/wrp/_data_management__db.cpp:3388:
/opt/intel/compilers_and_libraries_2017.2.163/mac/daal/include/data_management/data_source/mysql_feature_manager.h:42:10: fatal error:
'sql.h' file not found
#include <sql.h>
^
1 error generated.
error: command 'gcc' failed with exit status 1
I guess I'll opt out for a prebuilt version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Andrei,
Thanks for responding.
These headers are not installed by default on later versions of OSX. Installing them via a package manager will allow the build to complete. On Homebrew, the required command is:
brew install unixodbc
Please let me know if this solves all build issues. If not, I am happy to assist further.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page