Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774006 - dev-util/perf-5.11 with musl: library install into /usr/lib64
Summary: dev-util/perf-5.11 with musl: library install into /usr/lib64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-03-02 17:12 UTC by 12101111
Modified: 2021-03-03 10:24 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 12101111 2021-03-02 17:12:30 UTC
[I] dev-util/perf
     Available versions:  (~)5.8 (~)5.9.9 (~)5.10.16 (~)5.11 {audit clang crypt debug +demangle +doc gtk java libpfm lzma numa perl python slang systemtap unwind zlib KERNEL="linux" PYTHON_TARGETS="python3_7 python3_8"}
     Installed versions:  5.11(11:09:39 02/16/21)(crypt demangle doc libpfm lzma perl zlib -audit -clang -debug -gtk -java -numa -python -slang -systemtap -unwind KERNEL="linux" PYTHON_TARGETS="-python3_7 -python3_8")
     Homepage:            https://perf.wiki.kernel.org/
     Description:         Userland tools for Linux Performance Counters

qlist perf | grep "/usr/lib.*.so$"
/usr/lib64/traceevent/plugins/plugin_jbd2.so
/usr/lib64/traceevent/plugins/plugin_kmem.so
/usr/lib64/traceevent/plugins/plugin_hrtimer.so
/usr/lib64/traceevent/plugins/plugin_function.so
/usr/lib64/traceevent/plugins/plugin_xen.so
/usr/lib64/traceevent/plugins/plugin_sched_switch.so
/usr/lib64/traceevent/plugins/plugin_tlb.so
/usr/lib64/traceevent/plugins/plugin_scsi.so
/usr/lib64/traceevent/plugins/plugin_futex.so
/usr/lib64/traceevent/plugins/plugin_kvm.so
/usr/lib64/traceevent/plugins/plugin_mac80211.so
/usr/lib64/traceevent/plugins/plugin_cfg80211.so

x86_64 musl use /usr/lib as libdir.

This magically break build of net-libs/libtorrent-rasterbar

Reproducible: Always




Portage 3.0.16 (python 3.9.1-final-0, default/linux/amd64/17.0/musl, gcc-10.2.0, musl-1.2.2-r2, 5.11.2-zen+ x86_64)
=================================================================
System uname: Linux-5.11.2-zen+-x86_64-Intel-R-_Core-TM-_i7-10810U_CPU_@_1.10GHz-with-libc
KiB Mem:    24186280 total,   2307688 free
KiB Swap:   23126008 total,  20671736 free
Timestamp of repository gentoo: Tue, 02 Mar 2021 13:37:14 +0000
Head commit of repository gentoo: 0c4dafb0a4861bd393af03ba3dd4fc49c424b9e7

Timestamp of repository FireBurn: Wed, 24 Feb 2021 15:55:02 +0000
Head commit of repository FireBurn: 4efb1d03ca9001c191d188d04e9fe570c6e15964

Timestamp of repository gentoo-zh: Tue, 02 Mar 2021 12:22:04 +0000
Head commit of repository gentoo-zh: 58d3b9e8a3f091d5f2db4f59e853f6236cab7804

Timestamp of repository guru: Tue, 02 Mar 2021 13:37:04 +0000
Head commit of repository guru: 1b7f09eef0fcd6c230fe5b6fadedd30e28f41d62

Timestamp of repository jorgicio: Tue, 02 Mar 2021 14:07:05 +0000
Head commit of repository jorgicio: ff2f207dd04a63270acf6cb636bc490429526f0e

Timestamp of repository lanodanOverlay: Wed, 24 Feb 2021 15:56:01 +0000
Head commit of repository lanodanOverlay: b4fdc5131e75872e0667c91895bae9552bd9a6f2

Timestamp of repository lto-overlay: Fri, 26 Feb 2021 21:52:06 +0000
Head commit of repository lto-overlay: cebb9a9359fbaa0ea4a238946003aff6272849dd

Timestamp of repository musl: Sun, 28 Feb 2021 01:52:05 +0000
Head commit of repository musl: bf46bc70fccc6574079c9d0166dca62c101e7650

Timestamp of repository mv: Sat, 27 Feb 2021 18:37:03 +0000
Head commit of repository mv: cb9ffe0be45a76868e629afc960f5fc4f6a3d856

Timestamp of repository pentoo: Tue, 02 Mar 2021 10:52:10 +0000
Head commit of repository pentoo: ac3836ce647113875a786c4349745b056375dea1

Timestamp of repository pg_overlay: Tue, 02 Mar 2021 12:37:01 +0000
Head commit of repository pg_overlay: 81cbc1c6247f2888e3498109485401d79fb01b5a

