Summary: | sys-fs/extundelete-0.2.4-r1 fails to compile w/clang: extundelete.cc:1271:28: error: non-constant-expression cannot be narrowed from type 'int' to 'ext2_ino_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: |
build.log
clang patch |
Description
Agostino Sarubbo
![]() Created attachment 648966 [details]
build.log
build log and emerge --info
Deninitely only happens with CLang. I stumbled upon the same problem right now. GCC works fine. Created attachment 741954 [details, diff]
clang patch
(In reply to Stephan Hartmann from comment #3) > Created attachment 741954 [details, diff] [details, diff] > clang patch I tried the patch via userpatches and it works fine again now. Thank you! tinderbox has reproduced this issue with version 0.2.4-r1 - Updating summary. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=067e25699b6489f41459d159976a8231a53f9a82 commit 067e25699b6489f41459d159976a8231a53f9a82 Author: Stephan Hartmann <sultan@gentoo.org> AuthorDate: 2022-04-05 03:39:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-05 03:40:26 +0000 sys-fs/extundelete: swap Clang patch Closes: https://bugs.gentoo.org/732284 Signed-off-by: Sam James <sam@gentoo.org> sys-fs/extundelete/files/extundelete-0.2.4-clang.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b1800e098380bf90979347622a1db4d6ad36677 commit 6b1800e098380bf90979347622a1db4d6ad36677 Author: Denis Pronin <dannftk@yandex.ru> AuthorDate: 2022-03-19 10:13:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-05 03:37:32 +0000 sys-fs/extundelete: fix build with clang patched src/extundelete.cc so that clang is not swearing on implicit narrowing Signed-off-by: Denis Pronin <dannftk@yandex.ru> Bug: https://bugs.gentoo.org/732284 Closes: https://github.com/gentoo/gentoo/pull/24658 Signed-off-by: Sam James <sam@gentoo.org> sys-fs/extundelete/extundelete-0.2.4-r1.ebuild | 2 +- sys-fs/extundelete/files/extundelete-0.2.4-clang.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc46593ebca08e5c2489e5cb464ca9fc8322ddd5 commit fc46593ebca08e5c2489e5cb464ca9fc8322ddd5 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-05 03:42:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-05 03:42:56 +0000 sys-fs/extundelete: apply clang patch in ~arch Just in case, given while it _shouldn't_ make a runtime difference, it could. Bug: https://bugs.gentoo.org/732284 Signed-off-by: Sam James <sam@gentoo.org> sys-fs/extundelete/extundelete-0.2.4-r1.ebuild | 7 ++----- sys-fs/extundelete/extundelete-0.2.4-r2.ebuild | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) |