checking for ld... /usr/bin/x86_64-pc-linux-gnu-ld -m elf_x86_64 checking for /usr/include/linux/perf_event.h... yes checking kernel supports perf_events... no Error: Your kernel does not appear to have the necessary support to run oprofile. configure: error: Unable to build oprofile. Exiting. !!! Please attach the following file when seeking support: ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_systemd-j4-20221003-222746 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.2.0 * clang/llvm (if any): clang version 15.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin /usr/lib/llvm/15 15.0.1 Python 3.10.7 Available Rust versions: [1] rust-bin-1.64.0 * GENTOO_VM= CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm" JAVACFLAGS="" COMPILER="" The following VMs are available for generation-2: *) Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17] Available Java Virtual Machines: [1] openjdk-jre-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit ef407c12abfbf94dcd066be9fa251eabdc7d978d Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Oct 4 06:47:48 2022 +0000 2022-10-04 06:47:48 UTC emerge -qpvO dev-util/oprofile [ebuild N ] dev-util/oprofile-1.4.0 USE="-apidoc -java (-pch) -static-libs"
Created attachment 819805 [details] emerge-info.txt
Created attachment 819808 [details] dev-util:oprofile-1.4.0:20221004-070742.log
Created attachment 819811 [details] emerge-history.txt
Created attachment 819814 [details] environment
Created attachment 819817 [details] etc.portage.tar.bz2
Created attachment 819820 [details] logs.tar.bz2
Created attachment 819823 [details] temp.tar.bz2
Looks like this is clang problem: clang-14: error: unsupported option '-V -o' clang-14: error: unknown argument '-qversion'; did you mean '--version'? clang-14: error: no input files clang-14: error: unknown argument '-version'; did you mean '--version'? clang-14: error: no input files ignoreme: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ ignoreme: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ ignoreme: error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] pid = getpid(); ^ ignoreme: error: call to undeclared function 'syscall'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] syscall(__NR_perf_event_open, &attr, pid, 0, -1, 0);
(In reply to Andrew Savchenko from comment #8) > Looks like this is clang problem: > > > ignoreme: error: call to undeclared function 'getpid'; ISO C99 and later do > not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > pid = getpid(); > ^ > ignoreme: error: call to undeclared function 'syscall'; ISO C99 and later do > not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > syscall(__NR_perf_event_open, &attr, pid, 0, > -1, 0); Not only.