LinuxQuestions.org
Review your favorite Linux distribution.
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 05-21-2020, 12:26 AM   #1
juju
Member
 
Registered: Jan 2005
Location: California
Distribution: Slackware current 08/2020
Posts: 53

Rep: Reputation: 0
Error with GCC: while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory


Hello,

I'm tooling around on my Slackware 14.2 machine tonight, trying some beginner C programming. I encountered the following error when trying to compile my first program:

/usr/libexec/gcc/x86_64-slackware-linux/9.3.0/cc1: error while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory

I imagine this is a fairly standard error. The library, libisl.so.22 is located at /usr/lib. I added this directory to my ld.so.conf file and ran ldconfig. This didn't help.

Running ldconfig -p shows the library in the appropriate directory.

I should note this is a 64-bit machine. It's been a while since I set it up, so I've forgotten the finer points of the system.

I'm fairly sure the answer is found in this multilib setup.

Thanks in advance...

Here is the output of the command gcc -v:

Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/9.3.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/9.3.0/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-9.3.0/configure --prefix=/usr
--libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info
--enable-shared --enable-bootstrap
--enable-languages=ada,brig,c,c++,d,fortran,go,lto,objc,obj-c++
--enable-threads=posix --enable-checking=release --enable-objc-gc
--with-system-zlib --enable-libstdcxx-dual-abi
--with-default-libstdcxx-abi=new --disable-libstdcxx-pch
--disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp
--enable-gnu-unique-object --enable-plugin --enable-lto
--disable-install-libiberty --enable-gnu-indirect-function
--with-linker-hash-style=gnu --with-gnu-ld --with-isl --verbose
--with-arch-directory=amd64 --disable-gtktest --disable-werror
--enable-clocale=gnu --enable-multilib --target=x86_64-slackware-linux
--build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 9.3.0 (GCC)
 
Old 05-21-2020, 12:33 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801
14.2 doesn't use gcc 9.3.0
Did you installed gcc from current into stable?
 
Old 05-21-2020, 12:44 AM   #3
juju
Member
 
Registered: Jan 2005
Location: California
Distribution: Slackware current 08/2020
Posts: 53

Original Poster
Rep: Reputation: 0
I don't remember. It's been a while since I set up the machine. I did add multilib capability as described on this page: http://docs.slackware.com/slackware:multilib
 
Old 05-21-2020, 12:46 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801
Probably you mixed up your system with Slackware-Current
check your mirror setting in /etc/slackpkg/mirrors
 
Old 05-21-2020, 01:00 AM   #5
juju
Member
 
Registered: Jan 2005
Location: California
Distribution: Slackware current 08/2020
Posts: 53

Original Poster
Rep: Reputation: 0
These are the relevant lines from my mirrors file:

# Slackware64-14.2

# USE MIRRORS.SLACKWARE.COM (DO NOT USE FTP - ONLY HTTP FINDS A NEARBY MIRROR)
http://mirrors.slackware.com/slackwa...ckware64-14.2/

http://hpc-mirror.usc.edu/pub/linux/...ckware64-14.2/

It would seem I uncommented 2 lines. I don't know if this will make much difference, but it is mentioned in the file notes. I will comment out the mirror from usc.edu
 
Old 05-21-2020, 04:50 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
This looks like you downloaded the gcc multilib packages for Slackware-current and installed those packages.
 
Old 05-21-2020, 06:02 AM   #7
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by juju View Post
I imagine this is a fairly standard error. The library, libisl.so.22 is located at /usr/lib. I added this directory to my ld.so.conf file and ran ldconfig. This didn't help.

I should note this is a 64-bit machine.
The /usr/lib/libisl.so.22 should be a 32-bit library.
Do you have got a /usr/lib64/libisl.so.22 too?

Furthermore both gcc 9.3 and isl-22.1 are packages for -current, not for 14.2

PS: -current is often referred to as 14.2+ (note the PLUS) but is at the moment closer to the "to be released" 15.0 version then the almost 4 year old 14.2 one of Slackware.
Packages for -current are not compatible with 14.2 anymore.

Last edited by ehartman; 05-21-2020 at 06:36 AM. Reason: added PS
 
