Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732456 - app-crypt/johntheripper-jumbo[opencl]: opencl_common.c:529:3: error: unknown type name ‘cl_device_topology_amd’
Summary: app-crypt/johntheripper-jumbo[opencl]: opencl_common.c:529:3: error: unknown ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-07-13 09:36 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2021-03-09 21:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,285.50 KB, text/plain)
2020-07-13 09:36 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
Build fix (opencl-fix.patch,338 bytes, patch)
2020-08-03 15:11 UTC, Steven Newbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-07-13 09:36:19 UTC
Created attachment 649116 [details]
build.log

Happens with 1.9.0 and 9999 versions:

x86_64-pc-linux-gnu-gcc -DAC_BUILT -mxop -DJOHN_XOP -c -m64 -march=native -mtune=native -O2 -pipe -DARCH_LITTLE_ENDIAN=1 -DJOHN_SYSTEMWIDE -DJOHN_SYSTEMWIDE_EXEC='"/usr/bin"' -DJOHN_SYSTEMWIDE_HOME='"/etc/john"'  -Wall -Wno-stringop-truncation -Wno-format-overflow -Wno-format-truncation -fno-omit-frame-pointer --param allow-store-data-races=0 -Wno-deprecated-declarations -Wformat-extra-args -Wunused-but-set-variable -std=gnu89 -Wdate-time -D_POSIX_SOURCE -D_GNU_SOURCE -D_XOPEN_SOURCE=600  -fopenmp  -pthread -DCL_SILENCE_DEPRECATION -DHAVE_OPENCL -pthread -funroll-loops opencl_common.c -o opencl_common.o
opencl_common.c: In function ‘get_pci_info’:
opencl_common.c:529:3: error: unknown type name ‘cl_device_topology_amd’
  529 |   cl_device_topology_amd topo;
      |   ^~~~~~~~~~~~~~~~~~~~~~
opencl_common.c:535:29: error: request for member ‘pcie’ in something not a structure or union
  535 |    hardware_info->bus = topo.pcie.bus & 0xff;
      |                             ^
opencl_common.c:536:32: error: request for member ‘pcie’ in something not a structure or union
  536 |    hardware_info->device = topo.pcie.device & 0xff;
      |                                ^
opencl_common.c:537:34: error: request for member ‘pcie’ in something not a structure or union
  537 |    hardware_info->function = topo.pcie.function & 0xff;
      |                                  ^
make[1]: *** [Makefile:1866: opencl_common.o] Error 1
Comment 1 Steven Newbury 2020-08-03 15:11:14 UTC
Created attachment 652704 [details, diff]
Build fix

CL_DEVICE_TOPOLOGY_AMD is defined in cl_ext.h but the typedef cl_device_topology_amd is not.
Comment 2 Larry the Git Cow gentoo-dev 2021-03-09 21:43:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdd8982b5fde70da005cb979a78519b01297d578

commit cdd8982b5fde70da005cb979a78519b01297d578
Author:     Hank Leininger <hlein@korelogic.com>
AuthorDate: 2020-11-21 02:47:28 +0000
Commit:     Rick Farina <zerochaos@gentoo.org>
CommitDate: 2021-03-09 21:43:32 +0000

    app-crypt/johntheripper-jumbo: fixes and cleanups
    
    Fixed opencl compilation issue, installation of .pl helpers, a
    broken documentation symlink, and removed ~amd64-linux KEYWORD
    because its dependencies lack it, to keep `repoman full` happy.
    
    Signed-off-by: Hank Leininger <hlein@korelogic.com>
    Closes: https://bugs.gentoo.org/732456
    Closes: https://bugs.gentoo.org/713462
    CLoses: https://bugs.gentoo.org/726432
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Rick Farina <zerochaos@gentoo.org>

 .../johntheripper-jumbo-1.9.0-opencl-fix.patch     |  12 ++
 .../johntheripper-jumbo-1.9.0-r1.ebuild            | 133 +++++++++++++++++++++
 2 files changed, 145 insertions(+)
Comment 3 Rick Farina (Zero_Chaos) gentoo-dev 2021-03-09 21:45:26 UTC
fixed via https://github.com/gentoo/gentoo/pull/18344 from Hank Leininger