Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

fails to launch

Open EysseW opened this issue 1 year ago • 23 comments

https://github.com/Alexays/Waybar/issues/812 but the error is: error while loading shared libraries: libfmt.so.8: cannot open shared object file: No such file or directory

EysseW avatar Sep 03 '22 00:09 EysseW

There's not much more to it honestly

EysseW avatar Sep 03 '22 00:09 EysseW

I have tried fmt, fmt-git, waybar, waybar-git, hyprland-waybar-git, nothing seems to work. I am on base arch btw.

EysseW avatar Sep 03 '22 00:09 EysseW

Rebuild waybar with fmt 9.x wont fix the issue, so downgrading fmt back to 8.1.1-2 is what works for me for now.

bg2908 avatar Sep 03 '22 02:09 bg2908

Duplicated, #1675 . If waybar attempts to find libfmt.so.8, that means you are using an old version. The arch package has rebuilt for libfm9, make sure you correctly update your packages or try to build from source.

asas1asas200 avatar Sep 03 '22 10:09 asas1asas200

I've got fmt 9.1.0-1 and waybar 0.9.13-2. These should just work together, shouldn't they?

EysseW avatar Sep 03 '22 12:09 EysseW

Sorry for typo. Edited just now. Are you update by -Syyu and kill all the waybar processes then restart?

asas1asas200 avatar Sep 03 '22 12:09 asas1asas200

In my case, fmt 9.1.0-1 and waybar 0.9.13-2 would not work together. I had rebooted the machine after installing these two and waybar would not work, it would still try to find libfmt.so.8 Try to install waybar-git from aur with fmt 9.1.0-1 and still got the same error.

Downgrade fmt back to 8.1.1-2 and both waybar 0.9.13-2 and waybar-git work.

bg2908 avatar Sep 03 '22 15:09 bg2908

What is the order in which you installed it? The runtime dependency is according to your current libs to build the target. Install the latest version fmt at first then install the waybar if you want to build from source.

asas1asas200 avatar Sep 03 '22 16:09 asas1asas200

Yes, I install the latest version fmt first then install waybar-git from aur. It did not worked. It would still try to find libfmt.so.8

But manual download and build waybar from source (not using aur) worked.

bg2908 avatar Sep 03 '22 16:09 bg2908

Manual build of waybar doesn't work for me. I haven't tried a manual build of fmt, as I don't know how to. It's not documented

EysseW avatar Sep 03 '22 16:09 EysseW

had this exact issue yesterday after updating. i had waybar installed, tried downgrading fmt - did not help, so i got fmt back up-to-date and installed waybar-git, that fixed the thing right away. running artix-runit, if that could be important in any way.

mxxntype avatar Sep 04 '22 09:09 mxxntype

I did exactly that. No luck....

EysseW avatar Sep 04 '22 10:09 EysseW

i can confirm this issue can be fixed by downgrading spdlog and libfmt

Devarth123 avatar Sep 04 '22 13:09 Devarth123

Well how do I do this? There is no documentation for compiling fmt on their GitHub. And even if I nail to do so, how do I intergrade a library package into my system?

EysseW avatar Sep 04 '22 14:09 EysseW

I am glad u asked @EysseW, First download the older version of packages locally make sure u uninstall spdlog and fmt before doing this links:

  • https://cdn.discordapp.com/attachments/1016033172066156674/1016033345425125417/spdlog-1.10.0-2-x86_64.pkg.tar.zst
  • https://cdn.discordapp.com/attachments/1016033172066156674/1016033345425125417/spdlog-1.10.0-2-x86_64.pkg.tar.zst

then run this as root

pacman -U path/to/the/two/files/you/installed

and you done, it should work now.

Devarth123 avatar Sep 04 '22 17:09 Devarth123

Those links are the exact same.

EysseW avatar Sep 04 '22 21:09 EysseW

my bad here is the other one https://cdn.discordapp.com/attachments/1016033172066156674/1016033531195043932/fmt-8.1.1-2-x86_64.pkg.tar.zst

Devarth123 avatar Sep 05 '22 00:09 Devarth123

Confirming, community/waybar will fail to launch, complaining that it can't find libfmt.so.8, however installing aur/waybar-git works flawless out of the box. Interesting note, though: chaotic-aur/waybar-experimental-git does not work either (same error), however aur/waybar-experimental-git does.

Bottom line is, given that this seems to be an Arch-centric issue, compile it yourself (or don't upgrade fmt) from the AUR with something like yay, or whatever you want to use, as Chaotic AUR and mainstream doesn't compile with fmt9 in mind.

AtlasC0R3 avatar Sep 05 '22 02:09 AtlasC0R3

Hey ho, yep, the problem with the distributed packaged is currently wrong binding. But also with the new fmt library, there is a compile error because the std::filesystem::path in src/config.cpp line 33 and 40 cannot be formatted. With a path.string() this can be fixed, or maybe something else to add support for std::filesystem::path.

A hotfix for people who want to work with fmt9 and way bar could use this hotfix temporary ^^ https://gist.github.com/JBenda/934a62398e0d1e7a775eeea47385fff2#file-waybarfmthotfix-patch

JBenda avatar Sep 07 '22 08:09 JBenda

Hey I was having the same issue but building from source (on master) today worked !

Vagahbond avatar Sep 10 '22 10:09 Vagahbond

Yes it was fixed 3 day ago with commit: https://github.com/Alexays/Waybar/commit/03ca8de6d744e9f52803a5d324ddbee822a9d045

JBenda avatar Sep 10 '22 18:09 JBenda

I believe the state of this issue as of right now is that:

  • It's Arch-specific
  • This issue only affects mainstream builds (those fetched using pacman, including the community and chaotic-aur repo)
  • Building waybar using the AUR (or from the git source manually) works

So I suppose we are waiting for the aforementioned commit to become in an official update?

AtlasC0R3 avatar Sep 10 '22 18:09 AtlasC0R3

Yes it was fixed 3 day ago with commit: 03ca8de

It still gives me the exact same error with waybar being compiled from latest source.

EysseW avatar Sep 10 '22 21:09 EysseW

@EysseW Did you still have errors?

Alexays avatar Oct 27 '22 07:10 Alexays

I did still experience the same issue before doing a clean install a couple of weeks ago. No issue on fresh install.

EysseW avatar Oct 28 '22 01:10 EysseW