[GH-ISSUE #2585] AMD OpenCL cannot be enabled #1691

Closed
opened 2026-10-15 04:22:31 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @jeroenjacobs79 on GitHub (Jun 21, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2585

I have AMD APP SDK installed in /opt/AMDAPPSDK-3.0

environment variable is set correctly:

> $ echo $AMDAPPSDKROOT                                                                                                                                                                                                [±bleeding-jumbo ●]
/opt/AMDAPPSDK-3.0

OpenCL is recognised, but not enabled when running ./configure:

> $ ./configure                                                                                                                                                                                                        [±bleeding-jumbo ●]
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to compile using MPI... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking additional paths...  -L/usr/local/lib -I/usr/local/include
checking arg check macro for -m with gcc... yes
checking arg check macro for -Q with gcc... yes
checking if gcc supports -funroll-loops... yes
checking if gcc supports -Os... yes
checking if gcc supports -finline-functions... yes
checking if gcc supports -Og... yes
checking if gcc supports -Wall... yes
checking if gcc supports -Wdeclaration-after-statement... yes
checking if gcc supports -fomit-frame-pointer... yes
checking if gcc supports --param allow-store-data-races=0... yes
checking if gcc supports -Wno-implicit-fallthrough... yes
checking if gcc supports -Wno-deprecated-declarations... yes
checking if gcc supports -Wformat-extra-args... yes
checking if gcc supports  -Wunused-but-set-variable... yes
checking if gcc supports -Qunused-arguments... no
checking if gcc supports -std=gnu89... yes
checking if gcc supports -Wdate-time... yes
checking whether ln -s works... yes
checking for grep that handles long lines and -e... /bin/grep
checking for a sed that does not truncate output... /bin/sed
checking for GNU make... make
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for sort... /usr/bin/sort
checking for find... /usr/bin/find
checking for perl... /usr/bin/perl
checking for ar... ar
checking for strip... strip
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking if pkg-config will be used... yes
checking if potcheck.pl succeeds... yes
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of wchar_t... 4
checking size of int *... 8
checking size of void *... 8
configure: Testing build host's native CPU features
checking for Hyperthreading... yes
checking for MMX... yes
checking for SSE2... yes
checking for SSSE3... yes
checking for SSE4.1... yes
checking for AVX... yes
checking for XOP... no
checking for AVX2... yes
checking for AVX512F... no
checking for arch.h alternative... x86-64.h
checking whether compiler understands -march=native... yes
checking for 32/64 bit... 64-bit
checking for extra ASFLAGS... None needed
checking for X32 ABI... no
checking for byte ordering according to target triple... little
checking for OPENSSL... yes
checking for sqrt in -lm... yes
checking for deflate in -lz... yes
checking for library containing crypt... -lcrypt
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init in -lgmp... yes
checking skey.h usability... no
checking skey.h presence... no
checking for skey.h... no
checking for S/Key... using our own code
checking bzlib.h usability... no
checking bzlib.h presence... no
checking for bzlib.h... no
checking for main in -lkernel32... no
checking for dlopen in -ldl... yes
checking intrin.h usability... no
checking intrin.h presence... no
checking for intrin.h... no
checking librexgen/version.h usability... no
checking librexgen/version.h presence... no
checking for librexgen/version.h... no
checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h... no
checking pcap/pcap.h usability... no
checking pcap/pcap.h presence... no
checking for pcap/pcap.h... no
checking for pcap.h... (cached) no
checking for pcap/pcap.h... (cached) no
checking whether time.h and sys/time.h may both be included... yes
checking whether string.h and strings.h may both be included... yes
checking for SHA256... yes
checking for WHIRLPOOL... yes
checking for RIPEMD160... yes
checking for AES_encrypt... yes
checking for gcc option to support OpenMP... -fopenmp
checking additional paths for OpenCL...  -L/opt/AMDAPPSDK-3.0/lib/x86_64 -I/opt/AMDAPPSDK-3.0/include
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking whether we are using the Microsoft C compiler... no
checking CL/cl.h usability... yes
checking CL/cl.h presence... yes
checking for CL/cl.h... yes
checking OpenCL/cl.h usability... no
checking OpenCL/cl.h presence... no
checking for OpenCL/cl.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenCL library... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ethernet.h usability... no
checking sys/ethernet.h presence... no
checking for sys/ethernet.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking unixlib/local.h usability... no
checking unixlib/local.h presence... no
checking for unixlib/local.h... no
checking for windows.h... (cached) no
checking for net/if.h... yes
checking for net/if_arp.h... yes
checking for netinet/if_ether.h... yes
checking for netinet/ip.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int32_t... yes
checking for int64_t... yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for int128... no
checking for __int128... yes
checking for __int128_t... yes
checking for error_at_line... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for fseek64... no
checking for fseeko... yes
checking for fseeko64... yes
checking for _fseeki64... no
checking for lseek64... yes
checking for lseek... yes
checking for ftell64... no
checking for ftello... yes
checking for ftello64... yes
checking for _ftelli64... no
checking for fopen64... yes
checking for _fopen64... no
checking for memmem... yes
checking for mmap... yes
checking for sleep... yes
checking for setenv... yes
checking for putenv... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for stricmp... no
checking for strcmpi... no
checking for _stricmp... no
checking for _strcmpi... no
checking for strnicmp... no
checking for strncmpi... no
checking for _strnicmp... no
checking for _strncmpi... no
checking for strnlen... yes
checking for strlwr... no
checking for strupr... no
checking for strrev... no
checking for atoll... yes
checking for _atoi64... no
checking for snprintf... yes
checking for sprintf_s... no
checking for strcasestr... yes
checking for clGetKernelArgInfo... no
checking for posix_memalign... yes
checking for yasm that supports "-g dwarf2 -f elf64"... 
checking for OS-specific feature macros needed...  -D_POSIX_SOURCE -D_GNU_SOURCE -D_XOPEN_SOURCE=600
checking size of size_t... 8
checking size of off_t... 8
configure: Fuzz check disabled
configure: creating *_plug.c and OpenCL object rules
configure: creating Makefile dependencies
configure: creating ./john_build_rule.h
configure: creating ./config.status
config.status: creating Makefile
config.status: creating aes/Makefile
config.status: creating aes/aesni/Makefile
config.status: creating aes/openssl/Makefile
config.status: creating escrypt/Makefile
config.status: creating autoconfig.h
config.status: autoconfig.h is unchanged
config.status: linking x86-64.h to arch.h
config.status: executing default commands
configure: creating ./fmt_externs.h
configure: creating ./fmt_registers.h

Configured for building John the Ripper jumbo:

Target CPU ................................. x86_64 AVX2, 64-bit LE
AES-NI support ............................. depends on OpenSSL
Target OS .................................. linux-gnu
Cross compiling ............................ no
Legacy arch header ......................... x86-64.h

Optional libraries/features found:
Fuzzing test ............................... no
Experimental code .......................... no
OpenMPI support (default disabled) ......... no
Fork support ............................... yes
OpenMP support ............................. yes (not for fast formats)
OpenCL support ............................. no
Generic crypt(3) format .................... yes
Rexgen (extra cracking mode) ............... no
GMP (PRINCE mode and faster SRP formats) ... yes
PCAP (vncpcap2john and SIPdump) ............ no
Z (pkzip format, gpg2john) ................. yes
BZ2 (gpg2john extra decompression logic) ... no
128-bit integer (faster PRINCE mode) ....... yes
Memory map (share/page large files) ........ yes
ZTEX USB-FPGA module 1.15y support ......... no

Development options (these may hurt performance when enabled):
Memdbg memory debugging settings ........... disabled
AddressSanitizer ("ASan") .................. disabled
UndefinedBehaviorSanitizer ("UbSan") ....... disabled

Install missing libraries to get any needed features that were omitted.

Configure finished.  Now 'make clean && make -s' to compile.

The documentation does not mention that extra parameters should be passed to ./configure to enable OpenCL.

Originally created by @jeroenjacobs79 on GitHub (Jun 21, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2585 I have AMD APP SDK installed in /opt/AMDAPPSDK-3.0 environment variable is set correctly: ``` > $ echo $AMDAPPSDKROOT [±bleeding-jumbo ●] /opt/AMDAPPSDK-3.0 ``` OpenCL is recognised, but not enabled when running ./configure: ``` > $ ./configure [±bleeding-jumbo ●] checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking whether to compile using MPI... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking additional paths... -L/usr/local/lib -I/usr/local/include checking arg check macro for -m with gcc... yes checking arg check macro for -Q with gcc... yes checking if gcc supports -funroll-loops... yes checking if gcc supports -Os... yes checking if gcc supports -finline-functions... yes checking if gcc supports -Og... yes checking if gcc supports -Wall... yes checking if gcc supports -Wdeclaration-after-statement... yes checking if gcc supports -fomit-frame-pointer... yes checking if gcc supports --param allow-store-data-races=0... yes checking if gcc supports -Wno-implicit-fallthrough... yes checking if gcc supports -Wno-deprecated-declarations... yes checking if gcc supports -Wformat-extra-args... yes checking if gcc supports -Wunused-but-set-variable... yes checking if gcc supports -Qunused-arguments... no checking if gcc supports -std=gnu89... yes checking if gcc supports -Wdate-time... yes checking whether ln -s works... yes checking for grep that handles long lines and -e... /bin/grep checking for a sed that does not truncate output... /bin/sed checking for GNU make... make checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for a thread-safe mkdir -p... /bin/mkdir -p checking for sort... /usr/bin/sort checking for find... /usr/bin/find checking for perl... /usr/bin/perl checking for ar... ar checking for strip... strip checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking if pkg-config will be used... yes checking if potcheck.pl succeeds... yes checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking size of short... 2 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking size of wchar_t... 4 checking size of int *... 8 checking size of void *... 8 configure: Testing build host's native CPU features checking for Hyperthreading... yes checking for MMX... yes checking for SSE2... yes checking for SSSE3... yes checking for SSE4.1... yes checking for AVX... yes checking for XOP... no checking for AVX2... yes checking for AVX512F... no checking for arch.h alternative... x86-64.h checking whether compiler understands -march=native... yes checking for 32/64 bit... 64-bit checking for extra ASFLAGS... None needed checking for X32 ABI... no checking for byte ordering according to target triple... little checking for OPENSSL... yes checking for sqrt in -lm... yes checking for deflate in -lz... yes checking for library containing crypt... -lcrypt checking gmp.h usability... yes checking gmp.h presence... yes checking for gmp.h... yes checking for __gmpz_init in -lgmp... yes checking skey.h usability... no checking skey.h presence... no checking for skey.h... no checking for S/Key... using our own code checking bzlib.h usability... no checking bzlib.h presence... no checking for bzlib.h... no checking for main in -lkernel32... no checking for dlopen in -ldl... yes checking intrin.h usability... no checking intrin.h presence... no checking for intrin.h... no checking librexgen/version.h usability... no checking librexgen/version.h presence... no checking for librexgen/version.h... no checking pcap.h usability... no checking pcap.h presence... no checking for pcap.h... no checking pcap/pcap.h usability... no checking pcap/pcap.h presence... no checking for pcap/pcap.h... no checking for pcap.h... (cached) no checking for pcap/pcap.h... (cached) no checking whether time.h and sys/time.h may both be included... yes checking whether string.h and strings.h may both be included... yes checking for SHA256... yes checking for WHIRLPOOL... yes checking for RIPEMD160... yes checking for AES_encrypt... yes checking for gcc option to support OpenMP... -fopenmp checking additional paths for OpenCL... -L/opt/AMDAPPSDK-3.0/lib/x86_64 -I/opt/AMDAPPSDK-3.0/include checking if compiler needs -Werror to reject unknown flags... no checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking whether we are using the Microsoft C compiler... no checking CL/cl.h usability... yes checking CL/cl.h presence... yes checking for CL/cl.h... yes checking OpenCL/cl.h usability... no checking OpenCL/cl.h presence... no checking for OpenCL/cl.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for OpenCL library... no checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking net/ethernet.h usability... yes checking net/ethernet.h presence... yes checking for net/ethernet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/ethernet.h usability... no checking sys/ethernet.h presence... no checking for sys/ethernet.h... no checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking for sys/types.h... (cached) yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking unixlib/local.h usability... no checking unixlib/local.h presence... no checking for unixlib/local.h... no checking for windows.h... (cached) no checking for net/if.h... yes checking for net/if_arp.h... yes checking for netinet/if_ether.h... yes checking for netinet/ip.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for inline... inline checking for int32_t... yes checking for int64_t... yes checking for off_t... yes checking for size_t... yes checking for ssize_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for ptrdiff_t... yes checking for int128... no checking for __int128... yes checking for __int128_t... yes checking for error_at_line... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for fseek64... no checking for fseeko... yes checking for fseeko64... yes checking for _fseeki64... no checking for lseek64... yes checking for lseek... yes checking for ftell64... no checking for ftello... yes checking for ftello64... yes checking for _ftelli64... no checking for fopen64... yes checking for _fopen64... no checking for memmem... yes checking for mmap... yes checking for sleep... yes checking for setenv... yes checking for putenv... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for stricmp... no checking for strcmpi... no checking for _stricmp... no checking for _strcmpi... no checking for strnicmp... no checking for strncmpi... no checking for _strnicmp... no checking for _strncmpi... no checking for strnlen... yes checking for strlwr... no checking for strupr... no checking for strrev... no checking for atoll... yes checking for _atoi64... no checking for snprintf... yes checking for sprintf_s... no checking for strcasestr... yes checking for clGetKernelArgInfo... no checking for posix_memalign... yes checking for yasm that supports "-g dwarf2 -f elf64"... checking for OS-specific feature macros needed... -D_POSIX_SOURCE -D_GNU_SOURCE -D_XOPEN_SOURCE=600 checking size of size_t... 8 checking size of off_t... 8 configure: Fuzz check disabled configure: creating *_plug.c and OpenCL object rules configure: creating Makefile dependencies configure: creating ./john_build_rule.h configure: creating ./config.status config.status: creating Makefile config.status: creating aes/Makefile config.status: creating aes/aesni/Makefile config.status: creating aes/openssl/Makefile config.status: creating escrypt/Makefile config.status: creating autoconfig.h config.status: autoconfig.h is unchanged config.status: linking x86-64.h to arch.h config.status: executing default commands configure: creating ./fmt_externs.h configure: creating ./fmt_registers.h Configured for building John the Ripper jumbo: Target CPU ................................. x86_64 AVX2, 64-bit LE AES-NI support ............................. depends on OpenSSL Target OS .................................. linux-gnu Cross compiling ............................ no Legacy arch header ......................... x86-64.h Optional libraries/features found: Fuzzing test ............................... no Experimental code .......................... no OpenMPI support (default disabled) ......... no Fork support ............................... yes OpenMP support ............................. yes (not for fast formats) OpenCL support ............................. no Generic crypt(3) format .................... yes Rexgen (extra cracking mode) ............... no GMP (PRINCE mode and faster SRP formats) ... yes PCAP (vncpcap2john and SIPdump) ............ no Z (pkzip format, gpg2john) ................. yes BZ2 (gpg2john extra decompression logic) ... no 128-bit integer (faster PRINCE mode) ....... yes Memory map (share/page large files) ........ yes ZTEX USB-FPGA module 1.15y support ......... no Development options (these may hurt performance when enabled): Memdbg memory debugging settings ........... disabled AddressSanitizer ("ASan") .................. disabled UndefinedBehaviorSanitizer ("UbSan") ....... disabled Install missing libraries to get any needed features that were omitted. Configure finished. Now 'make clean && make -s' to compile. ``` The documentation does not mention that extra parameters should be passed to ./configure to enable OpenCL.
bsakaguchi 2026-10-15 04:22:31 +07:00
Author
Owner

@jeroenjacobs79 commented on GitHub (Jun 21, 2017):

I also tried ./configure --enable-opencl but that doesn't make a difference.

<!-- gh-comment-id:310116763 --> @jeroenjacobs79 commented on GitHub (Jun 21, 2017): I also tried `./configure --enable-opencl` but that doesn't make a difference.
Author
Owner

@Acroyear7 commented on GitHub (Jun 21, 2017):

Exact problem I am having as well, just completed my second install attempt no OpenCL

<!-- gh-comment-id:310121484 --> @Acroyear7 commented on GitHub (Jun 21, 2017): Exact problem I am having as well, just completed my second install attempt no OpenCL
Author
Owner

@jeroenjacobs79 commented on GitHub (Jun 21, 2017):

It does seem to work with an earlier version. I downloaded and installed v2.9.1 of the AMDAPPSDK and that works.

<!-- gh-comment-id:310121773 --> @jeroenjacobs79 commented on GitHub (Jun 21, 2017): It does seem to work with an earlier version. I downloaded and installed v2.9.1 of the AMDAPPSDK and that works.
Author
Owner

@Acroyear7 commented on GitHub (Jun 21, 2017):

I have been trying with v.3.0.130.136 and drivers amdgpu-pro-17.10-429170 (latest). Will v2.9.1 work with these drivers?

<!-- gh-comment-id:310124570 --> @Acroyear7 commented on GitHub (Jun 21, 2017): I have been trying with v.3.0.130.136 and drivers amdgpu-pro-17.10-429170 (latest). Will v2.9.1 work with these drivers?
Author
Owner

@magnumripper commented on GitHub (Jun 21, 2017):

Here's the problem but I have no idea why

(...)
checking additional paths for OpenCL...  -L/opt/AMDAPPSDK-3.0/lib/x86_64 -I/opt/AMDAPPSDK-3.0/include
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking whether we are using the Microsoft C compiler... no
checking CL/cl.h usability... yes
checking CL/cl.h presence... yes
checking for CL/cl.h... yes
checking OpenCL/cl.h usability... no
checking OpenCL/cl.h presence... no
checking for OpenCL/cl.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenCL library... no    <----- Why!?
(...)

Some ideas:

  1. Perhaps try sudo ldconfig and then retry configure.
  2. Does clinfo or some other OpenCL stuff work fine? If not, this is not a JtR problem at all.
<!-- gh-comment-id:310229763 --> @magnumripper commented on GitHub (Jun 21, 2017): Here's the problem but I have no idea why ``` (...) checking additional paths for OpenCL... -L/opt/AMDAPPSDK-3.0/lib/x86_64 -I/opt/AMDAPPSDK-3.0/include checking if compiler needs -Werror to reject unknown flags... no checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking whether we are using the Microsoft C compiler... no checking CL/cl.h usability... yes checking CL/cl.h presence... yes checking for CL/cl.h... yes checking OpenCL/cl.h usability... no checking OpenCL/cl.h presence... no checking for OpenCL/cl.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for OpenCL library... no <----- Why!? (...) ``` Some ideas: 1. Perhaps try `sudo ldconfig` and then retry configure. 2. Does `clinfo` or some other OpenCL stuff work fine? If not, this is not a JtR problem at all.
Author
Owner

@ghost commented on GitHub (Jun 22, 2017):

The best way to see what is wrong is to look inside config.log to check what exactly failed.
I've seen some failures; the most recent one was a missing ln -s in the AMD installer.

<!-- gh-comment-id:310238154 --> @ghost commented on GitHub (Jun 22, 2017): The best way to see what is wrong is to look inside `config.log` to check what exactly failed. I've seen some failures; the most recent one was a missing `ln -s` in the AMD installer.
Author
Owner

@Acroyear7 commented on GitHub (Jun 22, 2017):

In the directory /opt/AMDAPPSDK-3.0/lib/x86_64/
I had a broken link libOpenCL.so
I fixed by manually creating a new link sudo ln -sf sdk/libOpenCL.so.1 libOpenCL.so
Worked for me, good to see my p/s go 100x :)

<!-- gh-comment-id:310462818 --> @Acroyear7 commented on GitHub (Jun 22, 2017): In the directory ```/opt/AMDAPPSDK-3.0/lib/x86_64/``` I had a broken link ```libOpenCL.so``` I fixed by manually creating a new link ```sudo ln -sf sdk/libOpenCL.so.1 libOpenCL.so``` Worked for me, good to see my p/s go 100x :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1691
No description provided.