Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937571 - app-text/qpdf-11.9.1 - [ncurses-6.5] [icu-75.1] [gcc-15] /.../cxx11.cc: error: uint8_t was not declared in this scope
Summary: app-text/qpdf-11.9.1 - [ncurses-6.5] [icu-75.1] [gcc-15] /.../cxx11.cc: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-08 11:47 UTC by Toralf Förster
Modified: 2024-08-08 12:43 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.32 KB, text/plain)
2024-08-08 11:47 UTC, Toralf Förster
Details
app-text:qpdf-11.9.1:20240808-104830.log (app-text:qpdf-11.9.1:20240808-104830.log,183.80 KB, text/plain)
2024-08-08 11:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,92.52 KB, text/plain)
2024-08-08 11:47 UTC, Toralf Förster
Details
environment (environment,108.15 KB, text/plain)
2024-08-08 11:47 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-08-08 11:47 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,38.98 KB, application/x-xz)
2024-08-08 11:47 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,185.24 KB, text/plain)
2024-08-08 11:47 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.83 KB, application/x-xz)
2024-08-08 11:47 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 2024-08-08 11:47:02 UTC
too long lines were shrinked:

[230/454] /usr/bin/x86_64-pc-linux-gnu-g++ -DPOINTERHOLDER_TRANSITION=4 -DQPDF_DISABLE_QTC=1 -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/include -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/libqpdf -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1_build/libqpdf  -O2 -
[231/454] /usr/bin/x86_64-pc-linux-gnu-g++ -DPOINTERHOLDER_TRANSITION=4 -DQPDF_DISABLE_QTC=1 -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/include -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/libqpdf -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1_build/libqpdf  -O2 -
[232/454] /usr/bin/x86_64-pc-linux-gnu-g++ -DPOINTERHOLDER_TRANSITION=4 -DQPDF_DISABLE_QTC=1 -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/include -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/libqpdf -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1_build/libqpdf  -O2 -
FAILED: libtests/CMakeFiles/cxx11.dir/cxx11.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DPOINTERHOLDER_TRANSITION=4 -DQPDF_DISABLE_QTC=1 -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/include -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/libqpdf -I/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1_build/libqpdf  -O2 -pipe -marc
/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/libtests/cxx11.cc: In function void do_inttypes():
/var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/libtests/cxx11.cc:75:16: error: uint8_t was not declared in this scope
   75 |     check_size<uint8_t>(1, false);
      |                ^~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma-20240806-191039

  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
    Requested by sam
  >=sys-libs/ncurses-6.5

  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.5
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   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 f18158d94fab6e62922d4d76d5c57da29acb33a6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Aug 8 09:34:46 2024 +0000

    2024-08-08 09:34:45 UTC

emerge -qpvO =app-text/qpdf-11.9.1
[ebuild  N    ] app-text/qpdf-11.9.1  USE="-doc -examples -gnutls -test -verify-sig"
Comment 1 Toralf Förster gentoo-dev 2024-08-08 11:47:03 UTC
Created attachment 899595 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-08 11:47:05 UTC
Created attachment 899596 [details]
app-text:qpdf-11.9.1:20240808-104830.log
Comment 3 Toralf Förster gentoo-dev 2024-08-08 11:47:06 UTC
Created attachment 899597 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-08-08 11:47:07 UTC
Created attachment 899598 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-08-08 11:47:08 UTC
Created attachment 899599 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-08 11:47:09 UTC
Created attachment 899600 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-08 11:47:10 UTC
Created attachment 899601 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-08-08 11:47:11 UTC
Created attachment 899602 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-08-08 12:43:59 UTC
The bug has been closed via the following commit(s):

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

commit 9c005c1fbae4fbea1f1b537579213a632ca357d1
Author:     Christopher Fore <csfore@posteo.net>
AuthorDate: 2024-08-08 12:26:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-08 12:43:30 +0000

    app-text/qpdf: Fix compilation on GCC 15
    
    - Patch is from upstream
    - Tests pass
    
    Error:
    /var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/libtests/cxx11.cc:75:16:
    error: `uint8_t' was not declared in this scope
       75 |     check_size<uint8_t>(1, false);
          |                ^~~~~~~
    
    /var/tmp/portage/app-text/qpdf-11.9.1/work/qpdf-11.9.1/libtests/cxx11.cc:10:1:
    note: `uint8_t' is defined in header `<cstdint>';
    this is probably fixable by adding `#include <cstdint>'
        9 | #include <regex>
      +++ |+#include <cstdint>
       10 | #include <type_traits>
    
    Closes: https://bugs.gentoo.org/937571
    Signed-off-by: Christopher Fore <csfore@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/38017
    Signed-off-by: Sam James <sam@gentoo.org>

 .../qpdf/files/qpdf-11.9.1-include-cstdint.patch   | 37 ++++++++++++++++++++++
 app-text/qpdf/qpdf-11.9.1.ebuild                   |  4 +++
 2 files changed, 41 insertions(+)