Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905430 - gnome-extra/cjs: fails to compile with with >=sys-devel/clang-15 (w/ libcxx) (error: static assertion failed due to requirement '__libcpp_random_is_valid_inttype<char32_t>::value': IntType must be a supported integer type)
Summary: gnome-extra/cjs: fails to compile with with >=sys-devel/clang-15 (w/ libcxx) ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Turnbull
URL: https://gitlab.gnome.org/GNOME/gjs/-/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: systemwide-libcxx
  Show dependency tree
 
Reported: 2023-05-01 17:36 UTC by Walter
Modified: 2023-05-05 05:08 UTC (History)
3 users (show)

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


Attachments
build.log whith error exit (build.log,119.97 KB, text/x-log)
2023-05-01 17:57 UTC, Walter
Details
emerge --info (info.txt,20.04 KB, text/plain)
2023-05-01 17:58 UTC, Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter 2023-05-01 17:36:53 UTC
Trying to build cjs with clang-15.0.7 and libcxx fails with
"/usr/include/c++/v1/__random/uniform_int_distribution.h:162:5: error: static assertion failed due to requirement '__libcpp_random_is_valid_inttype<char32_t>::value': IntType must be a supported integer type
    static_assert(__libcpp_random_is_valid_inttype<_IntType>::value, "IntType must be a supported integer type");"

Reproducible: Always

Steps to Reproduce:
1.Use clang >=15 as compiler
2.Use libcxx as libc (don't know if it does make the difference)
3.Watch it fail
Actual Results:  
A build fail

Expected Results:  
A successful build

a patch found on the aforementioned gitlab page fixes the issue and cjs compiles fine.

The patch is -sorry- mentioned in the URL, since my account can't post links for the next 24 hours and I'll sure forget about it within two hours.
Comment 1 Walter 2023-05-01 17:44:23 UTC
I've submitted the issue upstream, it's the cjs github page, issue 115
sorry, no links allowed for me right now.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-01 17:48:06 UTC
Please in future include the full build.log and emerge --info (this time if you can too). Thanks!
Comment 3 Walter 2023-05-01 17:57:19 UTC
Created attachment 861021 [details]
build.log whith error exit
Comment 4 Walter 2023-05-01 17:58:30 UTC
Created attachment 861022 [details]
emerge --info
Comment 5 Walter 2023-05-01 17:59:18 UTC
Thank you for your really, really quick (that was immediate, how'd you do that?) response and friendly reply!
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-05 05:08:31 UTC
Thank you! Sorry, I forgot to finish this off, done now. :)
Comment 7 Larry the Git Cow gentoo-dev 2023-05-05 05:08:54 UTC
The bug has been closed via the following commit(s):

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

commit 365603f75e075df14603daa916aceb3d9519f3cd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-05 05:08:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-05 05:08:19 +0000

    gnome-extra/cjs: fix build w/ clang 15
    
    Closes: https://bugs.gentoo.org/905430
    Signed-off-by: Sam James <sam@gentoo.org>

 gnome-extra/cjs/cjs-5.6.1.ebuild              |  4 +++
 gnome-extra/cjs/files/cjs-5.6.1-clang15.patch | 50 +++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)