Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
llvm-runtimes/libunwind vs. sys-libs/libunwind
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ajgringo619
n00b
n00b


Joined: 01 Nov 2022
Posts: 34

PostPosted: Mon Dec 23, 2024 9:32 pm    Post subject: llvm-runtimes/libunwind vs. sys-libs/libunwind Reply with quote

First time trying to build a complete system with the LLVM/clang profile (default/linux/amd64/23.0/llvm/systemd). I've been successful in building a console-only systemd-based system, but I'm running into a road block when trying to finish up my Cinnamon install. Here's what I've done so far:

--> Cloned my working console system
--> Created a local profile for system
Code:
/var/db/repos/local/profiles/llvm-cinnamon/eapi
8

/var/db/repos/local/profiles/llvm-cinnamon/parent
gentoo:default/linux/amd64/23.0/llvm
gentoo:targets/desktop/gnome
gentoo:targets/systemd


--> USE="alsa dbus dist-kernel llvm-libunwind networkmanager pulseaudio python3_12 ssh systemd uefi X -ipv6 -bluetooth -gnome-online-accounts -webengine"
--> updated @world
--> installed Cinnamon and lightdm
Code:
sudo emerge -avk gnome-extra/cinnamon x11-misc/lightdm
sudo systemctl enable lightdm.service


After rebooting, my system was running as expected. Now I run into the libunwind problem, due to the package dev-util/sysprof bringing in sys-libs/libunwind:
Code:
sudo emerge -avk x11-terms/gnome-terminal gnome-extra/{gnome-calculator,gnome-system-monitor} media-gfx/{gnome-screenshot,eog} \
          app-text/evince app-arch/file-roller app-editors/gedit

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.08 s (backtrack: 0/20).

