Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed building wheel for dm.xmlsec.binding #177

Closed
McPo opened this issue Jan 10, 2017 · 4 comments
Closed

Failed building wheel for dm.xmlsec.binding #177

McPo opened this issue Jan 10, 2017 · 4 comments

Comments

@McPo
Copy link

McPo commented Jan 10, 2017

Appears to be an issue running pip install python-saml.

Its due to only having the 64-bit libxmlsec1 installed.

Im running El Capitan [OS X 10.11.6 (15G1212)], the command is being executed inside a virtualenv.
I already had libxmlsec1 installed, as its a dependency for another tool I use (oauth-tools). Although Ive also tried reinstalling via the brew command reinstall as well as by uninstalling and reinstalling. I also tried passing the --universal to brew, to install the libxmlsec1 32-bit, but no luck.

I notice that i386 is passed to the build command. Is it reasonable to build the 32-bit on OSX which I believe is only 64-bit?

cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64

Cheers
Emmet

Interesting Error:

 ld: warning: ignoring file /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1-openssl.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1-openssl.dylib
    ld: warning: ignoring file /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1.dylib
    ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture i386

Full Error:

Collecting defusedxml==0.4.1 (from python-saml)
Requirement already satisfied: setuptools in ./venv/lib/python2.7/site-packages (from dm.xmlsec.binding==1.3.2->python-saml)
Requirement already satisfied: lxml>=3.0 in ./venv/lib/python2.7/site-packages (from dm.xmlsec.binding==1.3.2->python-saml)
Building wheels for collected packages: dm.xmlsec.binding
  Running setup.py bdist_wheel for dm.xmlsec.binding ... error
  Complete output from command /Users/mcp/Sources/saltdna-portal/django_api/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-build-wzjKA1/dm.xmlsec.binding/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/tmpqNTs_vpip-wheel- --python-tag cp27:
  /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.11-intel-2.7
  creating build/lib.macosx-10.11-intel-2.7/dm
  copying dm/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm
  creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec
  copying dm/xmlsec/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec
  creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/tests.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/tmpl.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  running egg_info
  writing requirements to dm.xmlsec.binding.egg-info/requires.txt
  writing dm.xmlsec.binding.egg-info/PKG-INFO
  writing namespace_packages to dm.xmlsec.binding.egg-info/namespace_packages.txt
  writing top-level names to dm.xmlsec.binding.egg-info/top_level.txt
  writing dependency_links to dm.xmlsec.binding.egg-info/dependency_links.txt
  writing requirements to dm.xmlsec.binding.egg-info/requires.txt
  writing dm.xmlsec.binding.egg-info/PKG-INFO
  writing namespace_packages to dm.xmlsec.binding.egg-info/namespace_packages.txt
  writing top-level names to dm.xmlsec.binding.egg-info/top_level.txt
  writing dependency_links to dm.xmlsec.binding.egg-info/dependency_links.txt
  reading manifest file 'dm.xmlsec.binding.egg-info/SOURCES.txt'
  writing manifest file 'dm.xmlsec.binding.egg-info/SOURCES.txt'
  copying dm/xmlsec/binding/LICENSE.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/README.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/VERSION.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/tests.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/deskey.bin -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt-element-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt1-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt1-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt2-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt2-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt3-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt3-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/rootcert.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/rsacert.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/rsakey.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/rsapub.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign1-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign1-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign2-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign2-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign3-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign3-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/verify4-bad-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/verify4-bad-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/verify4-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/verify4-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  running build_ext
  building 'dm.xmlsec.binding._xmlsec' extension
  creating build/temp.macosx-10.11-intel-2.7
  creating build/temp.macosx-10.11-intel-2.7/src
  cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_SIZE_T=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/Users/mcp/Sources/saltdna-portal/django_api/venv/lib/python2.7/site-packages/lxml -I/Users/mcp/Sources/saltdna-portal/django_api/venv/lib/python2.7/site-packages/lxml/includes -Isrc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 -I/usr/local/Cellar/libxmlsec1/1.2.20_1/include/xmlsec1 -I/usr/include/libxml2 -I/usr/local/opt/openssl/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_xmlsec.c -o build/temp.macosx-10.11-intel-2.7/src/_xmlsec.o
  src/_xmlsec.c:13502:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
  static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                  ^
  src/_xmlsec.c:13511:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
  static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                  ^
  src/_xmlsec.c:13525:29: warning: unused function '__Pyx_PyInt_AsSize_t' [-Wunused-function]
  static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
                              ^
  src/_xmlsec.c:568:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
  static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
                                 ^
  src/_xmlsec.c:588:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]
  static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
                                 ^
  src/_xmlsec.c:12788:27: warning: unused function '__Pyx_PyInt_AsChar' [-Wunused-function]
  static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
                            ^
  src/_xmlsec.c:12807:28: warning: unused function '__Pyx_PyInt_AsShort' [-Wunused-function]
  static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
                             ^
  src/_xmlsec.c:12826:26: warning: unused function '__Pyx_PyInt_AsInt' [-Wunused-function]
  static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
                           ^
  src/_xmlsec.c:12902:26: warning: unused function '__Pyx_PyInt_AsLongDouble' [-Wunused-function]
  static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
                           ^
  src/_xmlsec.c:13026:35: warning: function '__Pyx_PyInt_AsLongLong' is not needed and will not be emitted [-Wunneeded-internal-declaration]
  static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
                                    ^
  10 warnings generated.
  src/_xmlsec.c:2195:15: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    __pyx_v_n = __pyx_t_2;
              ~ ^~~~~~~~~
  src/_xmlsec.c:2915:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
          __pyx_v_key = xmlSecCryptoAppKeyLoadMemory(__pyx_v_c_data, __pyx_v_c_size, __pyx_v_c_key_data_format, __pyx_v_c_password, NULL, NULL);
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                 ^~~~~~~~~~~~~~
  src/_xmlsec.c:3334:81: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
          __pyx_v_key = xmlSecKeyReadMemory(__pyx_v_key_data->id, __pyx_v_c_data, __pyx_v_c_size);
                        ~~~~~~~~~~~~~~~~~~~                                       ^~~~~~~~~~~~~~
  src/_xmlsec.c:4623:20: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    __pyx_v_c_size = __pyx_t_1;
                   ~ ^~~~~~~~~
  src/_xmlsec.c:5676:106: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
    __pyx_v_rv = xmlSecTransformVerify(__pyx_v_ctx->signMethod, ((const xmlSecByte *)((char *)__pyx_t_3)), __pyx_t_4, (&__pyx_v_ctx->transformCtx));
                 ~~~~~~~~~~~~~~~~~~~~~                                                                     ^~~~~~~~~
  src/_xmlsec.c:6013:121: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
    __pyx_v_rv = xmlSecTransformCtxBinaryExecute((&__pyx_v_ctx->transformCtx), ((const xmlSecByte *)((char *)__pyx_t_6)), __pyx_t_7);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                          ^~~~~~~~~
  src/_xmlsec.c:6901:106: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
          __pyx_v_rv = xmlSecEncCtxBinaryEncrypt(__pyx_v_self->ctx, __pyx_v_tmpl->_c_node, __pyx_v_c_data, __pyx_v_c_size);
                       ~~~~~~~~~~~~~~~~~~~~~~~~~                                                           ^~~~~~~~~~~~~~
  src/_xmlsec.c:13502:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
  static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                  ^
  src/_xmlsec.c:13511:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
  static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                  ^
  src/_xmlsec.c:13525:29: warning: unused function '__Pyx_PyInt_AsSize_t' [-Wunused-function]
  static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
                              ^
  src/_xmlsec.c:568:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
  static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
                                 ^
  src/_xmlsec.c:588:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]
  static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
                                 ^
  src/_xmlsec.c:12788:27: warning: unused function '__Pyx_PyInt_AsChar' [-Wunused-function]
  static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
                            ^
  src/_xmlsec.c:12807:28: warning: unused function '__Pyx_PyInt_AsShort' [-Wunused-function]
  static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
                             ^
  src/_xmlsec.c:12826:26: warning: unused function '__Pyx_PyInt_AsInt' [-Wunused-function]
  static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
                           ^
  src/_xmlsec.c:12902:26: warning: unused function '__Pyx_PyInt_AsLongDouble' [-Wunused-function]
  static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
                           ^
  src/_xmlsec.c:13026:35: warning: function '__Pyx_PyInt_AsLongLong' is not needed and will not be emitted [-Wunneeded-internal-declaration]
  static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
                                    ^
  17 warnings generated.
  cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.11-intel-2.7/src/_xmlsec.o -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib -L/usr/local/Cellar/libxmlsec1/1.2.20_1/lib -L/usr/local/opt/openssl/lib -lxml2 -lz -lpthread -licucore -lm -lxmlsec1-openssl -lxmlsec1 -lxslt -lcrypto -ldl -o build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/_xmlsec.so
  ld: warning: ld: warning: ignoring file /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1-openssl.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1-openssl.dylibignoring file /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1.dylib

  ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture i386
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command 'cc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for dm.xmlsec.binding
  Running setup.py clean for dm.xmlsec.binding