Old 05-21-2020, 04:10 PM   #8
juju
Member
 
Registered: Jan 2005
Location: California
Distribution: Slackware current 08/2020
Posts: 53

Original Poster
Rep: Reputation: 0
All of the mirrors under Slackware64-current in my slackpkg mirrors file are commented out. I've been using the Slackware64-14.2 mirrors for a while. I have set it to a single mirror, from texas.edu.

This would seem to contradict my downloading Slackware-current packages. It is possible I used the "current" mirror during initial set up.

I don't have /usr/lib64/libisl.so.22.
 
Old 05-21-2020, 04:20 PM   #9
I.G.O.R
Member
 
Registered: Dec 2017
Distribution: Slackware
Posts: 213

Rep: Reputation: 23
Quote:
Originally Posted by juju View Post
Hello,

I'm tooling around on my Slackware 14.2 machine tonight, trying some beginner C programming. I encountered the following error when trying to compile my first program:

/usr/libexec/gcc/x86_64-slackware-linux/9.3.0/cc1: error while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory

I imagine this is a fairly standard error. The library, libisl.so.22 is located at /usr/lib. I added this directory to my ld.so.conf file and ran ldconfig. This didn't help.

Running ldconfig -p shows the library in the appropriate directory.

I should note this is a 64-bit machine. It's been a while since I set it up, so I've forgotten the finer points of the system.

I'm fairly sure the answer is found in this multilib setup.

Thanks in advance...

Here is the output of the command gcc -v:

Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/9.3.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/9.3.0/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-9.3.0/configure --prefix=/usr
--libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info
--enable-shared --enable-bootstrap
--enable-languages=ada,brig,c,c++,d,fortran,go,lto,objc,obj-c++
--enable-threads=posix --enable-checking=release --enable-objc-gc
--with-system-zlib --enable-libstdcxx-dual-abi
--with-default-libstdcxx-abi=new --disable-libstdcxx-pch
--disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp
--enable-gnu-unique-object --enable-plugin --enable-lto
--disable-install-libiberty --enable-gnu-indirect-function
--with-linker-hash-style=gnu --with-gnu-ld --with-isl --verbose
--with-arch-directory=amd64 --disable-gtktest --disable-werror
--enable-clocale=gnu --enable-multilib --target=x86_64-slackware-linux
--build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 9.3.0 (GCC)
I'm old enough to remember that summer Slackware 14.2 was released. Cc1 didn't have dependancy on isl. You messed up the system with newer gcc from -current.

Last edited by I.G.O.R; 05-21-2020 at 04:23 PM.
 
Old 05-21-2020, 04:24 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
libisl should be provided by the isl package in the l/ series on -current. gcc is looking for the 0.22.1 version of isl, which is version in -current right now. That means the gcc you're using is from -current (or multilib for -current).

If you're running a 14.2 install, isl is not included (it was added to -current in Sep 2019).

So, there's 3 different things it could be (in the order I believe to be the most likely to the least likely).

1. You're running 14.2 but installed the multilib packages for -current (which is what Alien Bob suggested above).
2. You're running an incomplete version of -current and missing the isl package.
3. You're running an partially out-of-date version of -current and have the older 0.21 version of isl.

To figure this out, can you provide us the output of the following command?

Code:
ls -l /var/log/packages/{aaa,gcc}*
 
Old 05-21-2020, 04:39 PM   #11
juju
Member
 
Registered: Jan 2005
Location: California
Distribution: Slackware current 08/2020
Posts: 53

Original Poster
Rep: Reputation: 0
This is the output from: % slackpkg search gcc

slackpkg search gcc

Looking for gcc in package list. Please wait... DONE

The list below shows all packages with name matching "gcc".