[ebuild  N     ] acct-group/gdm-0-r2::gentoo  0 KiB
[ebuild  N     ] dev-db/lmdb-0.9.33:0/0.9.33::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 146 KiB
[ebuild  N     ] acct-group/geoclue-0-r2::gentoo  0 KiB
[ebuild  N     ] app-i18n/unicode-emoji-15.1::gentoo  1204 KiB
[ebuild  N     ] acct-user/gdm-0-r2::gentoo  0 KiB
[ebuild  N     ] acct-user/geoclue-0-r2::gentoo  0 KiB
[ebuild  N     ] sys-libs/libunwind-1.8.1:0/8::gentoo  USE="zlib -debug -debug-frame -doc -libatomic -lzma -static-libs -test" ABI_X86="(32) (64) (-x32)" 965 KiB
[ebuild  N     ] app-i18n/unicode-cldr-45.0::gentoo  31067 KiB
[ebuild  N     ] app-i18n/unicode-data-16.0.0::gentoo  16996 KiB
[ebuild  N     ] x11-libs/libXres-1.2.2::gentoo  USE="-doc" 256 KiB
[ebuild  N     ] dev-perl/common-sense-3.750.0::gentoo  PERL_FEATURES="(-debug) -ithreads (-quadmath)" 14 KiB
[ebuild  N     ] dev-perl/Parse-Yapp-1.210.0-r1::gentoo  USE="-examples -test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" 107 KiB
[ebuild  N     ] dev-perl/Canary-Stability-2013.0.0::gentoo  PERL_FEATURES="(-debug) -ithreads (-quadmath)" 5 KiB
[ebuild  N     ] dev-perl/Types-Serialiser-1.10.0::gentoo  USE="-test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" 7 KiB
[ebuild  N     ] dev-perl/JSON-XS-4.30.0::gentoo  USE="-examples -test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" 85 KiB
[ebuild  N     ] dev-perl/JSON-4.100.0::gentoo  USE="xs -examples -test" PERL_FEATURES="(-debug) -ithreads (-quadmath)" 93 KiB
[ebuild  N     ] sys-libs/talloc-2.4.2::gentoo  USE="python -compat -test -valgrind" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 664 KiB
[ebuild  N     ] dev-libs/inih-58::gentoo  ABI_X86="(64) -32 (-x32)" 20 KiB
[ebuild  N     ] media-fonts/cantarell-0.303.1::gentoo  USE="X" 331 KiB
[ebuild  N     ] dev-lang/yasm-1.3.0-r2::gentoo  USE="nls" 1458 KiB
[ebuild  N     ] sys-libs/cracklib-2.10.2::gentoo  USE="nls zlib -debug -python (-split-usr) -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13" 455 KiB
[ebuild  N     ] sys-libs/tevent-0.16.1::gentoo  USE="-python -test" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 870 KiB
[ebuild  N     ] media-gfx/exiv2-0.28.3:0/0.28::gentoo  USE="bmff nls png xmp -doc -examples -jpegxl -test -webready" ABI_X86="(64) -32 (-x32)" 45392 KiB
[ebuild  N     ] dev-libs/libpwquality-1.4.5-r2::gentoo  USE="pam -debug -python -static-libs" PYTHON_TARGETS="python3_12 -python3_10 -python3_11" 424 KiB
[ebuild  N     ] sys-libs/tdb-1.4.10::gentoo  USE="-python -test" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 730 KiB
[ebuild  N     ] x11-apps/xhost-1.0.9::gentoo  130 KiB
[ebuild  N     ] sys-libs/ldb-2.8.1:0/2.8.1::gentoo  USE="lmdb -doc -ldap -python -test" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" 1705 KiB
[ebuild  N     ] app-text/hunspell-1.7.2-r1:0/1.7::gentoo  USE="ncurses nls readline -static-libs" L10N="-af -bg -ca -cs -cy -da -de -de-1901 -el -en -eo -es -et -fo -fr -ga -gl -he -hr -hu -ia -id -is -it -kk -km -ku -lt -lv -mi -mk -ms -nb -nl -nn -pl -pt -pt-BR -ro -ru -sk -sl -sq -sv -sw -tn -uk -zu" 1501 KiB
[ebuild  N     ] sys-libs/libcap-ng-0.8.5::gentoo  USE="-python -static-libs" PYTHON_TARGETS="python3_12 -python3_10 -python3_11" 450 KiB
[ebuild  N     ] dev-libs/libev-4.33::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 557 KiB
[ebuild  N     ] dev-libs/libverto-0.3.2::gentoo  USE="libev threads -glib -libevent" ABI_X86="(64) -32 (-x32)" 375 KiB
[ebuild  N     ] app-text/enchant-2.6.1:2::gentoo  USE="hunspell -aspell -nuspell -test -voikko" 991 KiB
[ebuild  N     ] dev-libs/gjs-1.80.2::gentoo  USE="cairo readline sysprof -examples -test" 648 KiB
[ebuild  N     ] gnome-base/libgtop-2.41.3:2/11::gentoo  USE="introspection" 737 KiB
[ebuild  N     ] media-libs/gexiv2-0.14.3::gentoo  USE="introspection vala -gtk-doc -python -test" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13" 381 KiB
[ebuild  N     ] net-libs/libcloudproviders-0.3.6::gentoo  USE="introspection -gtk-doc -vala" ABI_X86="(64) -32 (-x32)" 24 KiB
[ebuild  N     ] dev-libs/libdex-0.6.1:0/1::gentoo  USE="eventfd introspection liburing sysprof -gtk-doc -test -vala" 97 KiB
[ebuild  N     ] app-misc/geoclue-2.7.2:2.0::gentoo  USE="introspection -gtk-doc -modemmanager -vala -zeroconf" 106 KiB
[ebuild  N     ] x11-misc/xdg-user-dirs-0.18::gentoo  USE="gtk" 268 KiB
[ebuild  N     ] x11-misc/xdg-user-dirs-gtk-0.11::gentoo  124 KiB
[ebuild  N     ] app-crypt/mit-krb5-1.21.3::gentoo  USE="keyutils nls pkinit -doc -lmdb -openldap (-selinux) -test -xinetd" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes" 8923 KiB
[ebuild  N     ] virtual/krb5-0-r1::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] net-fs/cifs-utils-7.0-r1::gentoo  USE="acl ads caps pam python systemd -creds" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 409 KiB
[ebuild  N     ] net-fs/samba-4.19.7::gentoo  USE="acl client cups (llvm-libunwind) pam regedit system-mitkrb5 systemd -addc -ads -ceph -cluster -debug (-fam) -glusterfs -gpg -iprint -json -ldap -profiling-data -python -quota (-selinux) -snapper -spotlight -syslog (-system-heimdal) (-test) -unwind -winbind -zeroconf" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" 40871 KiB
[ebuild  N     ] gui-libs/libhandy-1.8.3:1::gentoo  USE="introspection vala -examples -glade -gtk-doc -test" 1750 KiB
[ebuild  N     ] gnome-base/gnome-desktop-44.1-r300:3/20::gentoo  USE="introspection (seccomp) systemd udev -debug" 749 KiB
[ebuild  N     ] gui-libs/libgedit-amtk-5.8.0:5/0::gentoo  USE="introspection -gtk-doc" 58 KiB
[ebuild  N     ] dev-libs/libpeas-1.36.0::gentoo  USE="gtk python -glade -gtk-doc -lua -test -vala" LUA_SINGLE_TARGET="lua5-1 -luajit" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 191 KiB
[ebuild  N     ] app-text/gspell-1.12.2:0/2::gentoo  USE="introspection vala -test" 433 KiB
[ebuild  N     ] gui-libs/libgedit-gtksourceview-299.0.4:300::gentoo  USE="-gtk-doc -test" 629 KiB
[ebuild  N     ] app-arch/gnome-autoar-0.4.4::gentoo  USE="gtk introspection -gtk-doc -test -vala" 51 KiB
[ebuild  N     ] x11-libs/gtksourceview-4.8.4:4::gentoo  USE="introspection vala -glade -gtk-doc -test" 1133 KiB
[ebuild  N     ] media-plugins/gst-plugins-gtk-1.22.11:1.0::gentoo  USE="X egl gles2 opengl wayland" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-libs/libwnck-43.0-r1:3::gentoo  USE="introspection startup-notification -gtk-doc -tools" 445 KiB
[ebuild  N     ] gnome-base/gnome-desktop-44.1-r400:4/2::gentoo  USE="(seccomp) systemd udev -debug -gtk-doc" 0 KiB
[ebuild  N     ] app-i18n/ibus-1.5.29::gentoo  USE="X emoji gtk3 gtk4 gui introspection libnotify nls python systemd unicode wayland -appindicator -gtk2 -test -vala" PYTHON_TARGETS="python3_12 -python3_10 -python3_11" 3898 KiB
[ebuild  N     ] gui-libs/tepl-6.8.0:6/4::gentoo  USE="-gtk-doc -test" 163 KiB
[ebuild  N     ] dev-libs/libportal-0.7.1-r1:0/1-1-1-1::gentoo  USE="X gtk introspection qt5 vala wayland -gtk-doc -test" 73 KiB
[ebuild  N     ] gui-libs/gtksourceview-5.12.1:5::gentoo  USE="introspection sysprof vala -gtk-doc -test" 1236 KiB
[ebuild  N     ] x11-libs/colord-gtk-0.3.1:0/1::gentoo  USE="introspection -doc -vala" 22 KiB
[ebuild  N     ] gui-libs/vte-common-0.76.3:2.91::gentoo  USE="systemd" 552 KiB
[ebuild  N     ] gnome-extra/gnome-system-monitor-45.0.2::gentoo  USE="X systemd" 997 KiB
[ebuild  N     ] media-gfx/gnome-screenshot-41.0::gentoo  USE="X" 352 KiB
[ebuild  N     ] media-gfx/eog-45.4:1::gentoo  USE="exif introspection jpeg lcms svg tiff -gtk-doc -xmp" 4549 KiB
[ebuild  N     ] x11-libs/vte-0.76.3:2.91::gentoo  USE="crypt icu introspection systemd vala -debug -gtk-doc -vanilla" 14 KiB
[ebuild  N     ] app-editors/gedit-46.2::gentoo  USE="python -gtk-doc" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" 2692 KiB
[ebuild  N     ] app-text/evince-46.3.1:0/evd3.4-evv3.3::gentoo  USE="cups gnome gstreamer introspection keyring spell tiff -djvu -dvi -gtk-doc -postscript -xps" 2870 KiB
[ebuild  N     ] gnome-extra/tecla-46.0::gentoo  35 KiB
[ebuild  N     ] gui-libs/libpanel-1.6.0:1::gentoo  USE="introspection vala -examples -gtk-doc" 159 KiB
[ebuild  N     ] gnome-extra/gnome-calculator-46.1::gentoo  USE="introspection -test" 1095 KiB
[ebuild  N     ] dev-util/sysprof-46.0:0/4::gentoo  USE="gtk -test" 0 KiB
[ebuild  N     ] gnome-base/gnome-settings-daemon-46.0-r2::gentoo  USE="colord cups networkmanager systemd wayland -debug (-elogind) -modemmanager -smartcard (-test)" INPUT_DEVICES="-wacom" 1447 KiB
[ebuild  N     ] gnome-base/gnome-session-46.0-r1::gentoo  USE="systemd -doc (-elogind)" 474 KiB
[ebuild  N     ] gnome-base/gnome-control-center-46.4-r1:2::gentoo  USE="cups geolocation ibus networkmanager systemd wayland -bluetooth -debug (-elogind) -gnome-online-accounts -kerberos -test" INPUT_DEVICES="-wacom" 7878 KiB
[ebuild  N     ] gnome-base/nautilus-46.2::gentoo  USE="cloudproviders gnome gstreamer introspection previewer -doc (-selinux) -test" 3163 KiB
[ebuild  N     ] gnome-extra/sushi-46.0::gentoo  USE="X wayland" 83 KiB
[ebuild  N     ] app-arch/file-roller-44.4::gentoo  USE="introspection nautilus -gtk-doc" 1023 KiB
[ebuild  N     ] x11-wm/mutter-46.7:0/14::gentoo  USE="gnome introspection sysprof systemd udev wayland -debug (-elogind) -gtk-doc -screencast -test" INPUT_DEVICES="-wacom" VIDEO_CARDS="-nvidia" 6597 KiB
[ebuild  N     ] sys-apps/xdg-desktop-portal-gnome-46.2::gentoo  USE="X wayland" 158 KiB
[ebuild  N     ] gnome-base/gnome-shell-46.7::gentoo  USE="ibus networkmanager systemd (-elogind) -gtk-doc -pipewire -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 2002 KiB
[ebuild  N     ] gnome-base/gdm-46.2-r2::gentoo  USE="branding systemd wayland -accessibility -audit -bluetooth-sound (-elogind) -fprint -plymouth (-selinux) -tcpd -test" 911 KiB
[ebuild  N     ] x11-terms/gnome-terminal-3.52.2::gentoo  USE="gnome-shell nautilus -debug -vanilla" 1703 KiB
[blocks B      ] sys-libs/libunwind ("sys-libs/libunwind" is soft blocking llvm-runtimes/libunwind-19.1.4)

