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

Getting "compiling with an SDK that doesn't seem to exist" error #29

Open
orkunkl opened this issue Oct 11, 2019 · 1 comment
Open

Getting "compiling with an SDK that doesn't seem to exist" error #29

orkunkl opened this issue Oct 11, 2019 · 1 comment

Comments

@orkunkl
Copy link
Contributor

orkunkl commented Oct 11, 2019

Installation of ledger application release fails on latest osx distributions(MacOSX10.14.sdk) due to a bug in hidapi software.

Here is the error output:

  Compiling with an SDK that doesn't seem to exist: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
  Please check your Xcode installation
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -framework IOKit -framework CoreFoundation -Ihidapi/hidapi -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/iov_ledger_app_install.LnsWGVsIf/iov-ledger/include -I/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c hid.c -o build/temp.macosx-10.14-x86_64-3.7/hid.o
  clang: warning: -framework IOKit: 'linker' input unused [-Wunused-command-line-argument]
  clang: warning: -framework CoreFoundation: 'linker' input unused [-Wunused-command-line-argument]
  clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]
  In file included from hid.c:4:
  /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:25:10: fatal error: 'stdio.h' file not found
  #include <stdio.h>
           ^~~~~~~~~
  1 error generated.
  error: command 'clang' failed with exit status 1

  ----------------------------------------
  Failed building wheel for hidapi
  Running setup.py clean for hidapi
Failed to build hidapi
Installing collected packages: urllib3, idna, certifi, chardet, requests, hidapi, python-u2flib-host, future, six, protobuf, pycryptodomex, pillow, websocket-client, ecpy, ledgerblue
  Running setup.py install for hidapi ... error
    Complete output from command /private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/iov_ledger_app_install.LnsWGVsIf/iov-ledger/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/pip-install-uo8geo2_/hidapi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/pip-record-vnh_9qgz/install-record.txt --single-version-externally-managed --compile --install-headers /private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/iov_ledger_app_install.LnsWGVsIf/iov-ledger/include/site/python3.7/hidapi:
    running install
    running build
    running build_ext
    skipping 'hid.c' Cython extension (up-to-date)
    building 'hid' extension
    creating build
    creating build/temp.macosx-10.14-x86_64-3.7
    creating build/temp.macosx-10.14-x86_64-3.7/hidapi
    creating build/temp.macosx-10.14-x86_64-3.7/hidapi/mac
    Compiling with an SDK that doesn't seem to exist: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
    Please check your Xcode installation
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -framework IOKit -framework CoreFoundation -Ihidapi/hidapi -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/iov_ledger_app_install.LnsWGVsIf/iov-ledger/include -I/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c hid.c -o build/temp.macosx-10.14-x86_64-3.7/hid.o
    clang: warning: -framework IOKit: 'linker' input unused [-Wunused-command-line-argument]
    clang: warning: -framework CoreFoundation: 'linker' input unused [-Wunused-command-line-argument]
    clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]
    In file included from hid.c:4:
    /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:25:10: fatal error: 'stdio.h' file not found
    #include <stdio.h>
             ^~~~~~~~~
    1 error generated.
    error: command 'clang' failed with exit status 1

    ----------------------------------------
Command "/private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/iov_ledger_app_install.LnsWGVsIf/iov-ledger/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/pip-install-uo8geo2_/hidapi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/pip-record-vnh_9qgz/install-record.txt --single-version-externally-managed --compile --install-headers /private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/iov_ledger_app_install.LnsWGVsIf/iov-ledger/include/site/python3.7/hidapi" failed with error code 1 in /private/var/folders/wj/0r7t6rjs7kq_vgktqcqfxj6c0000gn/T/pip-install-uo8geo2_/hidapi/

You can follow the current progress of the issue on:

@jleni
Copy link
Contributor

jleni commented Feb 14, 2020

It seems that this is not an issue anymore. Could you confirm?

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

2 participants