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

Installation fails on MacOSX Catalina #26

Open
danosipov opened this issue Aug 9, 2021 · 1 comment
Open

Installation fails on MacOSX Catalina #26

danosipov opened this issue Aug 9, 2021 · 1 comment

Comments

@danosipov
Copy link

clang throws an error when building with $ pip3 install sasl --user

Collecting sasl
  Using cached sasl-0.3.1.tar.gz (44 kB)
Requirement already satisfied: six in ./Library/Python/3.7/lib/python/site-packages (from sasl) (1.12.0)
Building wheels for collected packages: sasl
  Building wheel for sasl (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.7/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hb/qbzw6tfn78v65x7f_lf7gmlr0000gn/T/pip-install-efz1sqam/sasl_1792f7557ae44913bb2549d112e3810e/setup.py'"'"'; __file__='"'"'/private/var/folders/hb/qbzw6tfn78v65x7f_lf7gmlr0000gn/T/pip-install-efz1sqam/sasl_1792f7557ae44913bb2549d112e3810e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/hb/qbzw6tfn78v65x7f_lf7gmlr0000gn/T/pip-wheel-rw6ra_jn
       cwd: /private/var/folders/hb/qbzw6tfn78v65x7f_lf7gmlr0000gn/T/pip-install-efz1sqam/sasl_1792f7557ae44913bb2549d112e3810e/
  Complete output (33 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.15-x86_64-3.7
  creating build/lib.macosx-10.15-x86_64-3.7/sasl
  copying sasl/__init__.py -> build/lib.macosx-10.15-x86_64-3.7/sasl
  running egg_info
  writing sasl.egg-info/PKG-INFO
  writing dependency_links to sasl.egg-info/dependency_links.txt
  writing requirements to sasl.egg-info/requires.txt
  writing top-level names to sasl.egg-info/top_level.txt
  reading manifest file 'sasl.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE.txt'
  writing manifest file 'sasl.egg-info/SOURCES.txt'
  copying sasl/saslwrapper.cpp -> build/lib.macosx-10.15-x86_64-3.7/sasl
  copying sasl/saslwrapper.h -> build/lib.macosx-10.15-x86_64-3.7/sasl
  copying sasl/saslwrapper.pyx -> build/lib.macosx-10.15-x86_64-3.7/sasl
  running build_ext
  building 'sasl.saslwrapper' extension
  creating build/temp.macosx-10.15-x86_64-3.7
  creating build/temp.macosx-10.15-x86_64-3.7/sasl
  /usr/local/bin/gcc-4.9 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Isasl -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.7/3.7.11/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c sasl/saslwrapper.cpp -o build/temp.macosx-10.15-x86_64-3.7/sasl/saslwrapper.o
  In file included from sasl/saslwrapper.cpp:629:0:
  sasl/saslwrapper.h: In member function 'void saslwrapper::ClientImpl::interact(sasl_interact_t*)':
  sasl/saslwrapper.h:437:11: warning: unused variable 'input' [-Wunused-variable]
       char* input;
             ^
  clang++ -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk build/temp.macosx-10.15-x86_64-3.7/sasl/saslwrapper.o -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -lsasl2 -o build/lib.macosx-10.15-x86_64-3.7/sasl/saslwrapper.cpython-37m-darwin.so
  clang: error: unable to execute command: posix_spawn failed: Argument list too long
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command 'clang++' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for sasl
  Running setup.py clean for sasl
Failed to build sasl
@danosipov
Copy link
Author

oddly enough, $ sudo pip3 install sasl works.

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

1 participant