Failed to build dm.xmlsec.binding
Installing collected packages: dm.xmlsec.binding, defusedxml, python-saml
  Running setup.py install for dm.xmlsec.binding ... error
    Complete output from command /Users/mcp/Sources/saltdna-portal/django_api/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-build-wzjKA1/dm.xmlsec.binding/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-68cUm3-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mcp/Sources/saltdna-portal/django_api/venv/include/site/python2.7/dm.xmlsec.binding:
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.11-intel-2.7
    creating build/lib.macosx-10.11-intel-2.7/dm
    copying dm/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm
    creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec
    copying dm/xmlsec/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec
    creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/tests.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/tmpl.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    running egg_info
    writing requirements to dm.xmlsec.binding.egg-info/requires.txt
    writing dm.xmlsec.binding.egg-info/PKG-INFO
    writing namespace_packages to dm.xmlsec.binding.egg-info/namespace_packages.txt
    writing top-level names to dm.xmlsec.binding.egg-info/top_level.txt
    writing dependency_links to dm.xmlsec.binding.egg-info/dependency_links.txt
    writing requirements to dm.xmlsec.binding.egg-info/requires.txt
    writing dm.xmlsec.binding.egg-info/PKG-INFO
    writing namespace_packages to dm.xmlsec.binding.egg-info/namespace_packages.txt
    writing top-level names to dm.xmlsec.binding.egg-info/top_level.txt
    writing dependency_links to dm.xmlsec.binding.egg-info/dependency_links.txt
    reading manifest file 'dm.xmlsec.binding.egg-info/SOURCES.txt'
    writing manifest file 'dm.xmlsec.binding.egg-info/SOURCES.txt'
    copying dm/xmlsec/binding/LICENSE.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/README.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/VERSION.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/tests.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/deskey.bin -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt-element-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt1-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt1-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt2-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt2-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt3-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt3-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/rootcert.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/rsacert.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/rsakey.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/rsapub.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign1-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign1-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign2-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign2-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign3-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign3-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/verify4-bad-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/verify4-bad-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/verify4-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/verify4-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    running build_ext
    building 'dm.xmlsec.binding._xmlsec' extension
    creating build/temp.macosx-10.11-intel-2.7
    creating build/temp.macosx-10.11-intel-2.7/src
    cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_SIZE_T=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/Users/mcp/Sources/saltdna-portal/django_api/venv/lib/python2.7/site-packages/lxml -I/Users/mcp/Sources/saltdna-portal/django_api/venv/lib/python2.7/site-packages/lxml/includes -Isrc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 -I/usr/local/Cellar/libxmlsec1/1.2.20_1/include/xmlsec1 -I/usr/include/libxml2 -I/usr/local/opt/openssl/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_xmlsec.c -o build/temp.macosx-10.11-intel-2.7/src/_xmlsec.o
    src/_xmlsec.c:13502:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
    static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                    ^
    src/_xmlsec.c:13511:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
    static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                    ^
    src/_xmlsec.c:13525:29: warning: unused function '__Pyx_PyInt_AsSize_t' [-Wunused-function]
    static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
                                ^
    src/_xmlsec.c:568:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
                                   ^
    src/_xmlsec.c:588:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
                                   ^
    src/_xmlsec.c:12788:27: warning: unused function '__Pyx_PyInt_AsChar' [-Wunused-function]
    static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
                              ^
    src/_xmlsec.c:12807:28: warning: unused function '__Pyx_PyInt_AsShort' [-Wunused-function]
    static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
                               ^
    src/_xmlsec.c:12826:26: warning: unused function '__Pyx_PyInt_AsInt' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
                             ^
    src/_xmlsec.c:12902:26: warning: unused function '__Pyx_PyInt_AsLongDouble' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
                             ^
    src/_xmlsec.c:13026:35: warning: function '__Pyx_PyInt_AsLongLong' is not needed and will not be emitted [-Wunneeded-internal-declaration]
    static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
                                      ^
    10 warnings generated.
    src/_xmlsec.c:2195:15: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
      __pyx_v_n = __pyx_t_2;
                ~ ^~~~~~~~~
    src/_xmlsec.c:2915:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
            __pyx_v_key = xmlSecCryptoAppKeyLoadMemory(__pyx_v_c_data, __pyx_v_c_size, __pyx_v_c_key_data_format, __pyx_v_c_password, NULL, NULL);
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                 ^~~~~~~~~~~~~~
    src/_xmlsec.c:3334:81: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
            __pyx_v_key = xmlSecKeyReadMemory(__pyx_v_key_data->id, __pyx_v_c_data, __pyx_v_c_size);
                          ~~~~~~~~~~~~~~~~~~~                                       ^~~~~~~~~~~~~~
    src/_xmlsec.c:4623:20: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
      __pyx_v_c_size = __pyx_t_1;
                     ~ ^~~~~~~~~
    src/_xmlsec.c:5676:106: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
      __pyx_v_rv = xmlSecTransformVerify(__pyx_v_ctx->signMethod, ((const xmlSecByte *)((char *)__pyx_t_3)), __pyx_t_4, (&__pyx_v_ctx->transformCtx));
                   ~~~~~~~~~~~~~~~~~~~~~                                                                     ^~~~~~~~~
    src/_xmlsec.c:6013:121: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
      __pyx_v_rv = xmlSecTransformCtxBinaryExecute((&__pyx_v_ctx->transformCtx), ((const xmlSecByte *)((char *)__pyx_t_6)), __pyx_t_7);
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                          ^~~~~~~~~
    src/_xmlsec.c:6901:106: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
            __pyx_v_rv = xmlSecEncCtxBinaryEncrypt(__pyx_v_self->ctx, __pyx_v_tmpl->_c_node, __pyx_v_c_data, __pyx_v_c_size);
                         ~~~~~~~~~~~~~~~~~~~~~~~~~                                                           ^~~~~~~~~~~~~~
    src/_xmlsec.c:13502:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
    static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                    ^
    src/_xmlsec.c:13511:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
    static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                    ^
    src/_xmlsec.c:13525:29: warning: unused function '__Pyx_PyInt_AsSize_t' [-Wunused-function]
    static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
                                ^
    src/_xmlsec.c:568:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
                                   ^
    src/_xmlsec.c:588:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
                                   ^
    src/_xmlsec.c:12788:27: warning: unused function '__Pyx_PyInt_AsChar' [-Wunused-function]
    static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
                              ^
    src/_xmlsec.c:12807:28: warning: unused function '__Pyx_PyInt_AsShort' [-Wunused-function]
    static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
                               ^
    src/_xmlsec.c:12826:26: warning: unused function '__Pyx_PyInt_AsInt' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
                             ^
    src/_xmlsec.c:12902:26: warning: unused function '__Pyx_PyInt_AsLongDouble' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
                             ^
    src/_xmlsec.c:13026:35: warning: function '__Pyx_PyInt_AsLongLong' is not needed and will not be emitted [-Wunneeded-internal-declaration]
    static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
                                      ^
    17 warnings generated.
    cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.11-intel-2.7/src/_xmlsec.o -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib -L/usr/local/Cellar/libxmlsec1/1.2.20_1/lib -L/usr/local/opt/openssl/lib -lxml2 -lz -lpthread -licucore -lm -lxmlsec1-openssl -lxmlsec1 -lxslt -lcrypto -ldl -o build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/_xmlsec.so
    ld: warning: ignoring file /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1-openssl.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1-openssl.dylib
    ld: warning: ignoring file /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/libxmlsec1/1.2.20_1/lib/libxmlsec1.dylib
    ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'cc' failed with exit status 1

    ----------------------------------------
