Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897874 - dev-util/rr-5.6.0-r2: build failure with gcc-13 (/.../SyscallRecordCase.generated: error: typename rr::X86Arch::statfs names rr::X86Arch::Syscalls rr::X86Ar)
Summary: dev-util/rr-5.6.0-r2: build failure with gcc-13 (/.../SyscallRecordCase.gener...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-02-26 09:56 UTC by Toralf Förster
Modified: 2023-04-12 06:26 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.54 KB, text/plain)
2023-02-26 09:56 UTC, Toralf Förster
Details
dev-util:rr-5.6.0-r2:20230226-045944.log (dev-util:rr-5.6.0-r2:20230226-045944.log,123.04 KB, text/plain)
2023-02-26 09:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,152.08 KB, text/plain)
2023-02-26 09:56 UTC, Toralf Förster
Details
environment (environment,146.30 KB, text/plain)
2023-02-26 09:56 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,703 bytes, application/x-bzip)
2023-02-26 09:56 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,18.39 KB, application/x-bzip)
2023-02-26 09:56 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.48 KB, application/x-bzip)
2023-02-26 09:56 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,39.00 KB, application/x-bzip)
2023-02-26 09:56 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 2023-02-26 09:56:42 UTC
too long lines were shrinked:

[110/141] /usr/bin/x86_64-pc-linux-gnu-g++ -DEXECINFO_H=1 -DFANOTIFY_H=1 -DMQUEUE_H=1 -DPROC_SERVICE_H=1 -DRR_VERSION=\"5.6.0\" -Drr_EXPORTS -I/var/tmp/portage/dev-util/rr-5.6.0-r2/work/rr-5.6.0/include -I/var/tmp/portage/dev-util/rr-5.6.0-r2/work/rr-5.6.0/third-party/proc-service -I/var/tmp/portage
FAILED: CMakeFiles/rr.dir/src/record_syscall.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DEXECINFO_H=1 -DFANOTIFY_H=1 -DMQUEUE_H=1 -DPROC_SERVICE_H=1 -DRR_VERSION=\"5.6.0\" -Drr_EXPORTS -I/var/tmp/portage/dev-util/rr-5.6.0-r2/work/rr-5.6.0/include -I/var/tmp/portage/dev-util/rr-5.6.0-r2/work/rr-5.6.0/third-party/proc-service -I/var/tmp/portage/dev-util/
In file included from /var/tmp/portage/dev-util/rr-5.6.0-r2/work/rr-5.6.0/src/record_syscall.cc:3628:
/var/tmp/portage/dev-util/rr-5.6.0-r2/work/rr-5.6.0_build/SyscallRecordCase.generated: In instantiation of rr::Switchable rr::rec_prepare_syscall_arch(RecordTask*, TaskSyscallState&, const Registers&) [with Arch = X86Arch]:
/var/tmp/portage/dev-util/rr-5.6.0-r2/work/rr-5.6.0/src/record_syscall.cc:5249:9:   required from here
/var/tmp/portage/dev-util/rr-5.6.0-r2/work/rr-5.6.0_build/SyscallRecordCase.generated:109:19: error: typename rr::X86Arch::statfs names rr::X86Arch::Syscalls rr::X86Arch::statfs, which is not a type
  109 |     syscall_state.reg_parameter<struct Arch::statfs>(2);
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-j5-20230224-222148

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.67.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 4a68785ba1fb5ba19064b295c8ee7220f26e5c83
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Feb 26 04:17:49 2023 +0000

    2023-02-26 04:17:48 UTC

emerge -qpvO dev-util/rr
[ebuild  N    ] dev-util/rr-5.6.0-r2  USE="multilib -test" PYTHON_SINGLE_TARGET="python3_10 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2023-02-26 09:56:43 UTC
Created attachment 854778 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-26 09:56:45 UTC
Created attachment 854780 [details]
dev-util:rr-5.6.0-r2:20230226-045944.log
Comment 3 Toralf Förster gentoo-dev 2023-02-26 09:56:46 UTC
Created attachment 854782 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-02-26 09:56:48 UTC
Created attachment 854784 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-02-26 09:56:49 UTC
Created attachment 854786 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-02-26 09:56:49 UTC
Created attachment 854788 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-02-26 09:56:50 UTC
Created attachment 854790 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2023-02-26 09:56:51 UTC
Created attachment 854792 [details]
temp.tar.bz2
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-12 06:17:47 UTC
Actually a GCC 13 issue, it seems!
Comment 10 Larry the Git Cow gentoo-dev 2023-04-12 06:26:19 UTC
The bug has been closed via the following commit(s):

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

commit f5e0ac5711c94279073106adf04977cb07db37c7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-12 06:25:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-12 06:26:08 +0000

    dev-util/rr: backport gcc 13 workaround; add epoll_pwait2 support
    
    Only really doing the epoll_pwait2 bit because it touches the same
    files as the gcc 13 workaround.
    
    Closes: https://bugs.gentoo.org/897874
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/rr/files/rr-5.6.0-epoll_pwait2.patch     |  78 ++++++++
 dev-util/rr/files/rr-5.6.0-gcc13-workaround.patch | 222 ++++++++++++++++++++++
 dev-util/rr/rr-5.6.0-r3.ebuild                    |  89 +++++++++
 3 files changed, 389 insertions(+)