Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827652 - x11-drivers/xf86-video-qxl-0.1.5_p20200205 - /.../xf86Opt.h: error: two or more data types in declaration specifiers
Summary: x11-drivers/xf86-video-qxl-0.1.5_p20200205 - /.../xf86Opt.h: error: two or mo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/xorg/d...
Whiteboard:
Keywords: PATCH
: 828670 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-27 20:41 UTC by Toralf Förster
Modified: 2021-12-20 16:27 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.00 KB, text/plain)
2021-11-27 20:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,412.38 KB, text/plain)
2021-11-27 20:41 UTC, Toralf Förster
Details
environment (environment,126.48 KB, text/plain)
2021-11-27 20:41 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.09 KB, application/x-bzip)
2021-11-27 20:41 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,16.36 KB, application/x-bzip)
2021-11-27 20:41 UTC, Toralf Förster
Details
x11-drivers:xf86-video-qxl-0.1.5_p20200205:20211127-164246.log (x11-drivers:xf86-video-qxl-0.1.5_p20200205:20211127-164246.log,53.15 KB, text/plain)
2021-11-27 20:41 UTC, Toralf Förster
Details
x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1 build log (xf86-video-qxl-0.1.5_p20200205-r1:20211217-143311.log,61.49 KB, text/x-log)
2021-12-17 14:44 UTC, Will Simoneau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-11-27 20:41:22 UTC
too long lines were shrinked:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/spice-1 -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/freetype2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes
In file included from /usr/include/xf86drmMode.h:45,
                 from qxl_drmmode.h:33,
                 from qxl_drmmode.c:36:
/usr/include/xorg/xf86Opt.h:44:10: error: two or more data types in declaration specifiers
   44 |     Bool bool;
      |          ^~~~
In file included from /usr/include/xorg/xf86str.h:43,
                 from qxl_drmmode.h:34,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20211121-121829

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.56.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 5aa86254ae846815084594b31ec449b0ba5dc4a3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Nov 27 15:58:42 2021 +0000

    2021-11-27 15:58:20 UTC

emerge -qpvO x11-drivers/xf86-video-qxl
[ebuild  N    ] x11-drivers/xf86-video-qxl-0.1.5_p20200205  USE="-xspice" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2021-11-27 20:41:23 UTC
Created attachment 756744 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-27 20:41:25 UTC
Created attachment 756745 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-11-27 20:41:26 UTC
Created attachment 756746 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-11-27 20:41:28 UTC
Created attachment 756747 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-11-27 20:41:29 UTC
Created attachment 756748 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-27 20:41:30 UTC
Created attachment 756749 [details]
x11-drivers:xf86-video-qxl-0.1.5_p20200205:20211127-164246.log
Comment 7 Carlos Konstanski 2021-12-01 16:13:28 UTC
Another bool-related bug. Not sure if it's related to this one. If it's not then I'll open a new issue.

qxl_option_helpers.c: In Funktion »get_bool_option«:
qxl_option_helpers.c:37:44: Fehler: »ValueUnion« hat kein Element namens »bool«; meinten Sie »boolean«?
   37 |         return options[option_index].value.bool;
      |                                            ^~~~
      |                                            boolean
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-01 16:15:45 UTC
(In reply to Carlos Konstanski from comment #7)
> Another bool-related bug. Not sure if it's related to this one. If it's not
> then I'll open a new issue.
> 
> qxl_option_helpers.c: In Funktion »get_bool_option«:
> qxl_option_helpers.c:37:44: Fehler: »ValueUnion« hat kein Element namens
> »bool«; meinten Sie »boolean«?
>    37 |         return options[option_index].value.bool;
>       |                                            ^~~~
>       |                                            boolean

Nah, seems like the same thing.

https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/-/merge_requests/6 may fix it.
Comment 9 Bernd 2021-12-03 13:19:30 UTC
Using the patch from comment #8 fixes the issue from comment #7 for me. I can not say, whether it helps for the issue Toralf described as well, as it doesn't happen for me.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-16 22:29:27 UTC
*** Bug 828670 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2021-12-16 22:32:40 UTC
The bug has been closed via the following commit(s):

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

commit 33ed515d5d5578cfa5066fba4634ccb9e84d6857
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-16 22:32:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-16 22:32:16 +0000

    x11-drivers/xf86-video-qxl: fix build with xorg 21
    
    Closes: https://bugs.gentoo.org/827652
    Signed-off-by: Sam James <sam@gentoo.org>

 ...video-qxl-0.1.5_p20200205-xorg-21.0-build.patch | 93 ++++++++++++++++++++++
 .../xf86-video-qxl-0.1.5_p20200205-r1.ebuild       | 52 ++++++++++++
 2 files changed, 145 insertions(+)
Comment 12 Will Simoneau 2021-12-17 14:44:20 UTC
Created attachment 759455 [details]
x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1 build log

I'm still running into the same issue as comment #1 despite the new -r1 ebuild.
Comment 13 Piotr Karbowski (RETIRED) gentoo-dev 2021-12-17 21:38:48 UTC
r1 works okay here, are you using any ccache?
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-18 00:21:13 UTC
(In reply to Will Simoneau from comment #12)
> Created attachment 759455 [details]
> x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1 build log
> 
> I'm still running into the same issue as comment #1 despite the new -r1
> ebuild.

Are you using ~arch qxl but stable xorg-server?
Comment 15 Will Simoneau 2021-12-20 16:27:35 UTC
(In reply to Piotr Karbowski from comment #13)
> r1 works okay here, are you using any ccache?

I happen to have ccache and sccache installed, but no ccache-like functionality is enabled in FEATURES.

(In reply to Sam James from comment #14)
> (In reply to Will Simoneau from comment #12)
> > Created attachment 759455 [details]
> > x11-drivers/xf86-video-qxl-0.1.5_p20200205-r1 build log
> > 
> > I'm still running into the same issue as comment #1 despite the new -r1
> > ebuild.
> 
> Are you using ~arch qxl but stable xorg-server?

I wasn't up until I tried to get past this issue - x11-base/xorg-server-1.20.13-r1 (stable) & x11-drivers/xf86-video-qxl-0.1.5_p20200205 (stable).  (My logs indicate that x11-drivers/xf86-video-qxl-0.1.5_p20200205 has successfully built with x11-base/xorg-server-1.20.13-r1 in the past)

I resynced & retested just now after seeing #829628; your https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa6b6be1913a672ea920ba2ae6fad4c45490ef9d appears to have fixed the problem for me. (Thanks!)