Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940326 - games-arcade/jazz2-2.8.0 - [gcc-15] /.../Algorithms.cpp: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: games-arcade/jazz2-2.8.0 - [gcc-15] /.../Algorithms.cpp: error: dereferencing...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-09-27 07:15 UTC by Toralf Förster
Modified: 2024-10-01 09:35 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.25 KB, text/plain)
2024-09-27 07:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,93.44 KB, text/plain)
2024-09-27 07:15 UTC, Toralf Förster
Details
environment (environment,101.45 KB, text/plain)
2024-09-27 07:15 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-09-27 07:15 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,15.93 KB, application/x-xz)
2024-09-27 07:15 UTC, Toralf Förster
Details
games-arcade:jazz2-2.8.0:20240926-232636.log (games-arcade:jazz2-2.8.0:20240926-232636.log,41.89 KB, text/plain)
2024-09-27 07:15 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,190.99 KB, text/plain)
2024-09-27 07:15 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.43 KB, application/x-xz)
2024-09-27 07:15 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-09-27 07:15:42 UTC
too long lines were shrinked:

[20/292] /usr/bin/x86_64-pc-linux-gnu-g++ -DCMAKE_BUILD -DDEATH_CPU_USE_IFUNC -DDEATH_CPU_USE_RUNTIME_DISPATCH -DDEATH_TRACE -DDEATH_USE_GMTOFF_IN_TM -DGLFW_NO_GLU -DNCINE_BUILD_YEAR=\"2024\" -DNCINE_LINUX_PACKAGE=\"jazz2\" -DNCINE_VERSION=\"2.8.0\" -DWITH_AUDIO -DWITH_EMBEDDED_SHADERS -DWITH_GLFW -
[21/292] /usr/bin/x86_64-pc-linux-gnu-g++ -DCMAKE_BUILD -DDEATH_CPU_USE_IFUNC -DDEATH_CPU_USE_RUNTIME_DISPATCH -DDEATH_TRACE -DDEATH_USE_GMTOFF_IN_TM -DGLFW_NO_GLU -DNCINE_BUILD_YEAR=\"2024\" -DNCINE_LINUX_PACKAGE=\"jazz2\" -DNCINE_VERSION=\"2.8.0\" -DWITH_AUDIO -DWITH_EMBEDDED_SHADERS -DWITH_GLFW -
[22/292] /usr/bin/x86_64-pc-linux-gnu-g++ -DCMAKE_BUILD -DDEATH_CPU_USE_IFUNC -DDEATH_CPU_USE_RUNTIME_DISPATCH -DDEATH_TRACE -DDEATH_USE_GMTOFF_IN_TM -DGLFW_NO_GLU -DNCINE_BUILD_YEAR=\"2024\" -DNCINE_LINUX_PACKAGE=\"jazz2\" -DNCINE_VERSION=\"2.8.0\" -DWITH_AUDIO -DWITH_EMBEDDED_SHADERS -DWITH_GLFW -
FAILED: CMakeFiles/jazz2.dir/Sources/nCine/Base/Algorithms.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DCMAKE_BUILD -DDEATH_CPU_USE_IFUNC -DDEATH_CPU_USE_RUNTIME_DISPATCH -DDEATH_TRACE -DDEATH_USE_GMTOFF_IN_TM -DGLFW_NO_GLU -DNCINE_BUILD_YEAR=\"2024\" -DNCINE_LINUX_PACKAGE=\"jazz2\" -DNCINE_VERSION=\"2.8.0\" -DWITH_AUDIO -DWITH_EMBEDDED_SHADERS -DWITH_GLFW -DWITH_OPE
/var/tmp/portage/games-arcade/jazz2-2.8.0/work/jazz2-native-2.8.0/Sources/nCine/Base/Algorithms.cpp: In function uint32_t nCine::as_uint32(float):
/var/tmp/portage/games-arcade/jazz2-2.8.0/work/jazz2-native-2.8.0/Sources/nCine/Base/Algorithms.cpp:250:25: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  250 |                 return *(std::uint32_t*)&x;
      |                         ^~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened_systemd-20240925-080506

  UNMASKED:
  /etc/portage/package.unmask/60gcc:<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/llvm (if any):
clang version 19.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/19/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/19
19.1.0
Python 3.12.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.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]
Available Java Virtual Machines:
  [1]   openjdk-bin-17 
  [2]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.3 *
go version go1.23.1 linux/amd64

  HEAD of ::gentoo
commit d676f56a6055d42a4fcf70008af95542d937287f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Sep 26 21:50:59 2024 +0000

    2024-09-26 21:50:58 UTC

emerge -qpvO =games-arcade/jazz2-2.8.0
[ebuild  N    ] games-arcade/jazz2-2.8.0  USE="openal -sdl"
Comment 1 Toralf Förster gentoo-dev 2024-09-27 07:15:44 UTC
Created attachment 903953 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-09-27 07:15:45 UTC
Created attachment 903954 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-09-27 07:15:46 UTC
Created attachment 903955 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-09-27 07:15:47 UTC
Created attachment 903956 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-09-27 07:15:47 UTC
Created attachment 903957 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-09-27 07:15:48 UTC
Created attachment 903958 [details]
games-arcade:jazz2-2.8.0:20240926-232636.log
Comment 7 Toralf Förster gentoo-dev 2024-09-27 07:15:50 UTC
Created attachment 903959 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-09-27 07:15:51 UTC
Created attachment 903960 [details]
temp.tar.xz
Comment 9 James Le Cuirot gentoo-dev 2024-09-27 08:32:42 UTC
This bug is actually a pleasant surprise, as I'd been meaning to bump to the new C++ implementation for ages but had never got around to it.

Nice to meet you, arkamar. Thank you for doing this. I don't know if you're interested in other games and would like to join the team. If not, please just give us a heads up when touching these.
Comment 10 Larry the Git Cow gentoo-dev 2024-10-01 09:35:06 UTC
The bug has been closed via the following commit(s):

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

commit 0a662a6a35bff692c5b7fbad7cee6a8ea2f8ce09
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-10-01 08:44:21 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-10-01 09:34:08 +0000

    games-arcade/jazz2: apply strict aliasing fix
    
    Closes: https://bugs.gentoo.org/940326
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 .../jazz2/files/jazz2-2.8.0-strict-aliasing.patch  | 33 ++++++++++++++++++++++
 .../{jazz2-2.8.0.ebuild => jazz2-2.8.0-r1.ebuild}  |  1 +
 2 files changed, 34 insertions(+)