sys-devel/llvm-roc-4.2.0 fails to compile with sys-kernel/linux-headers-5.13 due to cyclades removal. Reproducible: Always Actual Results: FAILED: projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_platform_limits_posix.cpp.o /usr/lib/llvm/12/bin/clang++ -DHAVE_RPC_XDR_H=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/compiler-rt/lib/sanitizer_common -I/tmp/portage/sys-devel/llvm-roc-4.2.0/work/llvm-project-rocm-4.2.0/compiler-rt/lib/sanitizer_common -Iinclude -I/tmp/portage/sys-devel/llvm-roc-4.2.0/work/llvm-project-rocm-4.2.0/llvm/include -I/tmp/portage/sys-devel/llvm-roc-4.2.0/work/llvm-project-rocm-4.2.0/compiler-rt/lib/sanitizer_common/.. -DNDEBUG -march=nocona -mtune=native -O2 -pipe -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -std=c++14 -Wno-unused-parameter -m64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -nostdinc++ -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -std=c++14 -MD -MT projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_platform_limits_posix.cpp.o -MF projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_platform_limits_posix.cpp.o.d -o projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_platform_limits_posix.cpp.o -c /tmp/portage/sys-devel/llvm-roc-4.2.0/work/llvm-project-rocm-4.2.0/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp /tmp/portage/sys-devel/llvm-roc-4.2.0/work/llvm-project-rocm-4.2.0/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:146:10: fatal error: 'linux/cyclades.h' file not found #include <linux/cyclades.h> ^~~~~~~~~~~~~~~~~~ 1 error generated. Upstream has a fix for it here: https://github.com/RadeonOpenCompute/llvm-project/commit/68d5235cb58f988c71b403334cd9482d663841ab#diff-d8dd05a3dee58959cd023ef105f48682730702fa0aa24032e5a4fc5500b36d4e
Proposed the fix as https://github.com/gentoo/gentoo/pull/21568
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21bed19cb90bf71c63d9e42557af1a6cc39a1989 commit 21bed19cb90bf71c63d9e42557af1a6cc39a1989 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-07-08 18:14:01 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2021-07-08 19:04:44 +0000 sys-devel/llvm-roc: fix linux-headers-5.13 build Backport #include <linux/cyclades.h> uptream removal. Reported-by: cyrillic Closes: https://bugs.gentoo.org/800695 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/21568 Signed-off-by: Craig Andrews <candrews@gentoo.org> .../llvm-roc/files/llvm-roc-4.2.0-cyclades.patch | 86 ++++++++++++++++++++++ sys-devel/llvm-roc/llvm-roc-4.2.0.ebuild | 1 + 2 files changed, 87 insertions(+)
*** Bug 804438 has been marked as a duplicate of this bug. ***