Summary: | sys-libs/compiler-rt-sanitizers-5.0.2 - lib/sanitizer_common/sanitizer_platform_limits_posix.cc:162:10: fatal error: 'sys/ustat.h' file not found | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
0001-sanitizer-Use-pre-computed-size-of-struct-ustat-for-.patch |
Description
Martin Mokrejš
2019-01-16 22:49:16 UTC
Created attachment 561678 [details]
build.log
Seems I have too new glibc. Created attachment 561862 [details, diff] 0001-sanitizer-Use-pre-computed-size-of-struct-ustat-for-.patch I'm going to guess the following commit fixes it: commit 521935db9de17ad08748fd050137ac83b7734835 Author: Craig Topper <craig.topper@intel.com> Date: Thu May 24 19:59:47 2018 sanitizer: Use pre-computed size of struct ustat for Linux <sys/ustat.h> has been removed from glibc 2.28 by: commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7 Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> Date: Sun Mar 18 11:28:59 2018 +0800 Deprecate ustat syscall interface This patch uses pre-computed size of struct ustat for Linux to fix https://bugs.llvm.org/show_bug.cgi?id=37418 Patch by H.J. Lu. Differential Revision: https://reviews.llvm.org/D47281 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333213 91177308-0d34-0410-b5e6-96231b3b80d8 I've verified that it applies cleanly but I don't have the resources to build this old version right now. Could you test the attached patch and let me know if it fixes the issue? Thank you for the patch, indeed, it applied and compiled now smoothly with 5.0.2, also 4.0.1. It was not needed for 6.0.1 to compile. Seems I should drop the old versions accumulating on my system and keep just 7.0.1: # emerge --unmerge compiler-rt-sanitizers * This action can remove important packages! In order to be safer, use * `emerge -pv --depclean <atom>` to check for reverse dependencies before * removing packages. sys-libs/compiler-rt-sanitizers selected: 4.0.0 4.0.1 5.0.0 5.0.1 5.0.2 6.0.0 6.0.1 7.0.0 7.0.1 protected: none omitted: none All selected packages: =sys-libs/compiler-rt-sanitizers-5.0.0 =sys-libs/compiler-rt-sanitizers-7.0.0 =sys-libs/compiler-rt-sanitizers-7.0.1 =sys-libs/compiler-rt-sanitizers-6.0.1 =sys-libs/compiler-rt-sanitizers-6.0.0 =sys-libs/compiler-rt-sanitizers-5.0.2 =sys-libs/compiler-rt-sanitizers-4.0.0 =sys-libs/compiler-rt-sanitizers-4.0.1 =sys-libs/compiler-rt-sanitizers-5.0.1 >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5^C The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=591e569f5896eefcfe2094b4f6e444d73dea6359 commit 591e569f5896eefcfe2094b4f6e444d73dea6359 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-01-17 18:44:36 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-01-18 22:04:43 +0000 sys-libs/compiler-rt-sanitizers: Backport fix for sys/ustat.h Closes: https://bugs.gentoo.org/675654 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../compiler-rt-sanitizers-4.0.1.ebuild | 4 ++ .../compiler-rt-sanitizers-5.0.2.ebuild | 4 ++ ...se-pre-computed-size-of-struct-ustat-for-.patch | 61 ++++++++++++++++++++++ 3 files changed, 69 insertions(+) |