Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948388 - app-emulation/pcem-17_p20241210 - [gcc-15] [ffmpeg] x87_ops_arith.h: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: app-emulation/pcem-17_p20241210 - [gcc-15] [ffmpeg] x87_ops_arith.h: error: d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2025-01-19 10:13 UTC by Toralf Förster
Modified: 2025-03-13 08:59 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.73 KB, text/plain)
2025-01-19 10:13 UTC, Toralf Förster
Details
app-emulation:pcem-17_p20241210:20250119-033004.log.xz (app-emulation:pcem-17_p20241210:20250119-033004.log.xz,4.85 KB, application/x-xz)
2025-01-19 10:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,75.64 KB, text/plain)
2025-01-19 10:13 UTC, Toralf Förster
Details
environment (environment,113.29 KB, text/plain)
2025-01-19 10:13 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.21 KB, application/x-xz)
2025-01-19 10:13 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,25.14 KB, application/x-xz)
2025-01-19 10:13 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,21.07 KB, application/x-xz)
2025-01-19 10:13 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,191.95 KB, text/plain)
2025-01-19 10:13 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,25.80 KB, application/x-xz)
2025-01-19 10: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 2025-01-19 10:13:41 UTC
too long lines were shrinked:

FAILED: src/CMakeFiles/pcem.dir/cpu/808x.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DPCEM_VERSION_STRING=\"vNext\" -DPLUGIN_DIR=\"/usr/share/pcem/plugins\" -DPLUGIN_ENGINE -DRELEASE_BUILD -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/var/tmp/portage/app-emulation/pcem-17_p20241210/work/pcem-bd1283b91282d522617ac6d29eb0f271ded83ffc/includes/pri
In file included from /var/tmp/portage/app-emulation/pcem-17_p20241210/work/pcem-bd1283b91282d522617ac6d29eb0f271ded83ffc/includes/private/cpu/x87_ops.h:274,
                 from /var/tmp/portage/app-emulation/pcem-17_p20241210/work/pcem-bd1283b91282d522617ac6d29eb0f271ded83ffc/includes/private/cpu/8087.h:86,
                 from /var/tmp/portage/app-emulation/pcem-17_p20241210/work/pcem-bd1283b91282d522617ac6d29eb0f271ded83ffc/src/cpu/808x.c:1216:
/var/tmp/portage/app-emulation/pcem-17_p20241210/work/pcem-bd1283b91282d522617ac6d29eb0f271ded83ffc/includes/private/cpu/x87_ops_arith.h: In function opFCOMPP:
/var/tmp/portage/app-emulation/pcem-17_p20241210/work/pcem-bd1283b91282d522617ac6d29eb0f271ded83ffc/includes/private/cpu/x87_ops_arith.h:186:14: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  186 |         if (*(uint64_t *)&ST(0) == ((uint64_t)1 << 63) && *(uint64_t *)&ST(1) == 0)
/var/tmp/portage/app-emulation/pcem-17_p20241210/work/pcem-bd1283b91282d522617ac6d29eb0f271ded83ffc/includes/private/cpu/x87_ops_arith.h:186:60: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome-20250117-120003

  UNMASKED:

    n/a
  >=media-video/ffmpeg-7.0

    n/a
  <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 19.1.7
llvm-config: 19.1.7
Python 3.12.8
go version go1.23.5 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.84.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 298fe876b72bb8d0df706f70ba9151b35ee0d87e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jan 19 01:48:20 2025 +0000

    2025-01-19 01:48:19 UTC

emerge -qpvO =app-emulation/pcem-17_p20241210
[ebuild  N    ] app-emulation/pcem-17_p20241210  USE="alsa plugins wayland (-experimental) -networking"
Comment 1 Toralf Förster gentoo-dev 2025-01-19 10:13:42 UTC
Created attachment 917062 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-01-19 10:13:43 UTC
Created attachment 917063 [details]
app-emulation:pcem-17_p20241210:20250119-033004.log.xz
Comment 3 Toralf Förster gentoo-dev 2025-01-19 10:13:44 UTC
Created attachment 917064 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-01-19 10:13:45 UTC
Created attachment 917065 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-01-19 10:13:46 UTC
Created attachment 917066 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-01-19 10:13:47 UTC
Created attachment 917067 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-01-19 10:13:48 UTC
Created attachment 917068 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-01-19 10:13:50 UTC
Created attachment 917069 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2025-01-19 10:13:51 UTC
Created attachment 917070 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-13 07:23:19 UTC
Emulators are notoriously nasty, but took an extremely brief look at recent commits, and then noticed https://github.com/sarah-walker-pcem/pcem/commit/e1fba7a7b4418e58e8c595619106d7a3df6b4db4.

I have a feeling that our RelWithDebInfo CMake release type means that -fno-strict-aliasing doesn't get passed. Sigh, CMake..
Comment 11 Larry the Git Cow gentoo-dev 2025-03-13 08:59:19 UTC
The bug has been closed via the following commit(s):

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

commit f83903b06e8fe76fcb9d3e36d239a0a5f006a1e3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-13 08:58:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-13 08:58:30 +0000

    app-emulation/pcem: pass -fno-strict-aliasing as upstream intended
    
    Using RelWithDebInfo as the CMake release type instead of Release means
    this flag doesn't get added as upstream intended.
    
    Closes: https://bugs.gentoo.org/948388
    Signed-off-by: Sam James <sam@gentoo.org>

 .../pcem/{pcem-17_p20241210.ebuild => pcem-17_p20241210-r1.ebuild} | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)