Total: 82 packages (82 new), Size of downloads: 209134 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-libs/libunwind-1.8.1:0/8::gentoo, ebuild scheduled for merge) pulled in by
    sys-libs/libunwind:= required by (dev-util/sysprof-46.0:0/4::gentoo, ebuild scheduled for merge) USE="gtk -test" ABI_X86="(64)"

  (llvm-runtimes/libunwind-19.1.4-1:0/0::gentoo, installed) pulled in by
    llvm-runtimes/libunwind required by @system
    llvm-runtimes/libunwind[static-libs] required by (llvm-core/clang-common-19.1.4-1:0/0::gentoo, installed) USE="cet (default-compiler-rt) (default-libcxx) (default-lld) (llvm-libunwind) -bootstrap-prefix -hardened -verify-sig" ABI_X86="(64)"


I've narrowed this down to gnome-terminal, but since I'm trying to build a standard Cinnamon system, I wanted to stick with its default terminal program. Plus, I'm not convinced that this won't happen again with another package in the future.

What do I need to do to rectify this?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3928

PostPosted: Tue Dec 24, 2024 2:33 am    Post subject: Reply with quote

Try
Code:

USE="-unwind" emerge -1av =dev-util/sysprof-3.48.0

then run your gnome emerge.
If it works mask
Code:

