Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955065 - dev-libs/elfutils-0.193 fails to compile on hppa, alpha: libebl_PERF_FLAGS.h:35:11: fatal error: asm/perf_regs.h: No such file or directory
Summary: dev-libs/elfutils-0.193 fails to compile on hppa, alpha: libebl_PERF_FLAGS.h:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2025-04-29 02:37 UTC by matoro
Modified: 2025-05-06 19:34 UTC (History)
3 users (show)

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


Attachments
build.log and emerge --info (file_955065.txt,124.86 KB, text/plain)
2025-04-29 02:37 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2025-04-29 02:37:00 UTC
Created attachment 927001 [details]
build.log and emerge --info

Regression from 0.192-r1, which builds successfully.

rm i386_defs x86_64_defs
Making all in backends
hppa2.0-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/backends -I..  -iquote . -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/backends -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/libebl -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/libasm -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/libelf -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/libdw  -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Wuse-after-free=3  -Wunused -Wextra -Wstack-usage=262144    -D_FORTIFY_SOURCE=2 -O2 -pipe -march=2.0 -c -o i386_init.o /var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/backends/i386_init.c
hppa2.0-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/backends -I..  -iquote . -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/backends -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/libebl -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/libasm -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/libelf -I/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/libdw  -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Wuse-after-free=3  -Wunused -Wextra -Wstack-usage=262144    -D_FORTIFY_SOURCE=2 -O2 -pipe -march=2.0 -c -o i386_symbol.o /var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/backends/i386_symbol.c
In file included from /var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/backends/i386_init.c:37:
/var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193/backends/libebl_PERF_FLAGS.h:35:11: fatal error: asm/perf_regs.h: No such file or directory
   35 | # include <asm/perf_regs.h>
      |           ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:848: i386_init.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:608: all-recursive] Error 1
make: *** [Makefile:523: all] Error 2
Comment 1 matoro archtester 2025-05-01 23:34:01 UTC
Also affects alpha.
Comment 2 Larry the Git Cow gentoo-dev 2025-05-06 19:34:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f171f5cdba3205beb661623a1fb0322c2624967

commit 3f171f5cdba3205beb661623a1fb0322c2624967
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-05-06 19:33:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-06 19:33:49 +0000

    dev-libs/elfutils: fix build on some arches
    
    Closes: https://bugs.gentoo.org/955065
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/elfutils/elfutils-0.193.ebuild           |  1 +
 dev-libs/elfutils/files/elfutils-0.193-perf.patch | 53 +++++++++++++++++++++++
 2 files changed, 54 insertions(+)