Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836402 - dev-util/perf-5.15-r1 - util/.../clang.cpp: fatal error: .../TargetRegistry.h: No such file or directory
Summary: dev-util/perf-5.15-r1 - util/.../clang.cpp: fatal error: .../TargetRegistry.h...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-30 07:43 UTC by Toralf Förster
Modified: 2022-05-31 15:36 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.68 KB, text/plain)
2022-03-30 07:43 UTC, Toralf Förster
Details
dev-util:perf-5.15-r1:20220329-210320.log.bz2 (dev-util:perf-5.15-r1:20220329-210320.log.bz2,13.26 KB, application/x-bzip)
2022-03-30 07:43 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,113.28 KB, application/x-bzip)
2022-03-30 07:43 UTC, Toralf Förster
Details
environment (environment,132.17 KB, text/plain)
2022-03-30 07:43 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,56.01 KB, application/x-bzip)
2022-03-30 07:43 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 2022-03-30 07:43:18 UTC
too long lines were shrinked:

make -f /var/tmp/portage/dev-util/perf-5.15-r1/work/linux-5.15/tools/build/Makefile.build dir=./util/c++ obj=perf
make[4]: Entering directory '/var/tmp/portage/dev-util/perf-5.15-r1/work/linux-5.15/tools/perf'
  x86_64-pc-linux-gnu-g++ -Wp,-MD,util/c++/.clang.o.d -Wp,-MT,util/c++/clang.o -pipe -march=native -fno-diagnostics-color -O2 -std=gnu++14 -fno-exceptions -fno-rtti -Wall -fno-omit-frame-pointer -ggdb3 -funwind-tables -Wno-strict-aliasing -I/var/tmp/portage/dev-util/perf-5.15-r1/work/linux-5.15/tool
  x86_64-pc-linux-gnu-g++ -Wp,-MD,util/c++/.clang-test.o.d -Wp,-MT,util/c++/clang-test.o -pipe -march=native -fno-diagnostics-color -O2 -std=gnu++14 -fno-exceptions -fno-rtti -Wall -fno-omit-frame-pointer -ggdb3 -funwind-tables -Wno-strict-aliasing -I/var/tmp/portage/dev-util/perf-5.15-r1/work/linux
util/c++/clang.cpp:23:10: fatal error: llvm/Support/TargetRegistry.h: No such file or directory
   23 | #include "llvm/Support/TargetRegistry.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20220321-160039

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
clang version 14.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.0
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.59.0
  [2]   rust-1.59.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JRE 11.0.14_p9 [openjdk-jre-bin-11]
*)	Eclipse Temurin JRE 8.322_p06 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-8  system-vm
  [2]   openjdk-jre-bin-11 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit f09e0d9407c28b7c4a436c96de54001319f61b47
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Mar 29 20:20:01 2022 +0000

    2022-03-29 20:19:59 UTC

emerge -qpvO dev-util/perf
[ebuild  N    ] dev-util/perf-5.15-r1  USE="babeltrace clang crypt doc numa perl systemtap zlib -audit -debug -gtk -java -libpfm -lzma -python -slang -unwind -zstd" PYTHON_TARGETS="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-03-30 07:43:28 UTC
Created attachment 768175 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-03-30 07:43:34 UTC
Created attachment 768176 [details]
dev-util:perf-5.15-r1:20220329-210320.log.bz2
Comment 3 Toralf Förster gentoo-dev 2022-03-30 07:43:35 UTC
Created attachment 768177 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-03-30 07:43:37 UTC
Created attachment 768178 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-03-30 07:43:38 UTC
Created attachment 768179 [details]
etc.portage.tar.bz2
Comment 6 Guilherme Amadio gentoo-dev 2022-05-31 15:23:56 UTC
This is patched in perf-5.17.1 and the patch was upstreamed as well:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d22588d73b18fd12fd971e2dab7fa5ddf978e496
Comment 7 Larry the Git Cow gentoo-dev 2022-05-31 15:36:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7516c4570bde60614d7be4a229e016c71c90ceab

commit 7516c4570bde60614d7be4a229e016c71c90ceab
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2022-05-31 15:28:20 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2022-05-31 15:28:20 +0000

    dev-util/perf: restrict llvm version for perf 5.15, bug 836402
    
    Closes: https://bugs.gentoo.org/836402
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)