Command "/Users/mcp/Sources/saltdna-portal/django_api/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-build-wzjKA1/dm.xmlsec.binding/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-68cUm3-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mcp/Sources/saltdna-portal/django_api/venv/include/site/python2.7/dm.xmlsec.binding" failed with error code 1 in /private/var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-build-wzjKA1/dm.xmlsec.binding/
(venv) mcp-air:django_api mcp$
@McPo
Copy link
Author

McPo commented Jan 10, 2017

Got around the arch issues via

export ARCHFLAGS='-arch x86_64'
pip install python-saml

It no longer complains about archs but still fails. The crucial issue though is:

 ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture i386

which is supposedly caused by having XCode version Version 8.2.1 (8C1002) on El Capitan (ie need to update to Sierra)

Collecting python-saml
  Using cached python_saml-2.2.0-py2-none-any.whl
Requirement already satisfied: isodate>=0.5.0 in ./site-packages (from python-saml)
Collecting dm.xmlsec.binding==1.3.2 (from python-saml)
  Using cached dm.xmlsec.binding-1.3.2.tar.gz
Collecting defusedxml==0.4.1 (from python-saml)
Requirement already satisfied: setuptools in ./site-packages (from dm.xmlsec.binding==1.3.2->python-saml)
Requirement already satisfied: lxml>=3.0 in ./site-packages (from dm.xmlsec.binding==1.3.2->python-saml)
Building wheels for collected packages: dm.xmlsec.binding
  Running setup.py bdist_wheel for dm.xmlsec.binding ... error
  Complete output from command /Users/mcp/Sources/saltdna-portal/django_api/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-build-8HcVhs/dm.xmlsec.binding/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/tmpa0_cvZpip-wheel- --python-tag cp27:
  /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.11-intel-2.7
  creating build/lib.macosx-10.11-intel-2.7/dm
  copying dm/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm
  creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec
  copying dm/xmlsec/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec
  creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/tests.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/tmpl.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  running egg_info
  writing requirements to dm.xmlsec.binding.egg-info/requires.txt
  writing dm.xmlsec.binding.egg-info/PKG-INFO
  writing namespace_packages to dm.xmlsec.binding.egg-info/namespace_packages.txt
  writing top-level names to dm.xmlsec.binding.egg-info/top_level.txt
  writing dependency_links to dm.xmlsec.binding.egg-info/dependency_links.txt
  writing requirements to dm.xmlsec.binding.egg-info/requires.txt
  writing dm.xmlsec.binding.egg-info/PKG-INFO
  writing namespace_packages to dm.xmlsec.binding.egg-info/namespace_packages.txt
  writing top-level names to dm.xmlsec.binding.egg-info/top_level.txt
  writing dependency_links to dm.xmlsec.binding.egg-info/dependency_links.txt
  reading manifest file 'dm.xmlsec.binding.egg-info/SOURCES.txt'
  writing manifest file 'dm.xmlsec.binding.egg-info/SOURCES.txt'
  copying dm/xmlsec/binding/LICENSE.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/README.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/VERSION.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  copying dm/xmlsec/binding/tests.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
  creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/deskey.bin -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt-element-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt1-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt1-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt2-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt2-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt3-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/encrypt3-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/rootcert.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/rsacert.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/rsakey.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/rsapub.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign1-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign1-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign2-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign2-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign3-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/sign3-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/verify4-bad-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/verify4-bad-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/verify4-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  copying dm/xmlsec/binding/resources/verify4-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
  running build_ext
  building 'dm.xmlsec.binding._xmlsec' extension
  creating build/temp.macosx-10.11-intel-2.7
  creating build/temp.macosx-10.11-intel-2.7/src
  cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_SIZE_T=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/Users/mcp/Sources/saltdna-portal/django_api/venv/lib/python2.7/site-packages/lxml -I/Users/mcp/Sources/saltdna-portal/django_api/venv/lib/python2.7/site-packages/lxml/includes -Isrc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 -I/usr/local/Cellar/libxmlsec1/1.2.20_1/include/xmlsec1 -I/usr/include/libxml2 -I/usr/local/opt/openssl/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_xmlsec.c -o build/temp.macosx-10.11-intel-2.7/src/_xmlsec.o
  src/_xmlsec.c:2195:15: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    __pyx_v_n = __pyx_t_2;
              ~ ^~~~~~~~~
  src/_xmlsec.c:2915:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
          __pyx_v_key = xmlSecCryptoAppKeyLoadMemory(__pyx_v_c_data, __pyx_v_c_size, __pyx_v_c_key_data_format, __pyx_v_c_password, NULL, NULL);
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                 ^~~~~~~~~~~~~~
  src/_xmlsec.c:3334:81: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
          __pyx_v_key = xmlSecKeyReadMemory(__pyx_v_key_data->id, __pyx_v_c_data, __pyx_v_c_size);
                        ~~~~~~~~~~~~~~~~~~~                                       ^~~~~~~~~~~~~~
  src/_xmlsec.c:4623:20: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
    __pyx_v_c_size = __pyx_t_1;
                   ~ ^~~~~~~~~
  src/_xmlsec.c:5676:106: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
    __pyx_v_rv = xmlSecTransformVerify(__pyx_v_ctx->signMethod, ((const xmlSecByte *)((char *)__pyx_t_3)), __pyx_t_4, (&__pyx_v_ctx->transformCtx));
                 ~~~~~~~~~~~~~~~~~~~~~                                                                     ^~~~~~~~~
  src/_xmlsec.c:6013:121: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
    __pyx_v_rv = xmlSecTransformCtxBinaryExecute((&__pyx_v_ctx->transformCtx), ((const xmlSecByte *)((char *)__pyx_t_6)), __pyx_t_7);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                          ^~~~~~~~~
  src/_xmlsec.c:6901:106: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
          __pyx_v_rv = xmlSecEncCtxBinaryEncrypt(__pyx_v_self->ctx, __pyx_v_tmpl->_c_node, __pyx_v_c_data, __pyx_v_c_size);
                       ~~~~~~~~~~~~~~~~~~~~~~~~~                                                           ^~~~~~~~~~~~~~
  src/_xmlsec.c:13502:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
  static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                  ^
  src/_xmlsec.c:13511:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
  static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                  ^
  src/_xmlsec.c:13525:29: warning: unused function '__Pyx_PyInt_AsSize_t' [-Wunused-function]
  static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
                              ^
  src/_xmlsec.c:568:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
  static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
                                 ^
  src/_xmlsec.c:588:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]
  static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
                                 ^
  src/_xmlsec.c:12788:27: warning: unused function '__Pyx_PyInt_AsChar' [-Wunused-function]
  static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
                            ^
  src/_xmlsec.c:12807:28: warning: unused function '__Pyx_PyInt_AsShort' [-Wunused-function]
  static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
                             ^
  src/_xmlsec.c:12826:26: warning: unused function '__Pyx_PyInt_AsInt' [-Wunused-function]
  static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
                           ^
  src/_xmlsec.c:12902:26: warning: unused function '__Pyx_PyInt_AsLongDouble' [-Wunused-function]
  static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
                           ^
  src/_xmlsec.c:13026:35: warning: function '__Pyx_PyInt_AsLongLong' is not needed and will not be emitted [-Wunneeded-internal-declaration]
  static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
                                    ^
  17 warnings generated.
  cc -bundle -undefined dynamic_lookup -Wl,-F. -arch x86_64 build/temp.macosx-10.11-intel-2.7/src/_xmlsec.o -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib -L/usr/local/Cellar/libxmlsec1/1.2.20_1/lib -L/usr/local/opt/openssl/lib -lxml2 -lz -lpthread -licucore -lm -lxmlsec1-openssl -lxmlsec1 -lxslt -lcrypto -ldl -o build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/_xmlsec.so
  ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command 'cc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for dm.xmlsec.binding
  Running setup.py clean for dm.xmlsec.binding
