The current FTBFS affects all architectures.

** Summary changed:

- Fails to build on amd64v3 due to symbols difference
+ FTBFS: redefinition of ‘struct drm_color_ctm_3x4’

** Description changed:

+ In file included from /<<PKGBUILDDIR>>/include/amd_smi/impl/amd_smi_drm.h:35,
+                  from 
/<<PKGBUILDDIR>>/include/amd_smi/impl/amd_smi_system.h:31,
+                  from /<<PKGBUILDDIR>>/src/amd_smi/amd_smi.cc:53:
+ /<<PKGBUILDDIR>>/include/amd_smi/impl/amdgpu_drm.h:1629:8: error: 
redefinition of ‘struct drm_color_ctm_3x4’
+  1629 | struct drm_color_ctm_3x4 {
+       | ^~~~~~~~~~~~~~~~~
+ In file included from /usr/include/libdrm/drm.h:1082,
+                  from 
/<<PKGBUILDDIR>>/rocm_smi/include/rocm_smi/kfd_ioctl.h:26,
+                  from 
/<<PKGBUILDDIR>>/rocm_smi/include/rocm_smi/rocm_smi.h:37,
+                  from 
/<<PKGBUILDDIR>>/include/amd_smi/impl/amd_smi_common.h:27,
+                  from /<<PKGBUILDDIR>>/src/amd_smi/amd_smi.cc:51:
+ /usr/include/libdrm/drm_mode.h:850:8: note: previous definition of ‘struct 
drm_color_ctm_3x4’
+   850 | struct drm_color_ctm_3x4 {
+       | ^~~~~~~~~~~~~~~~~
+ 
+ 
+ [ Original Description ]
+ 
+ 
  The build is failing on am64v3
  
  https://launchpadlibrarian.net/844464424/buildlog_ubuntu-resolute-
  amd64v3.amdsmi_7.2.0-1_BUILDING.txt.gz
  
  
https://launchpad.net/ubuntu/+source/amdsmi/7.2.0-1/+build/32181983/+files/buildlog_ubuntu-
  resolute-amd64v3.amdsmi_7.2.0-1_BUILDING.txt.gz more recent one
  
  seems another problem due to cpp mangling...

** Description changed:

  In file included from /<<PKGBUILDDIR>>/include/amd_smi/impl/amd_smi_drm.h:35,
-                  from 
/<<PKGBUILDDIR>>/include/amd_smi/impl/amd_smi_system.h:31,
-                  from /<<PKGBUILDDIR>>/src/amd_smi/amd_smi.cc:53:
+                  from 
/<<PKGBUILDDIR>>/include/amd_smi/impl/amd_smi_system.h:31,
+                  from /<<PKGBUILDDIR>>/src/amd_smi/amd_smi.cc:53:
  /<<PKGBUILDDIR>>/include/amd_smi/impl/amdgpu_drm.h:1629:8: error: 
redefinition of ‘struct drm_color_ctm_3x4’
-  1629 | struct drm_color_ctm_3x4 {
-       | ^~~~~~~~~~~~~~~~~
+  1629 | struct drm_color_ctm_3x4 {
+       | ^~~~~~~~~~~~~~~~~
  In file included from /usr/include/libdrm/drm.h:1082,
-                  from 
/<<PKGBUILDDIR>>/rocm_smi/include/rocm_smi/kfd_ioctl.h:26,
-                  from 
/<<PKGBUILDDIR>>/rocm_smi/include/rocm_smi/rocm_smi.h:37,
-                  from 
/<<PKGBUILDDIR>>/include/amd_smi/impl/amd_smi_common.h:27,
-                  from /<<PKGBUILDDIR>>/src/amd_smi/amd_smi.cc:51:
+                  from 
/<<PKGBUILDDIR>>/rocm_smi/include/rocm_smi/kfd_ioctl.h:26,
+                  from 
/<<PKGBUILDDIR>>/rocm_smi/include/rocm_smi/rocm_smi.h:37,
+                  from 
/<<PKGBUILDDIR>>/include/amd_smi/impl/amd_smi_common.h:27,
+                  from /<<PKGBUILDDIR>>/src/amd_smi/amd_smi.cc:51:
  /usr/include/libdrm/drm_mode.h:850:8: note: previous definition of ‘struct 
drm_color_ctm_3x4’
-   850 | struct drm_color_ctm_3x4 {
-       | ^~~~~~~~~~~~~~~~~
+   850 | struct drm_color_ctm_3x4 {
+       | ^~~~~~~~~~~~~~~~~
+ 
+ Upstream issue: https://github.com/ROCm/amdsmi/issues/167
+ 
+ This PR claims to fix it: https://github.com/ROCm/amdsmi/pull/165
+ 
+ Patch from NixOS:
+ 
https://github.com/NixOS/nixpkgs/pull/481349/files#diff-3fee6a218c1700c4e19c1d2d6b14bc98566729a472597ad001efadbb90e7ba24
  
  
  [ Original Description ]
- 
  
  The build is failing on am64v3
  
  https://launchpadlibrarian.net/844464424/buildlog_ubuntu-resolute-
  amd64v3.amdsmi_7.2.0-1_BUILDING.txt.gz
  
  
https://launchpad.net/ubuntu/+source/amdsmi/7.2.0-1/+build/32181983/+files/buildlog_ubuntu-
  resolute-amd64v3.amdsmi_7.2.0-1_BUILDING.txt.gz more recent one
  
  seems another problem due to cpp mangling...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2140490

Title:
  FTBFS: redefinition of ‘struct drm_color_ctm_3x4’

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/amdsmi/+bug/2140490/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to