LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-26-2020, 03:20 AM   #1
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
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
 
Old 09-26-2020, 03:33 AM   #2
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Original Poster
Rep: Reputation: 181Reputation: 181
Addendum: as the llvm package is included in multilib/massconvert32.sh, there will be a mismatch if installing the extra version of the package:

Code:
[zakame:~] % ls /var/log/packages/llvm*
/var/log/packages/llvm-8.0.1-x86_64-1_slack14.2
/var/log/packages/llvm-compat32-3.8.0-x86_64-2compat32
I suppose a workaround for now would be to fetch the 32bit extra version, then use convertpkg-compat32 on it:

Code:
root@jazz:~# curl -sLO http://ftp.slackware.com/pub/slackware/slackware-14.2/extra/llvm/llvm-8.0.1-i586-1_slack14.2.txz
root@jazz:~# convertpkg-compat32 -i llvm-8.0.1-i586-1_slack14.2.txz 
...

Slackware package /tmp/llvm-compat32-8.0.1-x86_64-1_slack14.2compat32.txz created.

Package created:  /tmp/llvm-compat32-8.0.1-x86_64-1_slack14.2compat32.txz
root@jazz:~# upgradepkg /tmp/llvm-compat32-8.0.1-x86_64-1_slack14.2compat32.txz 
...
Package llvm-compat32-3.8.0-x86_64-2compat32 upgraded with new package /tmp/llvm-compat32-8.0.1-x86_64-1_slack14.2compat32.txz.

root@jazz:~# ls /var/log/packages/llvm-*
/var/log/packages/llvm-8.0.1-x86_64-1_slack14.2
/var/log/packages/llvm-compat32-8.0.1-x86_64-1_slack14.2compat32
 
Old 09-26-2020, 04:38 PM   #3
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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.
 
Old 10-30-2020, 05:34 AM   #4
Livestradamus
Member
 
Registered: Feb 2006
Location: Planet Earth (currently)
Distribution: Slackware & OpenBSD
Posts: 122

Rep: Reputation: 53
Thumbs up This helped me

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 View Post
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
 
  


Reply

Tags
llvm, rustc, slackware 14.2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
llvm-config problem in slackware64-current LLVM 3.2 package teeemcee Slackware 0 01-24-2013 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration