Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744646 - sys-apps/hwloc-1.11.13: error: unknown type name ‘cl_device_topology_amd’
Summary: sys-apps/hwloc-1.11.13: error: unknown type name ‘cl_device_topology_amd’
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on: 754855
Blocks:
  Show dependency tree
 
Reported: 2020-09-25 13:35 UTC by Luke-Jr
Modified: 2020-12-11 09:09 UTC (History)
4 users (show)

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


Attachments
build log (build.log,55.24 KB, text/x-log)
2020-09-25 13:35 UTC, Luke-Jr
Details
emerge --info (ryuu-emerge--info.txt,17.13 KB, text/plain)
2020-09-27 15:07 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2020-09-25 13:35:45 UTC
Created attachment 662374 [details]
build log

/var/tmp/portage/sys-apps/hwloc-1.11.13/work/hwloc-1.11.13/src/topology-opencl.c: In function ‘hwloc_opencl_query_devices’:
/var/tmp/portage/sys-apps/hwloc-1.11.13/work/hwloc-1.11.13/src/topology-opencl.c:108:5: error: unknown type name ‘cl_device_topology_amd’

# grep -ir cl_device_topology_amd /usr/include/CL/
/usr/include/CL/cl_ext.h:#define CL_DEVICE_TOPOLOGY_AMD                          0x4037

Provided by dev-util/opencl-headers-2020.06.16
Comment 1 Jonas Stein gentoo-dev 2020-09-25 17:50:39 UTC
Which exact compiler?
We need to have all information at hand before ticket assignment. That is why I ask you to 
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 2 Luke-Jr 2020-09-27 15:07:14 UTC
Created attachment 662674 [details]
emerge --info
Comment 3 Luke-Jr 2020-09-27 15:08:22 UTC
FWIW cl_ext.h is coming from dev-util/opencl-headers-2020.06.16
Comment 4 Matthias Schwartz 2020-11-10 09:22:52 UTC
Build succeded by downgrading to dev-util/opencl-headers-2020.03.13-r1
Comment 5 Timo Ollech 2020-11-11 11:25:18 UTC
Downgrading opencl-headers worked for me, too. The bug occurred while switching to profile 17.1.
Comment 6 Lori 2020-11-12 21:26:26 UTC
(In reply to Matthias Schwartz from comment #4)
> Build succeded by downgrading to dev-util/opencl-headers-2020.03.13-r1

Thanks for the tip! I was also bitten by the 17.1 profile migration and downgrading helped...
Comment 7 Markus Giese 2020-11-16 21:30:00 UTC
thanks, downgrading helped..
Comment 8 Markus Giese 2020-11-16 21:40:57 UTC
though it does not help with 

sys-apps/hwloc-2.3.0 and sys-cluster/openmpi-4.0.4 (~amd64). not even with never headers... hwloc-2.3 compiles but openmpi-4.0.4 stops with :

make[2]: Nothing to be done for 'install-data-am'.
make[3]: Entering directory '/var/tmp/portage/sys-cluster/openmpi-4.0.4/work/openmpi-4.0.4-abi_x86_64.amd64'
make[3]: Leaving directory '/var/tmp/portage/sys-cluster/openmpi-4.0.4/work/openmpi-4.0.4-abi_x86_64.amd64'
make[2]: Leaving directory '/var/tmp/portage/sys-cluster/openmpi-4.0.4/work/openmpi-4.0.4-abi_x86_64.amd64'
make[1]: Leaving directory '/var/tmp/portage/sys-cluster/openmpi-4.0.4/work/openmpi-4.0.4-abi_x86_64.amd64'
 * Header files have changed between ABIs.
 * --- /var/tmp/portage/sys-cluster/openmpi-4.0.4/temp/.multilib_header_cksum	2020-11-16 22:38:45.521239939 +0100
 * +++ /var/tmp/portage/sys-cluster/openmpi-4.0.4/temp/.multilib_header_cksum.new	2020-11-16 22:39:10.580545291 +0100
 * @@ -1,6 +1,6 @@


i even tried unstable opencl-headers, but there are none :D (latest version opencl-headers-2020.06.16)
Comment 9 Rick Farina (Zero_Chaos) gentoo-dev 2020-11-25 20:43:03 UTC
the 2.x.x ebuilds all have --disable-opencl and the 1.x.x do not, this likely should be fixed by simply disabling opencl support in 1.x.x as the note in the ebuild implies.
Comment 10 Larry the Git Cow gentoo-dev 2020-12-11 09:09:05 UTC
The bug has been closed via the following commit(s):

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

commit 5dc87071b33cfe90ad019694c3b7171c1b056b43
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-12-11 09:01:39 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-12-11 09:08:59 +0000

    sys-apps/hwloc: explicitly disable opencl
    
    Reported-by: Luke-Jr
    Closes: https://bugs.gentoo.org/744646
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-apps/hwloc/hwloc-1.11.13.ebuild | 1 +
 1 file changed, 1 insertion(+)