Failed to build dm.xmlsec.binding
Installing collected packages: dm.xmlsec.binding, defusedxml, python-saml
  Running setup.py install for dm.xmlsec.binding ... error
    Complete output from command /Users/mcp/Sources/saltdna-portal/django_api/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-build-8HcVhs/dm.xmlsec.binding/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-6Me7eV-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mcp/Sources/saltdna-portal/django_api/venv/include/site/python2.7/dm.xmlsec.binding:
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.11-intel-2.7
    creating build/lib.macosx-10.11-intel-2.7/dm
    copying dm/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm
    creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec
    copying dm/xmlsec/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec
    creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/__init__.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/tests.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/tmpl.py -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    running egg_info
    writing requirements to dm.xmlsec.binding.egg-info/requires.txt
    writing dm.xmlsec.binding.egg-info/PKG-INFO
    writing namespace_packages to dm.xmlsec.binding.egg-info/namespace_packages.txt
    writing top-level names to dm.xmlsec.binding.egg-info/top_level.txt
    writing dependency_links to dm.xmlsec.binding.egg-info/dependency_links.txt
    writing requirements to dm.xmlsec.binding.egg-info/requires.txt
    writing dm.xmlsec.binding.egg-info/PKG-INFO
    writing namespace_packages to dm.xmlsec.binding.egg-info/namespace_packages.txt
    writing top-level names to dm.xmlsec.binding.egg-info/top_level.txt
    writing dependency_links to dm.xmlsec.binding.egg-info/dependency_links.txt
    reading manifest file 'dm.xmlsec.binding.egg-info/SOURCES.txt'
    writing manifest file 'dm.xmlsec.binding.egg-info/SOURCES.txt'
    copying dm/xmlsec/binding/LICENSE.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/README.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/VERSION.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    copying dm/xmlsec/binding/tests.txt -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding
    creating build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/deskey.bin -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt-element-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt1-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt1-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt2-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt2-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt3-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/encrypt3-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/rootcert.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/rsacert.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/rsakey.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/rsapub.pem -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign1-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign1-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign2-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign2-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign3-doc.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/sign3-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/verify4-bad-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/verify4-bad-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/verify4-res.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    copying dm/xmlsec/binding/resources/verify4-tmpl.xml -> build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/resources
    running build_ext
    building 'dm.xmlsec.binding._xmlsec' extension
    creating build/temp.macosx-10.11-intel-2.7
    creating build/temp.macosx-10.11-intel-2.7/src
    cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_SIZE_T=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/Users/mcp/Sources/saltdna-portal/django_api/venv/lib/python2.7/site-packages/lxml -I/Users/mcp/Sources/saltdna-portal/django_api/venv/lib/python2.7/site-packages/lxml/includes -Isrc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 -I/usr/local/Cellar/libxmlsec1/1.2.20_1/include/xmlsec1 -I/usr/include/libxml2 -I/usr/local/opt/openssl/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_xmlsec.c -o build/temp.macosx-10.11-intel-2.7/src/_xmlsec.o
    src/_xmlsec.c:2195:15: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
      __pyx_v_n = __pyx_t_2;
                ~ ^~~~~~~~~
    src/_xmlsec.c:2915:68: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
            __pyx_v_key = xmlSecCryptoAppKeyLoadMemory(__pyx_v_c_data, __pyx_v_c_size, __pyx_v_c_key_data_format, __pyx_v_c_password, NULL, NULL);
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                 ^~~~~~~~~~~~~~
    src/_xmlsec.c:3334:81: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
            __pyx_v_key = xmlSecKeyReadMemory(__pyx_v_key_data->id, __pyx_v_c_data, __pyx_v_c_size);
                          ~~~~~~~~~~~~~~~~~~~                                       ^~~~~~~~~~~~~~
    src/_xmlsec.c:4623:20: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
      __pyx_v_c_size = __pyx_t_1;
                     ~ ^~~~~~~~~
    src/_xmlsec.c:5676:106: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
      __pyx_v_rv = xmlSecTransformVerify(__pyx_v_ctx->signMethod, ((const xmlSecByte *)((char *)__pyx_t_3)), __pyx_t_4, (&__pyx_v_ctx->transformCtx));
                   ~~~~~~~~~~~~~~~~~~~~~                                                                     ^~~~~~~~~
    src/_xmlsec.c:6013:121: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
      __pyx_v_rv = xmlSecTransformCtxBinaryExecute((&__pyx_v_ctx->transformCtx), ((const xmlSecByte *)((char *)__pyx_t_6)), __pyx_t_7);
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                          ^~~~~~~~~
    src/_xmlsec.c:6901:106: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
            __pyx_v_rv = xmlSecEncCtxBinaryEncrypt(__pyx_v_self->ctx, __pyx_v_tmpl->_c_node, __pyx_v_c_data, __pyx_v_c_size);
                         ~~~~~~~~~~~~~~~~~~~~~~~~~                                                           ^~~~~~~~~~~~~~
    src/_xmlsec.c:13502:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
    static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                    ^
    src/_xmlsec.c:13511:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
    static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                    ^
    src/_xmlsec.c:13525:29: warning: unused function '__Pyx_PyInt_AsSize_t' [-Wunused-function]
    static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
                                ^
    src/_xmlsec.c:568:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
                                   ^
    src/_xmlsec.c:588:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
                                   ^
    src/_xmlsec.c:12788:27: warning: unused function '__Pyx_PyInt_AsChar' [-Wunused-function]
    static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
                              ^
    src/_xmlsec.c:12807:28: warning: unused function '__Pyx_PyInt_AsShort' [-Wunused-function]
    static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
                               ^
    src/_xmlsec.c:12826:26: warning: unused function '__Pyx_PyInt_AsInt' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
                             ^
    src/_xmlsec.c:12902:26: warning: unused function '__Pyx_PyInt_AsLongDouble' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
                             ^
    src/_xmlsec.c:13026:35: warning: function '__Pyx_PyInt_AsLongLong' is not needed and will not be emitted [-Wunneeded-internal-declaration]
    static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
                                      ^
    17 warnings generated.
    cc -bundle -undefined dynamic_lookup -Wl,-F. -arch x86_64 build/temp.macosx-10.11-intel-2.7/src/_xmlsec.o -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib -L/usr/local/Cellar/libxmlsec1/1.2.20_1/lib -L/usr/local/opt/openssl/lib -lxml2 -lz -lpthread -licucore -lm -lxmlsec1-openssl -lxmlsec1 -lxslt -lcrypto -ldl -o build/lib.macosx-10.11-intel-2.7/dm/xmlsec/binding/_xmlsec.so
    ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'cc' failed with exit status 1

    ----------------------------------------