Timestamp of repository sorrow: Wed, 24 Feb 2021 15:56:22 +0000
Head commit of repository sorrow: ca4ac36ec8d46d7134d9ea5171b9de2c25386be2

Timestamp of repository tgbugs-overlay: Thu, 25 Feb 2021 00:37:14 +0000
Head commit of repository tgbugs-overlay: cd9753ce9c11abc0f08a3e19da0be06871080ce6

sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.1 p1) 2.35.1
ccache version 4.2 [enabled]
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18-r100::lto-overlay, 3.9.1-r1::lto-overlay
dev-util/ccache:          4.2::gentoo
dev-util/cmake:           3.19.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1::12101111-overlay
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/musl:            1.2.2-r2::gentoo
Repositories:

gentoo
    location: /usr/portage/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

FireBurn
    location: /var/db/repos/FireBurn
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/FireBurn.git
    masters: gentoo

gentoo-zh
    location: /usr/portage/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo

guru
    location: /usr/portage/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

jorgicio
    location: /usr/portage/jorgicio
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/jorgicio.git
    masters: gentoo

lanodanOverlay
    location: /usr/portage/lanodanOverlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/lanodanOverlay.git
    masters: gentoo

lto-overlay
    location: /usr/portage/lto-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/lto-overlay.git
    masters: gentoo mv

musl
    location: /usr/portage/musl
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/musl.git
    masters: gentoo

mv
    location: /usr/portage/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo

pentoo
    location: /usr/portage/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo

pg_overlay
    location: /usr/portage/pg_overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pg_overlay.git
    masters: gentoo

sorrow
    location: /usr/portage/sorrow
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/sorrow.git
    masters: gentoo

tgbugs-overlay
    location: /usr/portage/tgbugs-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/tgbugs-overlay.git
    masters: gentoo

12101111-overlay
    location: /usr/portage/local
    masters: gentoo
    priority: 1000

Installed sets: @fcitx5, @qv2ray
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-gentoo-linux-musl"
CC="clang"
CFLAGS="-march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -flto=thin"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="clang++"
CXXFLAGS="-march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -flto=thin -stdlib=libc++"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance candy ccache cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo/"
INSTALL_MASK=""
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -flto=thin -Wl,-O3 -Wl,--gc-sections -march=skylake -mtune=skylake"
MAKEOPTS="-j11"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 bluetooth bzip2 clang cli compiler-rt crypt dbus default-compiler-rt default-libcxx dri elogind fortran gif iconv ipv6 jpeg libcxx libcxxabi libglvnd libtirpc libunwind ncurses nls nptl opengl openmp pam pcre png policykit pulseaudio readline seccomp split-usr ssl svg tcpd unicode vaapi vulkan wayland xattr zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86 ARM AArch64 RISCV WebAssembly AMDGPU" LUA_SINGLE_TARGET="lua5-2" LUA_TARGETS="lua5-2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm aarch64 i386 x86_64 riscv32 riscv64" QEMU_USER_TARGETS="arm aarch64" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ionen Wolkens gentoo-dev 2021-03-02 18:33:33 UTC
Seems goes with it if 64bit ignoring $(get_libdir), from Makefile.config:

  ifndef lib
    ifeq ($(SRCARCH)$(IS_64_BIT), x861)
      lib = lib64
    else
      lib = lib
    endif

    libdir = $(prefix)/$(lib)
    plugindir=$(libdir)/traceevent/plugins

Haven't tried on musl but passing lib=$(get_libdir) seems to change it fine (unsure if other implications).
Comment 2 Larry the Git Cow gentoo-dev 2021-03-03 10:24:14 UTC
The bug has been closed via the following commit(s):

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

commit c8f16976c02e15fed57e40aa4c6449691c3a3766
Author:     12101111 <w12101111@gmail.com>
AuthorDate: 2021-03-03 06:59:26 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2021-03-03 10:22:57 +0000

    dev-util/perf: fix libdir
    
    Closes: https://bugs.gentoo.org/774006
    Closes: https://github.com/gentoo/gentoo/pull/19746
    Package-Manager: Portage-3.0.16, Repoman-3.0.2
    Signed-off-by: Han PuYu <w12101111@gmail.com>
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 dev-util/perf/perf-5.10.16.ebuild | 1 +
 dev-util/perf/perf-5.11.ebuild    | 1 +
 dev-util/perf/perf-5.8.ebuild     | 3 ++-
 dev-util/perf/perf-5.9.9.ebuild   | 1 +
 4 files changed, 5 insertions(+), 1 deletion(-)