{"action":"created","issue":{"url":"https://api.github.com/repos/termux/termux-packages/issues/605","repository_url":"https://api.github.com/repos/termux/termux-packages","labels_url":"https://api.github.com/repos/termux/termux-packages/issues/605/labels{/name}","comments_url":"https://api.github.com/repos/termux/termux-packages/issues/605/comments","events_url":"https://api.github.com/repos/termux/termux-packages/issues/605/events","html_url":"https://github.com/termux/termux-packages/issues/605","id":196691527,"number":605,"title":"PyFFTW cannot be installed because of the way fftw was compiled.","user":{"login":"tigran123","id":1933903,"avatar_url":"https://avatars.githubusercontent.com/u/1933903?v=3","gravatar_id":"","url":"https://api.github.com/users/tigran123","html_url":"https://github.com/tigran123","followers_url":"https://api.github.com/users/tigran123/followers","following_url":"https://api.github.com/users/tigran123/following{/other_user}","gists_url":"https://api.github.com/users/tigran123/gists{/gist_id}","starred_url":"https://api.github.com/users/tigran123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tigran123/subscriptions","organizations_url":"https://api.github.com/users/tigran123/orgs","repos_url":"https://api.github.com/users/tigran123/repos","events_url":"https://api.github.com/users/tigran123/events{/privacy}","received_events_url":"https://api.github.com/users/tigran123/received_events","type":"User","site_admin":false},"labels":[{"id":223831282,"url":"https://api.github.com/repos/termux/termux-packages/labels/bug%20report","name":"bug report","color":"fc2929","default":false},{"id":456727659,"url":"https://api.github.com/repos/termux/termux-packages/labels/python","name":"python","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-12-20T14:51:27Z","updated_at":"2016-12-22T20:06:18Z","closed_at":null,"body":"If I try to install PyFFTW package via `pip install PyFFW` I get:\r\n\r\n```\r\n    gcc -shared -L/data/data/com.termux/files/usr/lib -march=armv7-a -Wl,--fix-cortex-a8 -landroid-support build/temp.linux-armv7l-3.5/data/data/com.termux/files/home/tmp/pip-build-p1gdj34y/pyFFTW/pyfftw/pyfftw.o -L/data/data/com.termux/files/usr/lib -lfftw3 -lfftw3f -lfftw3l -lfftw3_threads -lfftw3f_threads -lfftw3l_threads -lpython3.5m -o build/lib.linux-armv7l-3.5/pyfftw/pyfftw.cpython-35m-arm-linux-gnueabi.so\r\n    /data/data/com.termux/files/usr/bin/ld: cannot find -lfftw3f\r\n    /data/data/com.termux/files/usr/bin/ld: cannot find -lfftw3l\r\n    /data/data/com.termux/files/usr/bin/ld: cannot find -lfftw3_threads\r\n    /data/data/com.termux/files/usr/bin/ld: cannot find -lfftw3f_threads\r\n    /data/data/com.termux/files/usr/bin/ld: cannot find -lfftw3l_threads\r\n    clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)\r\n    error: command 'gcc' failed with exit status 1\r\n```\r\n\r\nAnd, indeed, the multithreaded, single and long-double versions of the library are missing:\r\n\r\n```\r\n$ l $PREFIX/lib/*fftw*\r\nlrwxrwxrwx 1 u0_a119 u0_a119     17 Dec 20 14:44 /data/data/com.termux/files/usr/lib/libfftw3.so -> libfftw3.so.3.5.5\r\nlrwxrwxrwx 1 u0_a119 u0_a119     17 Dec 20 14:44 /data/data/com.termux/files/usr/lib/libfftw3.so.3 -> libfftw3.so.3.5.5\r\n-rwxr-x--- 1 u0_a119 u0_a119 628004 Oct 19 23:46 /data/data/com.termux/files/usr/lib/libfftw3.so.3.5.5\r\n```\r\n\r\nNow, I haven't tested this, but presumably, adding these to `./configure` invocation should solve the problem:\r\n\r\n```\r\n./configure --enable-threads --enable-float --enable-threads --enable-long-double\r\n```\r\n\r\nThe reason why this is not as trivial as it sounds is that I suspect we need some of those arch-specific \"--enable-blah-blah\" like \"--enable-neon\" etc which I am not so sure about.\r\n\r\nI suppose, I could try as a first approximation to compile it without those arch-specific bits and see what happens :)\r\n\r\nThe reason why PyFFTW is essential is because scipy.fftpack is not present in termux (and cannot be compiled) and in any case it is very slow compared to PyFFTW (not to mention numpy.fft which is present, but is even slower). So, I found PyFFTW to be the fastest FFTW implementation for Python3 and it would be very nice to have it running inside Termux."},"comment":{"url":"https://api.github.com/repos/termux/termux-packages/issues/comments/268879797","html_url":"https://github.com/termux/termux-packages/issues/605#issuecomment-268879797","issue_url":"https://api.github.com/repos/termux/termux-packages/issues/605","id":268879797,"user":{"login":"its-pointless","id":16748215,"avatar_url":"https://avatars.githubusercontent.com/u/16748215?v=3","gravatar_id":"","url":"https://api.github.com/users/its-pointless","html_url":"https://github.com/its-pointless","followers_url":"https://api.github.com/users/its-pointless/followers","following_url":"https://api.github.com/users/its-pointless/following{/other_user}","gists_url":"https://api.github.com/users/its-pointless/gists{/gist_id}","starred_url":"https://api.github.com/users/its-pointless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/its-pointless/subscriptions","organizations_url":"https://api.github.com/users/its-pointless/orgs","repos_url":"https://api.github.com/users/its-pointless/repos","events_url":"https://api.github.com/users/its-pointless/events{/privacy}","received_events_url":"https://api.github.com/users/its-pointless/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T20:06:18Z","updated_at":"2016-12-22T20:06:18Z","body":"k im going to redo everything on arm version and also allow a full less annoying numpy + scipy  working versions for arm and maybe even for aarch64  without fiddling with libgfortran. So it just works(tm)."}}
{"actor":{"display_login":"its-pointless"}}