Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713072 - sys-libs/compiler-rt-sanitizers-10.0.0_rc4 : /.../sanitizer_platform_limits_posix.cpp: fatal error: fstab.h file not found
Summary: sys-libs/compiler-rt-sanitizers-10.0.0_rc4 : /.../sanitizer_platform_limits_p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-17 22:41 UTC by Toralf Förster
Modified: 2021-11-07 03:59 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.93 KB, text/plain)
2020-03-17 22:42 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,47.84 KB, text/plain)
2020-03-17 22:42 UTC, Toralf Förster
Details
environment (environment,137.63 KB, text/plain)
2020-03-17 22:42 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.16 KB, application/x-bzip)
2020-03-17 22:42 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.09 KB, application/x-bzip)
2020-03-17 22:42 UTC, Toralf Förster
Details
sys-libs:compiler-rt-sanitizers-10.0.0_rc4:20200317-222944.log (sys-libs:compiler-rt-sanitizers-10.0.0_rc4:20200317-222944.log,46.67 KB, text/plain)
2020-03-17 22:42 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,36.46 KB, application/x-bzip)
2020-03-17 22:42 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-17 22:41:58 UTC
/usr/lib/llvm/10/bin/x86_64-gentoo-linux-musl-clang++ -DHAVE_RPC_XDR_H=0 -I/var/tmp/portage/sys-libs/compiler-rt-sanitizers-10.0.0_rc4/work/compiler-rt/lib/sanitizer_common/..  -O2 -pipe -march=native -fno-common -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 -Wno-non-virtual-dtor -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -MD -MT lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_platform_limits_posix.cpp.o -MF lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_platform_limits_posix.cpp.o.d -o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_platform_limits_posix.cpp.o -c /var/tmp/portage/sys-libs/compiler-rt-sanitizers-10.0.0_rc4/work/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-10.0.0_rc4/work/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:61:10: fatal error: fstab.h file not found
#include <fstab.h>
         ^~~~~~~~~
1 error generated.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 17 Mar 2020 11:20:02 +0000
emerge -qpvO sys-libs/compiler-rt-sanitizers
[ebuild  N    ] sys-libs/compiler-rt-sanitizers-10.0.0_rc4  USE="clang libfuzzer profile sanitize xray -test"
Comment 1 Toralf Förster gentoo-dev 2020-03-17 22:42:01 UTC
Created attachment 621022 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-17 22:42:03 UTC
Created attachment 621024 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-17 22:42:06 UTC
Created attachment 621026 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-17 22:42:09 UTC
Created attachment 621028 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-17 22:42:12 UTC
Created attachment 621030 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-17 22:42:15 UTC
Created attachment 621032 [details]
sys-libs:compiler-rt-sanitizers-10.0.0_rc4:20200317-222944.log
Comment 7 Toralf Förster gentoo-dev 2020-03-17 22:42:18 UTC
Created attachment 621034 [details]
temp.tbz2
Comment 8 Jory A. Pratt gentoo-dev 2020-03-18 04:20:36 UTC
Simple solution is use.mask

sys-libs/compiler-rt-sanitizers -libfuzzer -sanitize -xray
Comment 9 Michael 'veremitz' Everitt 2020-10-09 10:08:20 UTC
See also https://reviews.llvm.org/D63785 .
Comment 10 Michael 'veremitz' Everitt 2020-10-10 11:01:04 UTC
(In reply to Michael 'veremitz' Everitt from comment #9)
> See also https://reviews.llvm.org/D63785 .

Using patch from https://reviews.llvm.org/D63785#1921014 and replacing all instances of 'SANITIZER_GNU' with 'defined(__GLIBC__)' seems to work here.

(In reply to Jory A. Pratt from comment #8)
> Simple solution is use.mask
> 
> sys-libs/compiler-rt-sanitizers -libfuzzer -sanitize -xray

This should actually be 'package.use.mask' for that syntax, and using:

sys-libs/compiler-rt-sanitizers -sanitize

seems to be adequate so far .. unless I run into later difficulties...
Comment 11 Michael 'veremitz' Everitt 2020-10-10 11:18:27 UTC
(In reply to Michael 'veremitz' Everitt from comment #10)
> 
> sys-libs/compiler-rt-sanitizers -sanitize
> 
> seems to be adequate so far .. unless I run into later difficulties...

should actually be 'sanitize' without the minus, as its masking, not Un-masking!

Added https://reviews.llvm.org/D63785#2323359 to upstream bug.
Comment 12 Larry the Git Cow gentoo-dev 2021-11-07 03:59:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f545c8ab490e3da017fb473c506c390954c5ec0

commit 7f545c8ab490e3da017fb473c506c390954c5ec0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-07 03:54:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-07 03:58:59 +0000

    profiles: refine LLVM sanitizers mask for musl (more finely-grained)
    
    Some sanitizers work now.
    
    Bug: https://bugs.gentoo.org/753935
    Closes: https://bugs.gentoo.org/713072
    Reported-by: maskray
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/default/linux/musl/package.use.mask |  5 +----
 profiles/features/musl/package.use.mask      | 11 ++++++++++-
 2 files changed, 11 insertions(+), 5 deletions(-)