Command "/Users/mcp/Sources/saltdna-portal/django_api/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-build-8HcVhs/dm.xmlsec.binding/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-6Me7eV-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mcp/Sources/saltdna-portal/django_api/venv/include/site/python2.7/dm.xmlsec.binding" failed with error code 1 in /private/var/folders/8g/v0_f7vtd09x0j2zg8kv2lk9w0000gn/T/pip-build-8HcVhs/dm.xmlsec.binding/

@pitbulk
Copy link
Contributor

pitbulk commented Jan 10, 2017

Have you reviewed that thread?
#30

@McPo
Copy link
Author

McPo commented Jan 10, 2017

@pitbulk Thanks, I did notice that issue however it was related to Linux and isn't comparable with OSX. As OSX is only 64-bit and doesn't have the dev packages.

I initially thought this issue was caused by attempting to build 32-bit on OSX.
However that warning wasn't indicative of the actual error. The error was caused by Apple choosing not to fully support XCode 8 on ElCapitan.

I followed the advice here http://stackoverflow.com/a/40315953/1167880, and it corrected the issue.
I was initially hesitant to execute the script as it removes references to that file. It appears to be generally unused but XCode complains about it missing.

I also thought it might have required disabling system integrity protection (Which I was also hesitant about), but it doesn't. If it turns out to an issue later, a reinstall of XCode should correct it.

Everyone is up and working.

Thanks,
Emmet

@McPo McPo closed this as completed Jan 10, 2017
@jerkyrs
Copy link

jerkyrs commented Oct 26, 2017

This worked for me on Centos 7 venv many issues with LXML / Xmlsec.binding but this seems to be the root cause of it

export ARCHFLAGS='-arch x86_64' pip install pysaml2==3.0.0

I was getting this error beforehand
ImportError: lxml.etree does not export expected C function adoptExternalDocument
See this other thread referenced earlier
30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants