[SOLVED] FYI: rust-1.46.0 on Slackware 14.2 needs extra/llvm/llvm-8.0.1
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
FYI: rust-1.46.0 on Slackware 14.2 needs extra/llvm/llvm-8.0.1
Just a note to help someone else later
From a fresh upgrade-all to pull in updates from the 9/23:
Code:
[zakame:~] % ls /var/log/packages/rust*
/var/log/packages/rust-1.46.0-x86_64-1_slack14.2
[zakame:~] % rustc --version
rustc: error while loading shared libraries: libLLVM-8.so: cannot open shared object file: No such file or directory
[zakame:~] 127 % ldd /usr/bin/rustc
linux-vdso.so.1 (0x00007ffed7eca000)
librustc_driver-d159e901dd301337.so => /usr/lib64/librustc_driver-d159e901dd301337.so (0x00007fd8f1de6000)
libstd-6187226fb0675c50.so => /usr/lib64/libstd-6187226fb0675c50.so (0x00007fd8f1ac6000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd8f16fd000)
libLLVM-8.so => not found
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fd8f1381000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fd8f117d000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd8f0f60000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fd8f0d49000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd8f60a7000)
libm.so.6 => /lib64/libm.so.6 (0x00007fd8f0a40000)
librt.so.1 => /lib64/librt.so.1 (0x00007fd8f0838000)
[zakame:~] % ls /usr/lib64/libLLVM-*.so
/usr/lib64/libLLVM-3.8.0.so /usr/lib64/libLLVM-3.8.so
[zakame:~] % ls /var/log/packages/llvm*
/var/log/packages/llvm-3.8.0-x86_64-2
This would seem surprising, but a little more perusal of the stable changelog provides illumination:
Quote:
+--------------------------+
Sat Jul 20 22:11:38 UTC 2019
extra/llvm/llvm-8.0.1-x86_64-1_slack14.2.txz: Upgraded.
...
+--------------------------+
Mon Sep 24 21:37:09 UTC 2018
extra/llvm/llvm-6.0.1-x86_64-1_slack14.2.txz: Upgraded.
Moved this package from /patches, since it is not really a required patch.
Unless you're planning to rebuild Firefox or Thunderbird (or have some
other use-case for a more recent LLVM than was shipped with Slackware 14.2)
you probably don't need to upgrade to this package, and it was reported
that doing so impacted at least one package provided by slackbuilds.org.
So, /extra seems like a better place for this package.
So, it would seem that a simple upgradepkg $MIRROR/slackware64-14.2/extra/llvm/llvm-8.0.1-x86_64-1_slack14.2.txz would provide the missing libLLVM-8.so dependency; not sure if the warning from then still applies, but it should be enough to get rustc working:
Code:
root@jazz:~# upgradepkg ~ftp/pub/Linux/slackware/slackware64-14.2/extra/llvm/llvm-8.0.1-x86_64-1_slack14.2.txz
...
Package llvm-3.8.0-x86_64-2 upgraded with new package /home/ftp/pub/Linux/slackware/slackware64-14.2/extra/llvm/llvm-8.0.1-x86_64-1_slack14.2.txz.
root@jazz:~# rustc --version
rustc 1.46.0
zakame, thank you for posting all this, sure applies to my thread.
I did
Code:
slackpkg install rust
and got what you did
Quote:
rustc --version
rustc: error while loading shared libraries: libLLVM-8.so: cannot open shared object file: No such file or directory
as the change log comments say
Quote:
patches/packages/rust-1.28.0-x86_64-1_slack14.2.txz: Added.
Since Rust is now a requirement to compile Firefox and Thunderbird we
are adding it here. Unless you will need to recompile those (or need to
compile other code written in Rust), it is an optional addition.
I don't think I'll worry about rust at this time, I don't need to recompile either of those.
Not to necrobump but I really really need to read, or at least bare minimum skim through, changelogs again.
After recent kernel patch forced to restart the server my electrs failed with the same dependency error and this post helped. Thank you,
Quote:
Originally Posted by zakame
Just a note to help someone else later
From a fresh upgrade-all to pull in updates from the 9/23:
Code:
[zakame:~] % ls /var/log/packages/rust*
/var/log/packages/rust-1.46.0-x86_64-1_slack14.2
[zakame:~] % rustc --version
rustc: error while loading shared libraries: libLLVM-8.so: cannot open shared object file: No such file or directory
[zakame:~] 127 % ldd /usr/bin/rustc
linux-vdso.so.1 (0x00007ffed7eca000)
librustc_driver-d159e901dd301337.so => /usr/lib64/librustc_driver-d159e901dd301337.so (0x00007fd8f1de6000)
libstd-6187226fb0675c50.so => /usr/lib64/libstd-6187226fb0675c50.so (0x00007fd8f1ac6000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd8f16fd000)
libLLVM-8.so => not found
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fd8f1381000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fd8f117d000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd8f0f60000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fd8f0d49000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd8f60a7000)
libm.so.6 => /lib64/libm.so.6 (0x00007fd8f0a40000)
librt.so.1 => /lib64/librt.so.1 (0x00007fd8f0838000)
[zakame:~] % ls /usr/lib64/libLLVM-*.so
/usr/lib64/libLLVM-3.8.0.so /usr/lib64/libLLVM-3.8.so
[zakame:~] % ls /var/log/packages/llvm*
/var/log/packages/llvm-3.8.0-x86_64-2
This would seem surprising, but a little more perusal of the stable changelog provides illumination:
So, it would seem that a simple upgradepkg $MIRROR/slackware64-14.2/extra/llvm/llvm-8.0.1-x86_64-1_slack14.2.txz would provide the missing libLLVM-8.so dependency; not sure if the warning from then still applies, but it should be enough to get rustc working:
Code:
root@jazz:~# upgradepkg ~ftp/pub/Linux/slackware/slackware64-14.2/extra/llvm/llvm-8.0.1-x86_64-1_slack14.2.txz
...
Package llvm-3.8.0-x86_64-2 upgraded with new package /home/ftp/pub/Linux/slackware/slackware64-14.2/extra/llvm/llvm-8.0.1-x86_64-1_slack14.2.txz.
root@jazz:~# rustc --version
rustc 1.46.0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.