Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953407 - kde-frameworks/kcodecs-5.116.0: fails to build with dev-util/gperf-3.2 (kentities.gperf: error: _STDC_VERSION_ is not defined, evaluates to 0 [-Werror=undef])
Summary: kde-frameworks/kcodecs-5.116.0: fails to build with dev-util/gperf-3.2 (kenti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 953461
  Show dependency tree
 
Reported: 2025-04-08 07:58 UTC by Toralf Förster
Modified: 2025-04-09 14:47 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.96 KB, text/plain)
2025-04-08 07:58 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,134.96 KB, text/plain)
2025-04-08 07:58 UTC, Toralf Förster
Details
environment (environment,104.70 KB, text/plain)
2025-04-08 07:58 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.59 KB, application/x-xz)
2025-04-08 07:58 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,20.08 KB, application/x-xz)
2025-04-08 07:58 UTC, Toralf Förster
Details
kde-frameworks:kcodecs-5.116.0:20250407-235900.log (kde-frameworks:kcodecs-5.116.0:20250407-235900.log,29.37 KB, text/plain)
2025-04-08 07:58 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,45.35 KB, application/x-xz)
2025-04-08 07:58 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,39.07 KB, application/x-xz)
2025-04-08 07:58 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.14 KB, application/x-xz)
2025-04-08 07:58 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 2025-04-08 07:58:46 UTC
too long lines were shrinked:

[11/176] /usr/bin/x86_64-pc-linux-gnu-g++ -DKCODECS_DEPRECATED_WARNINGS_SINCE=0x0 -DKCODECS_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DKF5Codecs_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO
[12/176] /usr/bin/x86_64-pc-linux-gnu-g++ -DKCODECS_DEPRECATED_WARNINGS_SINCE=0x0 -DKCODECS_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DKF5Codecs_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO
[13/176] /usr/bin/x86_64-pc-linux-gnu-g++ -DKCODECS_DEPRECATED_WARNINGS_SINCE=0x0 -DKCODECS_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DKF5Codecs_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO
FAILED: src/CMakeFiles/KF5Codecs.dir/kcharsets.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DKCODECS_DEPRECATED_WARNINGS_SINCE=0x0 -DKCODECS_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DKF5Codecs_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_
In file included from /var/tmp/portage/kde-frameworks/kcodecs-5.116.0/work/kcodecs-5.116.0/src/kcharsets.cpp:15:
/var/tmp/portage/kde-frameworks/kcodecs-5.116.0/work/kcodecs-5.116.0/src/kentities.gperf:77:156: error: '__STDC_VERSION__' is not defined, evaluates to '0' [-Werror=undef]
   77 | Ouml, 0x00d6
      |                                                                                                                                                            ^               

  -------------------------------------------------------------------
  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd_test-20250403-164001

  KEYWORDED/UNMASKED

  [gcc-15] Requested by sam
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.2
llvm-config: 20.1.2
Python 3.12.9
go version go1.24.2 linux/amd64
  [1]   php8.2 *
  [2]   php8.4
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-bin-1.85.1
  [3]   rust-1.85.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm

  HEAD of ::gentoo
commit 8fe542807b60440f3078d7c842180b04fe679a86
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Apr 7 22:20:19 2025 +0000

    2025-04-07 22:20:19 UTC

 task: app-office/kraft

emerge -qpvO =kde-frameworks/kcodecs-5.116.0
[ebuild  NS   ] kde-frameworks/kcodecs-5.116.0 [6.12.0] USE="-debug -doc -test*"
Comment 1 Toralf Förster gentoo-dev 2025-04-08 07:58:47 UTC
Created attachment 923978 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-04-08 07:58:49 UTC
Created attachment 923979 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2025-04-08 07:58:51 UTC
Created attachment 923980 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-04-08 07:58:52 UTC
Created attachment 923981 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-04-08 07:58:54 UTC
Created attachment 923982 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-04-08 07:58:55 UTC
Created attachment 923983 [details]
kde-frameworks:kcodecs-5.116.0:20250407-235900.log
Comment 7 Toralf Förster gentoo-dev 2025-04-08 07:58:56 UTC
Created attachment 923984 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-04-08 07:58:57 UTC
Created attachment 923985 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-04-08 07:58:58 UTC
Created attachment 923986 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-08 07:59:55 UTC
Saw asturm discussing this already, this is gperf-3.2.
Comment 12 Larry the Git Cow gentoo-dev 2025-04-09 14:47:11 UTC
The bug has been closed via the following commit(s):

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

commit b977ded145274778cec27e8492f44bc1c50407cf
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-09 14:43:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-09 14:46:56 +0000

    dev-util/gperf: backport upstream fixes, especially for -Wundef
    
    Backport two fixes:
    * -Wundef with C++ which fixes kcodecs (KF5)
    * Test fix (didn't affect us but maybe could with Clang or something, harmless
      so let's pull it in)
    
    Closes: https://github.com/gentoo/gentoo/pull/41501
    Closes: https://bugs.gentoo.org/953407
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/gperf/Manifest                    |  1 +
 dev-util/gperf/files/gperf-3.2-tests.patch | 46 ++++++++++++++++++++++++++++++
 dev-util/gperf/gperf-3.2-r1.ebuild         | 30 +++++++++++++++++++
 3 files changed, 77 insertions(+)