Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 709672 - sys-libs/compiler-rt-sanitizers-9.0.1 : /.../sanitizer_internal_defs.h:342:72: error: narrowing conversion of -1 from int to unsigned int
Summary: sys-libs/compiler-rt-sanitizers-9.0.1 : /.../sanitizer_internal_defs.h:342:72...
Status: RESOLVED OBSOLETE
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: fixed in 10
Keywords:
Depends on:
Blocks: glibc-2.31
  Show dependency tree
 
Reported: 2020-02-14 23:18 UTC by Toralf Förster
Modified: 2021-03-06 16:18 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.31 KB, text/plain)
2020-02-14 23:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,187.37 KB, text/plain)
2020-02-14 23:18 UTC, Toralf Förster
Details
environment (environment,136.91 KB, text/plain)
2020-02-14 23:18 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.99 KB, application/x-bzip)
2020-02-14 23:18 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.97 KB, application/x-bzip)
2020-02-14 23:18 UTC, Toralf Förster
Details
sys-libs:compiler-rt-sanitizers-9.0.1:20200214-231425.log (sys-libs:compiler-rt-sanitizers-9.0.1:20200214-231425.log,69.12 KB, text/plain)
2020-02-14 23:18 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.83 KB, application/x-bzip)
2020-02-14 23:18 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-02-14 23:18:28 UTC
In file included from /var/tmp/portage/sys-libs/compiler-rt-sanitizers-9.0.1/work/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:162:
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-9.0.1/work/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h:342:72: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
  342 |     typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
      |                                                                        ^
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-9.0.1/work/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h:336:30: note: in expansion of macro ‘IMPL_COMPILER_ASSERT’

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20200210-221913

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
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) *
Available Rust versions:
  [1]   rust-1.41.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 14 Feb 2020 22:37:30 +0000

emerge -qpvO sys-libs/compiler-rt-sanitizers
[ebuild  N    ] sys-libs/compiler-rt-sanitizers-9.0.1  USE="libfuzzer profile sanitize xray -clang -test"
Comment 1 Toralf Förster gentoo-dev 2020-02-14 23:18:31 UTC
Created attachment 613882 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-14 23:18:34 UTC
Created attachment 613884 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-14 23:18:37 UTC
Created attachment 613886 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-14 23:18:40 UTC
Created attachment 613888 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-14 23:18:42 UTC
Created attachment 613890 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-14 23:18:45 UTC
Created attachment 613892 [details]
sys-libs:compiler-rt-sanitizers-9.0.1:20200214-231425.log
Comment 7 Toralf Förster gentoo-dev 2020-02-14 23:18:48 UTC
Created attachment 613894 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2020-02-14 23:19:46 UTC
maybe dup of bug #709634
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-01 08:08:31 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #9)
> https://reviews.llvm.org/D69104
> https://reviews.llvm.org/rG9c155985f17fd369bbba311b714fb6c01c17d66e
> https://github.com/llvm/llvm-project/commit/
> 9c155985f17fd369bbba311b714fb6c01c17d66e
> 
> https://reviews.llvm.org/D70662
> https://reviews.llvm.org/rG947f9692440836dcb8d88b74b69dd379d85974ce
> https://github.com/llvm/llvm-project/commit/
> 947f9692440836dcb8d88b74b69dd379d85974ce

These patches don't apply.  It's partially solved by changing .cpp back to .cc but .h still doesn't match and I don't have the patience for it.
Comment 11 Guilherme Amadio gentoo-dev 2020-06-30 14:39:32 UTC
I hit this today. Several packages are not yet adapted for llvm/clang 10, so it's still important to fix this. For example, at least dev-util/perf[clang] needs clang:9 and not 10.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-06 16:18:29 UTC
Closing bugs specific to llvm 9 that was removed today.