Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919287 - games-engines/odamex-10.4.0-r1 - [clang] /.../m_wdlstats.cpp: error: non-constant-expression cannot be narrowed from type size_type (aka unsigned long) to int
Summary: games-engines/odamex-10.4.0-r1 - [clang] /.../m_wdlstats.cpp: error: non-cons...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-05 16:05 UTC by Toralf Förster
Modified: 2024-04-28 20:08 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.96 KB, text/plain)
2023-12-05 16:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,126.62 KB, text/plain)
2023-12-05 16:05 UTC, Toralf Förster
Details
environment (environment,125.14 KB, text/plain)
2023-12-05 16:05 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2023-12-05 16:05 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,19.35 KB, application/x-xz)
2023-12-05 16:05 UTC, Toralf Förster
Details
games-engines:odamex-10.4.0-r1:20231205-151330.log.xz (games-engines:odamex-10.4.0-r1:20231205-151330.log.xz,31.07 KB, application/x-xz)
2023-12-05 16:05 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,7.73 KB, application/x-xz)
2023-12-05 16:05 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,213.72 KB, text/plain)
2023-12-05 16:05 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,74.57 KB, application/x-xz)
2023-12-05 16:05 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,7.66 KB, application/x-xz)
2023-12-05 16:05 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-12-05 16:05:02 UTC
too long lines were shrinked:

/var/tmp/portage/games-engines/odamex-10.4.0-r1/work/odamex-src-10.4.0/common/d_player.h:282:4: warning: definition of implicit copy assignment operator for 'oldPacket_t' is deprecated because it has a user-provided copy constructor [-Wdeprecated-copy-with-user-provided-copy]
  282 |                         oldPacket_t(const oldPacket_t& other)
      |                         ^
/var/tmp/portage/games-engines/odamex-10.4.0-r1/work/odamex-src-10.4.0/common/d_player.h:384:19: note: in implicit copy assignment operator for 'player_s::client_t::oldPacket_t' first required here
  384 |                                 oldpackets[i] = other.oldpackets[i];
      |                                               ^
/var/tmp/portage/games-engines/odamex-10.4.0-r1/work/odamex-src-10.4.0/common/m_wdlstats.cpp:181:6: error: non-constant-expression cannot be narrowed from type 'size_type' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing]
  181 |             ::wdlplayers.size() + 1,
      |             ^~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd_merged_usr-20231203-121010

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

CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21 

php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 0f96e18a7da9084d2ec370f6c125b90a8558c00e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 5 14:32:04 2023 +0000

    2023-12-05 14:32:03 UTC

emerge -qpvO games-engines/odamex
[ebuild  N    ] games-engines/odamex-10.4.0-r1  USE="X master server upnp -client -hidpi -odalaunch -portmidi"
Comment 1 Toralf Förster gentoo-dev 2023-12-05 16:05:03 UTC
Created attachment 877511 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-05 16:05:04 UTC
Created attachment 877512 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-05 16:05:07 UTC
Created attachment 877513 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-05 16:05:08 UTC
Created attachment 877514 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-05 16:05:09 UTC
Created attachment 877515 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-05 16:05:10 UTC
Created attachment 877516 [details]
games-engines:odamex-10.4.0-r1:20231205-151330.log.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-05 16:05:11 UTC
Created attachment 877517 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-05 16:05:14 UTC
Created attachment 877518 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2023-12-05 16:05:15 UTC
Created attachment 877519 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-05 16:05:16 UTC
Created attachment 877520 [details]
var.tmp.clang.tar.xz
Comment 11 jy6x2b32pie9 2024-03-25 13:42:58 UTC
Upstream bug https://github.com/odamex/odamex/issues/945

See also upstream bug: https://github.com/odamex/odamex/issues/826