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

Bug 695334

Summary: dev-util/strace-5.2 : xlat/v4l2_pix_fmts.h:274:1: error: static assertion failed: V4L2_PIX_FMT_BGRA444 != v4l2_fourcc(\ B\ , \ A\ , \ 1\ , \ 2\ )
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gentoo.dl, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/strace/strace/issues/110
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-util:strace-5.2:20190921-184854.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2019-09-21 19:05:07 UTC
                 from xlat/v4l2_pix_fmts.h:4,
                 from v4l2.c:59:
xlat/v4l2_pix_fmts.h:274:1: error: static assertion failed: "V4L2_PIX_FMT_BGRA444 != v4l2_fourcc(\'B\', \'A\', \'1\', \'2\')"
  274 | static_assert((V4L2_PIX_FMT_BGRA444) == (v4l2_fourcc('B', 'A', '1', '2')), "V4L2_PIX_FMT_BGRA444 != v4l2_fourcc('B', 'A', '1', '2')");
      | ^~~~~~~~~~~~~
make[2]: *** [Makefile:7240: strace-v4l2.o] Error 1

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20190920-071633

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository timestamp:

==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 21 Sep 2019 18:06:22 +0000

emerge -qpvO dev-util/strace
[ebuild  N    ] dev-util/strace-5.2  USE="-aio -elfutils -perl -static -unwind"
Comment 1 Toralf Förster gentoo-dev 2019-09-21 19:05:10 UTC
Created attachment 590554 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-09-21 19:05:13 UTC
Created attachment 590556 [details]
dev-util:strace-5.2:20190921-184854.log
Comment 3 Toralf Förster gentoo-dev 2019-09-21 19:05:15 UTC
Created attachment 590558 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-09-21 19:05:18 UTC
Created attachment 590560 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-09-21 19:05:21 UTC
Created attachment 590562 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-09-21 19:05:24 UTC
Created attachment 590564 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-09-21 19:05:26 UTC
Created attachment 590566 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-21 19:58:38 UTC
Probably caused by linux-headers-5.3 bump. fourcc value is not supposed to be changing across releases though.
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-21 20:22:00 UTC
(In reply to Sergei Trofimovich from comment #8)
> Probably caused by linux-headers-5.3 bump. fourcc value is not supposed to
> be changing across releases though.

Confirmed that linux-headers-5.2 passes this test just fine (does not define V4L2_PIX_FMT_BGRA444).

The test asserts  V4L2_PIX_FMT_BGRA444 as "BA12" (modulo endianness) while linux-headers-5.3 defines is as "GA12".

Which one is correct? CC +Dmitry.

Raw bits of logs:

xlat/v4l2_pix_fmts.h:274:1: error: static assertion failed: "V4L2_PIX_FMT_BGRA444 != v4l2_fourcc(\'B\', \'A\', \'1\', \'2\')"
  274 | static_assert((V4L2_PIX_FMT_BGRA444) == (v4l2_fourcc('B', 'A', '1', '2')), "V4L2_PIX_FMT_BGRA444 != v4l2_fourcc('B', 'A', '1', '2')");
      | ^~~~~~~~~~~~~

./linux-headers-5.3/work/linux-5.3/include/uapi/linux/videodev2.h:#define V4L2_PIX_FMT_BGRA444 v4l2_fourcc('G', 'A', '1', '2') /* 16  bbbbgggg rrrraaaa */
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-21 20:30:44 UTC
https://github.com/torvalds/linux/commit/22be8233b34f4f468934c5fefcbe6151766fb8f2 has a hint on why new definition was picked.
Comment 11 Dmitry V. Levin 2019-09-21 21:43:29 UTC
Please see https://github.com/strace/strace/issues/110
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-21 22:27:32 UTC
Thank you!
Comment 13 Arfrever Frehtes Taifersar Arahesis 2019-09-22 00:35:46 UTC

*** This bug has been marked as a duplicate of bug 695260 ***