Tiny Core Extensions > TCE Bugs
gfortran missing libisl.so.13
(1/1)
andrechalella:
When I try to compile anything with gfortran (regardless of flags) I get this rather long line:
--- Code: ---/usr/local/lib/gcc/i486-pc-linux-gnu/5.2.0/f951: error while loading shared libraries: libisl.so.13: cannot open shared object file: No such file or directory
--- End code ---
There's a 2 years old related but incomplete thread about the same error with gcc in Corepure64 (link below), but gcc actually works for me. I was able to compile a Hello World in C with no problems at all.
http://forum.tinycorelinux.net/index.php/topic,21130.msg131991.html
Since I didn't find any libisl.so in the repo (much less version 13), I'm looking online for a replacement, but can't seem to find it anywhere (Debian jumps from 12 to 18 for example). Maybe I'll try to compile it, but I can't guarantee anything.
andrechalella:
I was able to easily satisfy the libisl.so.13 dependency:
--- Code: ---curl -O http://isl.gforge.inria.fr/isl-0.13.tar.xz
tar x -J -f isl-0.13.tar.xz
cd isl-0.13
tce-load -i gmp-dev
./configure && make && sudo make install
sudo ldconfig
--- End code ---
Then I ran into a new dependency error (libmpfr.so.4):
--- Code: ---/usr/local/lib/gcc/i486-pc-linux-gnu/5.2.0/f951: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
--- End code ---
I found I had mpfr.tcz installed, but for some reason it contains libmpfr.so.6 instead of .4 -- funny because the package description claims it is version 4! Anyway, this was solved by:
--- Code: ---sudo ln -s /usr/local/lib/libmpfr.so /usr/local/lib/libmpfr.so.4
sudo ldconfig
--- End code ---
... maybe this will cause unintended consequences in the future, though.
Anyway, the REAL dead-end was liblto_plugin.so:
--- Code: ---gfortran: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
--- End code ---
I found I do have this file:
--- Code: ---$ sudo find / -name liblto_plugin.so
/tmp/tcloop/gcc/usr/local/lib/bfd-plugins/liblto_plugin.so
/tmp/tcloop/gcc/usr/local/lib/gcc/i486-pc-linux-gnu/8.2.0/liblto_plugin.so
/usr/local/lib/gcc/i486-pc-linux-gnu/8.2.0/liblto_plugin.so
/usr/local/lib/bfd-plugins/liblto_plugin.so
--- End code ---
However, no combination of copying that file everywhere or setting LD_LIBRARY_PATH, LIBRARY_PATH, LDLIBS, LDFLAGS was able to even slightly change that error line.
Except for -fno-use-linker-plugin, but it didn't help much either:
--- Code: ---ld: cannot find crtbegin.o: No such file or directory
ld: cannot find -lgcc
--- End code ---
I don't know if this entire post belongs here. I just wanted to write this before I got some sleep.
Any help is greatly appreciated.
PS: gfortran.tcz is a bit outdated -- 5.2.0 (2015) while gcc.tcz is 8.2.0 (2018)
Juanito:
The latest version of gfortran was compiled in tc-7.x using gcc-5.2.0.
Since that time various dependencies have been updated, which explains why it does not work in tc-10.x with gcc-8.2.0.
I'll take a look, but it might not be for a couple of weeks.
andrechalella:
Success!
Turns out it really had to do with version mismatch between gcc and gfortran (see PS of the previous message).
The files existed in 8.2.0 (GCC version) dir:
/usr/local/lib/gcc/i486-pc-linux-gnu/8.2.0/
But they ought to be in 5.2.0 (GFortran version) dir:
/usr/local/lib/gcc/i486-pc-linux-gnu/5.2.0/
Fix:
--- Code: ---missing='liblto_plugin.so crtbegin.o libgcc.a crtend.o'
dir1=/usr/local/lib/gcc/i486-pc-linux-gnu/8.2.0
dir2=/usr/local/lib/gcc/i486-pc-linux-gnu/5.2.0
for x in $missing; do sudo ln -s $dir1/$x $dir2/; done
--- End code ---
Now gfortran is able to successfully compile my (rather simple) Fortran programs.
Juanito:
updated version posted, but not tested
Navigation
[0] Message Index
Go to full version