>dev-util/sysprof-3.48.0

and create a package.use file
Code:

=dev-util/sysprof-3.48.0  -unwind

It is a patch but you will run again to same problem in future.
If you are really desperate later on you can try
Code:

echo "dev-util/sysprof-46.0"  >>  /etc/portage/profile/package.provided

It is a dirty trick that may create runtime problems for sysprof.But you can try it as a last resort.
Best if you DIDNT.
Also since you have llvm-libunwind maybe use a universal USE="-unwind" in make.conf.
_________________
:)
Back to top
View user's profile Send private message
ajgringo619
n00b
n00b


Joined: 01 Nov 2022
Posts: 34

PostPosted: Tue Dec 24, 2024 3:29 am    Post subject: Reply with quote

Thanks so much for the detailed reply. I have a couple of concerns before I proceed:

1) sysprof-common has already been installed with version 46; should I rebuild it with the 3.48 version to match sysprof?
2) I tried adding USE flags, both globally and per the sysprof package, and they were ignored (at least with the failing 46.0 version)
3) Since you're suggestion is implicating gtk4 as a possible problem, could this explain why I can't build open-vm-tools (tons of failures with Gtk/Gdk, does not fail on gcc-profile systems)
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3928

PostPosted: Tue Dec 24, 2024 10:02 am    Post subject: Reply with quote