[ Status ] [ Repository ] [ Package]
installed multilib gcc-9.3.0_multilib-x86_64-2alien
installed multilib gcc-brig-9.3.0_multilib-x86_64-2alien
installed multilib gcc-g++-9.3.0_multilib-x86_64-2alien
installed multilib gcc-gdc-9.3.0_multilib-x86_64-2alien
installed multilib gcc-gfortran-9.3.0_multilib-x86_64-2alien
installed multilib gcc-gnat-9.3.0_multilib-x86_64-2alien
installed multilib gcc-go-9.3.0_multilib-x86_64-2alien
installed multilib gcc-objc-9.3.0_multilib-x86_64-2alien
uninstalled patches gcc-java-5.5.0-x86_64-1_slack14.2
uninstalled slackware64 gccmakedep-1.0.3-noarch-1
uninstalled(masked) patches gcc-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-g++-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-gfortran-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-gnat-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-go-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-objc-5.5.0-x86_64-1_slack14.2
uninstalled(masked) slackware64 gcc-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-g++-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-gfortran-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-gnat-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-go-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-java-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-objc-5.3.0-x86_64-3

What would happen if I simply used % slackpkg remove gcc ?
 
Old 05-21-2020, 04:43 PM   #12
juju
Member
 
Registered: Jan 2005
Location: California
Distribution: Slackware current 08/2020
Posts: 53

Original Poster
Rep: Reputation: 0
Here is the output from % ls -l /var/log/packages/{aaa,gcc}*

-rw-r--r-- 1 root root 2249 Jan 9 2017 /var/log/packages/aaa_base-14.2-x86_64-2
-rw-r--r-- 1 root root 2704 Jan 9 2017 /var/log/packages/aaa_elflibs-14.2-x86_64-23
-rw-r--r-- 1 root root 3545 May 20 18:47 /var/log/packages/aaa_elflibs-compat32-15.0-x86_64-23compat32
-rw-r--r-- 1 root root 13009 Jan 9 2017 /var/log/packages/aaa_terminfo-5.9-x86_64-1
-rw-r--r-- 1 root root 49124 Apr 7 20:02 /var/log/packages/gcc-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 1256 Apr 7 20:02 /var/log/packages/gcc-brig-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 45955 Apr 7 20:02 /var/log/packages/gcc-g++-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 53253 Apr 7 20:02 /var/log/packages/gcc-gdc-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 2503 Apr 7 20:02 /var/log/packages/gcc-gfortran-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 258610 Apr 7 20:02 /var/log/packages/gcc-gnat-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 20831 Apr 7 20:03 /var/log/packages/gcc-go-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 2318 Apr 7 20:03 /var/log/packages/gcc-objc-9.3.0_multilib-x86_64-2alien
 
Old 05-21-2020, 04:48 PM   #13
I.G.O.R
Member
 
Registered: Dec 2017
Distribution: Slackware
Posts: 213

Rep: Reputation: 23
Quote:
Originally Posted by juju View Post
This is the output from: % slackpkg search gcc

slackpkg search gcc

Looking for gcc in package list. Please wait... DONE

The list below shows all packages with name matching "gcc".

[ Status ] [ Repository ] [ Package]
installed multilib gcc-9.3.0_multilib-x86_64-2alien
installed multilib gcc-brig-9.3.0_multilib-x86_64-2alien
installed multilib gcc-g++-9.3.0_multilib-x86_64-2alien
installed multilib gcc-gdc-9.3.0_multilib-x86_64-2alien
installed multilib gcc-gfortran-9.3.0_multilib-x86_64-2alien
installed multilib gcc-gnat-9.3.0_multilib-x86_64-2alien
installed multilib gcc-go-9.3.0_multilib-x86_64-2alien
installed multilib gcc-objc-9.3.0_multilib-x86_64-2alien
uninstalled patches gcc-java-5.5.0-x86_64-1_slack14.2
uninstalled slackware64 gccmakedep-1.0.3-noarch-1
uninstalled(masked) patches gcc-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-g++-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-gfortran-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-gnat-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-go-5.5.0-x86_64-1_slack14.2
uninstalled(masked) patches gcc-objc-5.5.0-x86_64-1_slack14.2
uninstalled(masked) slackware64 gcc-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-g++-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-gfortran-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-gnat-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-go-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-java-5.3.0-x86_64-3
uninstalled(masked) slackware64 gcc-objc-5.3.0-x86_64-3

What would happen if I simply used % slackpkg remove gcc ?
14.2 had gcc-5.5, not 9.3
 
