Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871174 - dev-libs/glib-2.74.0 - ../.../gio-launch-desktop.c: error: static assertion expression is not an integral constant expression
Summary: dev-libs/glib-2.74.0 - ../.../gio-launch-desktop.c: error: static assertion e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2022-09-18 09:13 UTC by Toralf Förster
Modified: 2022-11-05 09:16 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.01 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,7.15 KB, application/x-bzip)
2022-09-18 09:13 UTC, Toralf Förster
Details
dev-libs:glib-2.74.0:20220918-085512.log (dev-libs:glib-2.74.0:20220918-085512.log,135.02 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,96.88 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
environment (environment,175.73 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.19 KB, application/x-bzip)
2022-09-18 09:13 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,24.20 KB, application/x-bzip)
2022-09-18 09:13 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,53.90 KB, application/x-bzip)
2022-09-18 09:13 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-18 09:13:08 UTC
too long lines were shrinked:

[102/533] /var/tmp/portage/dev-libs/glib-2.74.0/temp/python3.11/bin/python3 gio/gdbus-2.0/codegen/gdbus-codegen --interface-prefix org. --output-directory gio --generate-c-code gdbus-daemon-generated --c-namespace _G ../glib-2.74.0/gio/dbus-daemon.xml
[103/533] clang -Igio/gio-launch-desktop.p -Igio -I../glib-2.74.0/gio -Iglib -I../glib-2.74.0/glib -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -O0 -D_GNU_SOURCE -fno-strict-aliasing -Wimplicit-fallthrough -Wmisleading-indentation -Wunused -Wno-unused-
FAILED: gio/gio-launch-desktop.p/gio-launch-desktop.c.o 
clang -Igio/gio-launch-desktop.p -Igio -I../glib-2.74.0/gio -Iglib -I../glib-2.74.0/glib -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -O0 -D_GNU_SOURCE -fno-strict-aliasing -Wimplicit-fallthrough -Wmisleading-indentation -Wunused -Wno-unused-parameter 
../glib-2.74.0/gio/gio-launch-desktop.c:124:20: error: static assertion expression is not an integral constant expression
  G_STATIC_ASSERT (LOG_EMERG == 0 && "Linux ABI defines LOG_EMERG");
  ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 70514a1ff9d0747d358718998c62f7b3fbede9bf
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 08:31:53 2022 +0000

    2022-09-18 08:31:52 UTC

emerge -qpvO dev-libs/glib
[ebuild     U ] dev-libs/glib-2.74.0 [2.72.3] USE="elf (mime) sysprof utils xattr -dbus -debug -gtk-doc (-selinux) -static-libs -systemtap -test (-fam%)" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2022-09-18 09:13:09 UTC
Created attachment 810217 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 09:13:10 UTC
Created attachment 810220 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-18 09:13:12 UTC
Created attachment 810223 [details]
dev-libs:glib-2.74.0:20220918-085512.log
Comment 4 Toralf Förster gentoo-dev 2022-09-18 09:13:13 UTC
Created attachment 810226 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2022-09-18 09:13:15 UTC
Created attachment 810229 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2022-09-18 09:13:16 UTC
Created attachment 810232 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-18 09:13:17 UTC
Created attachment 810235 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-09-18 09:13:18 UTC
Created attachment 810238 [details]
temp.tar.bz2
Comment 9 Manuel Nickschas 2022-09-21 07:06:22 UTC
I'm also seeing this with clang-15.0.1, so it's not strictly a clang-16 porting issue... Should maybe block #408963 too?
Comment 10 Larry the Git Cow gentoo-dev 2022-09-22 04:13:37 UTC
The bug has been closed via the following commit(s):

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

commit bab72b72ddea0be05aa764df10093086e01cbc13
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-22 04:13:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-22 04:13:25 +0000

    dev-libs/glib: fix build w/ Clang
    
    Closes: https://bugs.gentoo.org/871174
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/glib/files/glib-2.74.0-clang-build.patch | 26 +++++++++++++++++++++++
 dev-libs/glib/glib-2.74.0.ebuild                  |  1 +
 2 files changed, 27 insertions(+)