Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875086 - dev-util/oprofile-1.4.0 - configure: error: Unable to build oprofile. Exiting.
Summary: dev-util/oprofile-1.4.0 - configure: error: Unable to build oprofile. Exiting.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: dead upstream
Keywords:
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2022-10-04 16:41 UTC by Toralf Förster
Modified: 2024-11-17 19:56 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.99 KB, text/plain)
2022-10-04 16:41 UTC, Toralf Förster
Details
dev-util:oprofile-1.4.0:20221004-070742.log (dev-util:oprofile-1.4.0:20221004-070742.log,9.44 KB, text/plain)
2022-10-04 16:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,75.64 KB, text/plain)
2022-10-04 16:41 UTC, Toralf Förster
Details
environment (environment,149.29 KB, text/plain)
2022-10-04 16:41 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.56 KB, application/x-bzip)
2022-10-04 16:42 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.27 KB, application/x-bzip)
2022-10-04 16:42 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,38.50 KB, application/x-bzip)
2022-10-04 16: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 2022-10-04 16:41:54 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:41:55 UTC
Created attachment 819805 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:41:56 UTC
Created attachment 819808 [details]
dev-util:oprofile-1.4.0:20221004-070742.log
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:41:58 UTC
Created attachment 819811 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:41:59 UTC
Created attachment 819814 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:42:01 UTC
Created attachment 819817 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:42:03 UTC
Created attachment 819820 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-04 16:42:04 UTC
Created attachment 819823 [details]
temp.tar.bz2
Comment 8 Andrew Savchenko gentoo-dev 2022-10-04 18:26:19 UTC
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);
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2024-10-20 19:22:32 UTC
(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.
Comment 10 Larry the Git Cow gentoo-dev 2024-11-17 19:56:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d91cfaa37dac4c168de5a625a71540dbd554522

commit 2d91cfaa37dac4c168de5a625a71540dbd554522
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-11-17 19:55:03 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-11-17 19:55:41 +0000

    dev-util/oprofile: fix implicit declarations in configure
    
    Closes: https://bugs.gentoo.org/875086
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-util/oprofile/files/config-implicit.patch | 11 +++++++++++
 dev-util/oprofile/oprofile-1.4.0.ebuild       |  1 +
 2 files changed, 12 insertions(+)