Old 05-21-2020, 04:50 PM   #14
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by juju View Post
I've been using the Slackware64-14.2 mirrors for a while.
Please define "for a while." Did you used to be on -current, and then try to switch back to 14.2? That's ... fraught with danger.

Despite your claim of running 14.2, you have the -current multilib gcc. Get the correct multilib files from here:

http://bear.alienbase.nl/mirrors/peo...multilib/14.2/

And simply use upgradepkg to switch to the correct version.

I'll refrain from giving slackpkg advice as I don't use it.

Please don't mix -current and 14.2 packages!

Last edited by drumz; 05-21-2020 at 04:53 PM. Reason: Updated link to mirror instead of slackware.com
 
Old 05-21-2020, 05:10 PM   #15
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by juju View Post
Here is the output from % ls -l /var/log/packages/{aaa,gcc}*

-rw-r--r-- 1 root root 2249 Jan 9 2017 /var/log/packages/aaa_base-14.2-x86_64-2
-rw-r--r-- 1 root root 2704 Jan 9 2017 /var/log/packages/aaa_elflibs-14.2-x86_64-23
-rw-r--r-- 1 root root 3545 May 20 18:47 /var/log/packages/aaa_elflibs-compat32-15.0-x86_64-23compat32
-rw-r--r-- 1 root root 13009 Jan 9 2017 /var/log/packages/aaa_terminfo-5.9-x86_64-1
-rw-r--r-- 1 root root 49124 Apr 7 20:02 /var/log/packages/gcc-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 1256 Apr 7 20:02 /var/log/packages/gcc-brig-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 45955 Apr 7 20:02 /var/log/packages/gcc-g++-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 53253 Apr 7 20:02 /var/log/packages/gcc-gdc-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 2503 Apr 7 20:02 /var/log/packages/gcc-gfortran-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 258610 Apr 7 20:02 /var/log/packages/gcc-gnat-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 20831 Apr 7 20:03 /var/log/packages/gcc-go-9.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 2318 Apr 7 20:03 /var/log/packages/gcc-objc-9.3.0_multilib-x86_64-2alien
Hi juju,

This is what I have:

Code:
# ls -l /var/log/packages/{aaa,gcc}*
-rw-r--r-- 1 root root   2249 Jan  3  2017 /var/log/packages/aaa_base-14.2-x86_64-2
-rw-r--r-- 1 root root   2704 Jan  3  2017 /var/log/packages/aaa_elflibs-14.2-x86_64-23
-rw-r--r-- 1 root root   2733 Jan  4  2017 /var/log/packages/aaa_elflibs-compat32-14.2-x86_64-23compat32
-rw-r--r-- 1 root root  13009 Jan  3  2017 /var/log/packages/aaa_terminfo-5.9-x86_64-1
-rw-r--r-- 1 root root  44804 Feb  7  2018 /var/log/packages/gcc-5.5.0_multilib-x86_64-1alien
-rw-r--r-- 1 root root  42000 Feb  7  2018 /var/log/packages/gcc-g++-5.5.0_multilib-x86_64-1alien
-rw-r--r-- 1 root root   2762 Feb  7  2018 /var/log/packages/gcc-gfortran-5.5.0_multilib-x86_64-1alien
-rw-r--r-- 1 root root 251675 Feb  7  2018 /var/log/packages/gcc-gnat-5.5.0_multilib-x86_64-1alien
-rw-r--r-- 1 root root  20355 Feb  7  2018 /var/log/packages/gcc-go-5.5.0_multilib-x86_64-1alien
-rw-r--r-- 1 root root 236582 Feb  7  2018 /var/log/packages/gcc-java-5.5.0_multilib-x86_64-1alien
-rw-r--r-- 1 root root   2232 Feb  7  2018 /var/log/packages/gcc-objc-5.5.0_multilib-x86_64-1alien
-rw-r--r-- 1 root root    798 Jan  3  2017 /var/log/packages/gccmakedep-1.0.3-noarch-1
 
  


Reply



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
apt-config:error while loading shared libraries: libgcc_s.so.1 cannot open shared object file: No such file or directory wenyumei Ubuntu 1 07-20-2016 10:58 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM

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

All times are GMT -5. The time now is 09:59 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