Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895834 - x11-libs/vte-0.70.3 fails to compile (MUSL-CLANG-SYSTEM): vtepty.cc:577:16: error: integer value 234881535 is outside the valid range of values [0, 4095] for this enumeration type [-Wenum-constexpr-conversion]
Summary: x11-libs/vte-0.70.3 fails to compile (MUSL-CLANG-SYSTEM): vtepty.cc:577:16: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-22 08:28 UTC by Agostino Sarubbo
Modified: 2023-04-10 12:39 UTC (History)
0 users

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


Attachments
build.log.xz (build.log.xz,470.84 KB, application/x-xz)
2023-02-22 08:28 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-22 08:28:11 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-libs/vte-0.70.3 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-22 08:28:18 UTC
Created attachment 853830 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-22 08:28:20 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: src/libvte-2.91.so.0.7000.3.p/vtepty.cc.o 
../vte-0.70.3/src/vtepty.cc:577:16: error: integer value 234881535 is outside the valid range of values [0, 4095] for this enumeration type [-Wenum-constexpr-conversion]
Comment 3 Larry the Git Cow gentoo-dev 2023-04-10 12:39:10 UTC
The bug has been closed via the following commit(s):

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

commit ffa74c36cc92a3f4728892b8378e594df07028f6
Author:     brahmajit das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-04-01 07:56:47 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-04-10 12:37:52 +0000

    x11-libs/vte: Fix clang 16 build failure with -Wenum-constexpr-conversion
    
    GSpawnFlags is enum with max value 1 << 15 which means it fits into a
    short int, however here we are OR'ing VTE_SPAWN_* as well which have
    higher values
    
    Closes: https://bugs.gentoo.org/895834
    Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 ...value-is-outside-the-valid-range-clang-16.patch |  47 +++++++++
 x11-libs/vte/vte-0.70.3-r1.ebuild                  | 105 +++++++++++++++++++++
 2 files changed, 152 insertions(+)