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

Bug 937529

Summary: x11-wm/herbstluftwm-0.9.5-r2 - [icu-75.1] [gcc-15] /.../xconnection.cpp: error: uint8_t was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Florian Schmaus <flow>
Status: RESOLVED FIXED    
Severity: normal CC: toralf
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/herbstluftwm/herbstluftwm/issues/1612
https://github.com/herbstluftwm/herbstluftwm/pull/1613
https://github.com/gentoo/gentoo/pull/41016
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 932474    
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt.xz
temp.tar.xz
x11-wm:herbstluftwm-0.9.5-r2:20240807-120509.log

Description Toralf Förster gentoo-dev 2024-08-07 17:33:39 UTC
too long lines were shrinked:

[61/75] /usr/bin/x86_64-pc-linux-gnu-g++  -isystem /usr/include/freetype2  -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -std=gnu++11 -fno-diagnostics-color -MD -MT src/CMakeFiles/herbstluftwm.dir/x11-types.cpp.o -MF src/CMakeFiles/herbstluftwm.dir/x11-types.cpp.o.d -o sr
[62/75] /usr/bin/x86_64-pc-linux-gnu-g++  -isystem /usr/include/freetype2  -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -std=gnu++11 -fno-diagnostics-color -MD -MT src/CMakeFiles/herbstluftwm.dir/theme.cpp.o -MF src/CMakeFiles/herbstluftwm.dir/theme.cpp.o.d -o src/CMakeF
[63/75] /usr/bin/x86_64-pc-linux-gnu-g++  -isystem /usr/include/freetype2  -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -std=gnu++11 -fno-diagnostics-color -MD -MT src/CMakeFiles/herbstluftwm.dir/xconnection.cpp.o -MF src/CMakeFiles/herbstluftwm.dir/xconnection.cpp.o.d -
FAILED: src/CMakeFiles/herbstluftwm.dir/xconnection.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++  -isystem /usr/include/freetype2  -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -std=gnu++11 -fno-diagnostics-color -MD -MT src/CMakeFiles/herbstluftwm.dir/xconnection.cpp.o -MF src/CMakeFiles/herbstluftwm.dir/xconnection.cpp.o.d -o src/CM
/var/tmp/portage/x11-wm/herbstluftwm-0.9.5-r2/work/herbstluftwm-0.9.5/src/xconnection.cpp: In function 'std::string iso_8859_1_to_utf8(const char*)':
/var/tmp/portage/x11-wm/herbstluftwm-0.9.5-r2/work/herbstluftwm-0.9.5/src/xconnection.cpp:295:9: error: 'uint8_t' was not declared in this scope
  295 |         uint8_t ch = source[i];
      |         ^~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened_systemd-20240801-090532

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.5 linux/amd64

  HEAD of ::gentoo
commit 1747bfdd7502262142a17bdca1bfb528208ae4ee
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Aug 7 11:49:22 2024 +0000

    2024-08-07 11:49:22 UTC

emerge -qpvO x11-wm/herbstluftwm
[ebuild  N    ] x11-wm/herbstluftwm-0.9.5-r2  USE="doc -python -test" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2024-08-07 17:33:40 UTC
Created attachment 899430 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-07 17:33:42 UTC
Created attachment 899431 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-08-07 17:33:43 UTC
Created attachment 899432 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-08-07 17:33:44 UTC
Created attachment 899433 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-08-07 17:33:45 UTC
Created attachment 899434 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-07 17:33:46 UTC
Created attachment 899435 [details]
qlist-info.txt.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-07 17:33:47 UTC
Created attachment 899436 [details]
temp.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-08-07 17:33:49 UTC
Created attachment 899437 [details]
x11-wm:herbstluftwm-0.9.5-r2:20240807-120509.log
Comment 9 Larry the Git Cow gentoo-dev 2025-03-11 12:23:48 UTC
The bug has been closed via the following commit(s):

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

commit 55a041d766c2b0030ffe12f9c5926f4a76a87280
Author:     Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
AuthorDate: 2025-03-11 11:40:07 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2025-03-11 12:21:12 +0000

    x11-wm/herbstluftwm: add patch to fix building with gcc 15
    
    Closes: https://bugs.gentoo.org/937529
    Signed-off-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/41016
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../files/herbstluftwm-0.9.5-gcc15.patch           | 32 ++++++++++++++++++++++
 x11-wm/herbstluftwm/herbstluftwm-0.9.5-r2.ebuild   |  6 +++-
 2 files changed, 37 insertions(+), 1 deletion(-)