Summary: | sys-devel/clang-18.1.3 crashes building ncnn (was: dev-libs/ncnn-20240410 - [clang] fatal error: error in backend: Cannot select: <snip>: v32bf16 = insert_subvector <snip>, <snip>, Constant:i64<16>) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ionen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
dev-libs:ncnn-20240410:20240412-162707.log.xz emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz qlist-info.txt temp.tar.xz var.tmp.clang.tar.xz |
Description
Toralf Förster
2024-04-12 16:50:17 UTC
Created attachment 890524 [details]
emerge-info.txt
Created attachment 890525 [details]
dev-libs:ncnn-20240410:20240412-162707.log.xz
Created attachment 890526 [details]
emerge-history.txt
Created attachment 890527 [details]
environment
Created attachment 890528 [details]
etc.clang.tar.xz
Created attachment 890529 [details]
etc.portage.tar.xz
Created attachment 890530 [details]
qlist-info.txt
Created attachment 890531 [details]
temp.tar.xz
Created attachment 890532 [details]
var.tmp.clang.tar.xz
Re-assigning to llvm@ given clang crashed and seems it is a clang-18 regression (can't reproduce with 17.0.6, but can with 18.1.3) Also happens when building older ncnn, so this is not related to the new version. I'll check if I can figure out a temporary workaround for the ncnn ebuild meanwhile. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caaafbb24b1124c87255ce52747f6a5f45a2651b commit caaafbb24b1124c87255ce52747f6a5f45a2651b Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-04-12 19:30:00 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-04-12 19:36:00 +0000 dev-libs/ncnn: disable avx512bf16 code path with >=clang-18 for now clang-18 itself crashes otherwise. wrt bug #929228, please remember to override this workaround to reproduce, aka: MYCMAKEARGS="-DNCNN_AVX512BF16=ON" Bug: https://bugs.gentoo.org/929228 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> dev-libs/ncnn/ncnn-20240102-r1.ebuild | 4 ++++ dev-libs/ncnn/ncnn-20240410.ebuild | 4 ++++ 2 files changed, 8 insertions(+) |