Quote:

1) sysprof-common has already been installed with version 46; should I rebuild it with the 3.48 version to match sysprof?

What happens if you run
Code:

USE="-unwind" emerge -1av =dev-util/sysprof-3.48.0  sysprof-common


does it let you?
Quote:

2) I tried adding USE flags, both globally and per the sysprof package, and they were ignored (at least with the failing 46.0 version)


Yes because the sysprof-46.0 version no longer has an "unwind" USE flag.
if the above fails,
what happens if you do the package.provided dirty trick?
_________________
:)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22870

PostPosted: Tue Dec 24, 2024 2:08 pm    Post subject: Reply with quote

Do you need dev-util/sysprof installed? You said you narrowed it down to gnome-terminal, but from a quick look at that package, I do not see why it would need sysprof. As of my last sync, every use of that package is guarded by a USE flag, so if you USE=-sysprof everywhere, you should be able to avoid installing dev-util/sysprof.
Back to top
View user's profile Send private message
ajgringo619
n00b
n00b


Joined: 01 Nov 2022
Posts: 34

PostPosted: Tue Dec 24, 2024 5:04 pm    Post subject: Reply with quote

Hu wrote:
Do you need dev-util/sysprof installed? You said you narrowed it down to gnome-terminal, but from a quick look at that package, I do not see why it would need sysprof. As of my last sync, every use of that package is guarded by a USE flag, so if you USE=-sysprof everywhere, you should be able to avoid installing dev-util/sysprof.


Yeah, I saw that myself. There's some package that gnome-terminal requires that also requires sysprof. I will give your suggestion a try - thanks!
Back to top
View user's profile Send private message
ajgringo619
n00b
n00b


Joined: 01 Nov 2022
Posts: 34

PostPosted: Tue Dec 24, 2024 5:05 pm    Post subject: Reply with quote

[quote="alamahant"][quote]
What happens if you run
Code:

USE="-unwind" emerge -1av =dev-util/sysprof-3.48.0  sysprof-common

does it let you?
Quote:

if the above fails,
what happens if you do the package.provided dirty trick?

I'm hoping to avoid that, but I'll have to try it if the other suggestions don't work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum