Skip to content

Instantly share code, notes, and snippets.

@iancze
Created February 22, 2020 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iancze/97bbb37b5acf5e4cef77a8b9dee159de to your computer and use it in GitHub Desktop.
Save iancze/97bbb37b5acf5e4cef77a8b9dee159de to your computer and use it in GitHub Desktop.
(finufft_install) ➜ finufft git:(master) ✗ make python3
g++ -c -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp src/spreadinterp.cpp -o src/spreadinterp.o
g++ -c -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp src/utils.cpp -o src/utils.o
g++ -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp -c -o src/finufft1d.o src/finufft1d.cpp
g++ -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp -c -o src/finufft2d.o src/finufft2d.cpp
g++ -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp -c -o src/finufft3d.o src/finufft3d.cpp
g++ -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp -c -o src/dirft1d.o src/dirft1d.cpp
g++ -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp -c -o src/dirft2d.o src/dirft2d.cpp
g++ -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp -c -o src/dirft3d.o src/dirft3d.cpp
g++ -c -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp src/common.cpp -o src/common.o
gcc -c -fPIC -O3 -I src -Xpreprocessor -fopenmp contrib/legendre_rule_fast.c -o contrib/legendre_rule_fast.o
g++ -c -fPIC -O3 -I src -Xpreprocessor -fopenmp -DNEED_EXTERN_C -Xpreprocessor -fopenmp fortran/finufft_f.cpp -o fortran/finufft_f.o
ar rcs lib-static/libfinufft.a src/spreadinterp.o src/utils.o src/finufft1d.o src/finufft2d.o src/finufft3d.o src/dirft1d.o src/dirft2d.o src/dirft3d.o src/common.o contrib/legendre_rule_fast.o fortran/finufft_f.o
pip3 install .
Processing /Users/ian/Documents/Programming/Python/finufft
Requirement already satisfied: numpy in /Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages (from finufftpy==1.1.1) (1.18.1)
Requirement already satisfied: pybind11>=2.2 in /Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages (from finufftpy==1.1.1) (2.4.3)
Installing collected packages: finufftpy
Running setup.py install for finufftpy ... error
ERROR: Command errored out with exit status 1:
command: /Users/ian/Documents/Programming/Python/finufft_install/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-e5jxuz6y/setup.py'"'"'; __file__='"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-e5jxuz6y/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/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-record-hd33kh6t/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8/finufftpy
cwd: /private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-e5jxuz6y/
Complete output (24 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/finufftpy
copying finufftpy/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/finufftpy
copying finufftpy/_interfaces.py -> build/lib.macosx-10.9-x86_64-3.8/finufftpy
running build_ext
creating var
creating var/folders
creating var/folders/2l
creating var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn
creating var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/ian/Documents/Programming/Python/finufft_install/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c /var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmp7v3updpp.cpp -o var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmp7v3updpp.o -std=c++14
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/ian/Documents/Programming/Python/finufft_install/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c /var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpvoomv4aq.cpp -o var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpvoomv4aq.o -fvisibility=hidden
building 'finufftpy_cpp' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/finufftpy
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8 -I/Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8 -Isrc -I/Users/ian/Documents/Programming/Python/finufft_install/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c finufftpy/finufftpy.cpp -o build/temp.macosx-10.9-x86_64-3.8/finufftpy/finufftpy.o -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO="1.1.1" -std=c++14 -fvisibility=hidden
g++ -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-3.8/finufftpy/finufftpy.o lib-static/libfinufft.a -lfftw3 -lfftw3_threads -lgomp -o build/lib.macosx-10.9-x86_64-3.8/finufftpy_cpp.cpython-38-darwin.so -fPIC
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ian/Documents/Programming/Python/finufft_install/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-e5jxuz6y/setup.py'"'"'; __file__='"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-e5jxuz6y/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/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-record-hd33kh6t/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8/finufftpy Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
make: *** [python3] Error 1
Trying with pip3 install instead
(finufft_install) ➜ finufft git:(master) ✗ pip3 install .
Processing /Users/ian/Documents/Programming/Python/finufft
Requirement already satisfied: numpy in /Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages (from finufftpy==1.1.1) (1.18.1)
Requirement already satisfied: pybind11>=2.2 in /Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages (from finufftpy==1.1.1) (2.4.3)
Installing collected packages: finufftpy
Running setup.py install for finufftpy ... error
ERROR: Command errored out with exit status 1:
command: /Users/ian/Documents/Programming/Python/finufft_install/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-5rk4b2um/setup.py'"'"'; __file__='"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-5rk4b2um/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/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-record-brdd38vs/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8/finufftpy
cwd: /private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-5rk4b2um/
Complete output (24 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/finufftpy
copying finufftpy/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/finufftpy
copying finufftpy/_interfaces.py -> build/lib.macosx-10.9-x86_64-3.8/finufftpy
running build_ext
creating var
creating var/folders
creating var/folders/2l
creating var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn
creating var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/ian/Documents/Programming/Python/finufft_install/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c /var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpk_tv_pxx.cpp -o var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpk_tv_pxx.o -std=c++14
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/ian/Documents/Programming/Python/finufft_install/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c /var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpktel9zm9.cpp -o var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpktel9zm9.o -fvisibility=hidden
building 'finufftpy_cpp' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/finufftpy
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8 -I/Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8 -Isrc -I/Users/ian/Documents/Programming/Python/finufft_install/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c finufftpy/finufftpy.cpp -o build/temp.macosx-10.9-x86_64-3.8/finufftpy/finufftpy.o -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO="1.1.1" -std=c++14 -fvisibility=hidden
g++ -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-3.8/finufftpy/finufftpy.o lib-static/libfinufft.a -lfftw3 -lfftw3_threads -lgomp -o build/lib.macosx-10.9-x86_64-3.8/finufftpy_cpp.cpython-38-darwin.so -fPIC
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ian/Documents/Programming/Python/finufft_install/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-5rk4b2um/setup.py'"'"'; __file__='"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-5rk4b2um/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/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-record-brdd38vs/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8/finufftpy Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
making sure that libomp was installed
(finufft_install) ➜ finufft git:(master) ✗ brew install libomp
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Deleted Formulae
sshrc
Warning: libomp 9.0.1 is already installed and up-to-date
To reinstall 9.0.1, run `brew reinstall libomp`
# editing to gcc-8 and trying again
(finufft_install) ➜ finufft git:(master) ✗ open setup.py
(finufft_install) ➜ finufft git:(master) ✗ make python3
pip3 install .
Processing /Users/ian/Documents/Programming/Python/finufft
Requirement already satisfied: numpy in /Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages (from finufftpy==1.1.1) (1.18.1)
Requirement already satisfied: pybind11>=2.2 in /Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages (from finufftpy==1.1.1) (2.4.3)
Installing collected packages: finufftpy
Running setup.py install for finufftpy ... error
ERROR: Command errored out with exit status 1:
command: /Users/ian/Documents/Programming/Python/finufft_install/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-dryxkj7f/setup.py'"'"'; __file__='"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-dryxkj7f/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/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-record-_iwuob0k/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8/finufftpy
cwd: /private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-dryxkj7f/
Complete output (53 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/finufftpy
copying finufftpy/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/finufftpy
copying finufftpy/_interfaces.py -> build/lib.macosx-10.9-x86_64-3.8/finufftpy
running build_ext
creating var
creating var/folders
creating var/folders/2l
creating var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn
creating var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T
gcc-8 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/ian/Documents/Programming/Python/finufft_install/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c /var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpa03xefx0.cpp -o var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpa03xefx0.o -std=c++14
unable to execute 'gcc-8': No such file or directory
gcc-8 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/ian/Documents/Programming/Python/finufft_install/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c /var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpyj_4y3qu.cpp -o var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/tmpyj_4y3qu.o -std=c++11
unable to execute 'gcc-8': No such file or directory
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-dryxkj7f/setup.py", line 133, in <module>
setup(
File "/Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ian/Documents/Programming/Python/finufft_install/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-dryxkj7f/setup.py", line 122, in build_extensions
opts.append(cpp_flag(self.compiler)) # AHB: C++11 not used now, but David Stein says needed.
File "/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-dryxkj7f/setup.py", line 100, in cpp_flag
raise RuntimeError('Unsupported compiler -- at least C++11 support '
RuntimeError: Unsupported compiler -- at least C++11 support is needed!
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ian/Documents/Programming/Python/finufft_install/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-dryxkj7f/setup.py'"'"'; __file__='"'"'/private/var/folders/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-req-build-dryxkj7f/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/2l/wgjx7ly12qg9f6whx9jy5_wh0000gn/T/pip-record-_iwuob0k/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ian/Documents/Programming/Python/finufft_install/include/site/python3.8/finufftpy Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
make: *** [python3] Error 1
(finufft_install) ➜ finufft git:(master) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment