Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801256 - sys-libs/compiler-rt-sanitizers-12.0.0 fails to build with linux-headers-5.13: sanitizer_platform_limits_posix.cpp:146:10: fatal error: 'linux/cyclades.h' file not found
Summary: sys-libs/compiler-rt-sanitizers-12.0.0 fails to build with linux-headers-5.13...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-07-08 20:43 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-08-07 21:04 UTC (History)
4 users (show)

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


Attachments
0001-libsanitizer-Remove-cyclades-inclusion-in-sanitizer.patch (0001-libsanitizer-Remove-cyclades-inclusion-in-sanitizer.patch,4.35 KB, patch)
2021-07-08 20:43 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-08 20:43:43 UTC
Created attachment 722851 [details, diff]
0001-libsanitizer-Remove-cyclades-inclusion-in-sanitizer.patch

Similar to bug #800695 upstream linux-headers-5.13 dropped 'linux/cyclades.h' include. This causes build failure:

FAILED: lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_platform_limits_posix.cpp.o
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-clang++ -DHAVE_RPC_XDR_H=0 -I/dev/shm/portage/sys-libs/compiler-rt-sanitizers-12.0.0/work/compiler-rt/lib/sanitizer_common/..  -O2 -pipe -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 -MD -MT lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_platform_limits_posix.cpp.o -MF lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_platform_limits_posix.cpp.o.d -o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_platform_limits_posix.cpp.o -c /dev/shm/portage/sys-libs/compiler-rt-sanitizers-12.0.0/work/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
/dev/shm/portage/sys-libs/compiler-rt-sanitizers-12.0.0/work/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 fix is https://reviews.llvm.org/D102059
Comment 1 John Einar Reitan 2021-07-14 23:00:08 UTC
Same header causing gcc-10.3.0-r1 to fail to build.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-07 20:59:23 UTC
(In reply to John Einar Reitan from comment #1)
> Same header causing gcc-10.3.0-r1 to fail to build.

You need -r2.
Comment 3 Alexandra Parker 2021-08-07 21:02:55 UTC
This is fixed for me in 12.0.1
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-07 21:04:14 UTC
(In reply to Alexandra Parker from comment #3)
> This is fixed for me in 12.0.1

Thanks!