Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 805944

Summary: media-plugins/gst-plugins-opencv-1.18.4-r2 - /.../gatomic.h: error: argument 2 of _atomic_load must not be a pointer to a volatile
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: GStreamer package maintainers <gstreamer>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=826702
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
media-plugins:gst-plugins-opencv-1.18.4-r1:20210801-102118.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-08-01 11:16:46 UTC
                 from ../gst-plugins-bad-1.18.4/ext/opencv/gstcvdilateerode.cpp:53:
../gst-plugins-bad-1.18.4/ext/opencv/gstcvdilateerode.cpp: In function ‘GType gst_cv_dilate_erode_get_type()’:
/usr/include/glib-2.0/glib/gatomic.h:117:19: error: argument 2 of ‘__atomic_load’ must not be a pointer to a ‘volatile’ type
  117 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’
  260 |     (!g_atomic_pointer_get (location) &&                             \

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j3-20210729-201509

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit babecc3e4e6b3e2d15c92b06aa5f4cd11df1f850
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Aug 1 08:36:35 2021 +0000

    2021-08-01 08:36:32 UTC

emerge -qpvO media-plugins/gst-plugins-opencv
[ebuild  N    ] media-plugins/gst-plugins-opencv-1.18.4-r1  USE="-test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2021-08-01 11:16:47 UTC
Created attachment 729180 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-01 11:16:48 UTC
Created attachment 729183 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-01 11:16:50 UTC
Created attachment 729186 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-01 11:16:51 UTC
Created attachment 729189 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-01 11:16:52 UTC
Created attachment 729192 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-01 11:16:54 UTC
Created attachment 729195 [details]
media-plugins:gst-plugins-opencv-1.18.4-r1:20210801-102118.log
Comment 7 Toralf Förster gentoo-dev 2021-08-01 11:16:55 UTC
Created attachment 729198 [details]
temp.tar.bz2
Comment 8 Agostino Sarubbo gentoo-dev 2021-11-24 06:55:03 UTC
ci has reproduced this issue with version 1.18.4-r2 - Updating summary.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-24 08:32:16 UTC
I would’ve expected https://bugs.gentoo.org/826702#c8 to fix this…
Comment 10 Larry the Git Cow gentoo-dev 2021-12-28 01:24:50 UTC
The bug has been closed via the following commit(s):

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

commit 11f22dbd44047fa6ff4a011e2d42c6f9799fa5b3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-28 01:17:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-28 01:24:38 +0000

    media-plugins/gst-plugins-opencv: fix build with newer glib
    
    Closes: https://bugs.gentoo.org/805944
    Closes: https://bugs.gentoo.org/826702
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gst-plugins-bad-1.18.4-volatile-glib.patch       | 14 ++++++++++++++
 .../gst-plugins-opencv/gst-plugins-opencv-1.18.4-r2.ebuild |  1 +
 2 files changed, 15 insertions(+)