In reference to bug #674434, I noticed that there was a problem with some octave's dependencies. In particular cblas and lapack-reference were installed with a previous version of gcc (if I am not wrong it was 6.x providing libgfortran.so.3). When switching to gcc-7 (which provides libgfortran.so.4) and uninstalling previous gcc version 6.x, I faced the same problem described in the bug #674434. As libgfortran.so is inserted in the NEEDED list, it's strange that the preserve-libs mechanisms didn't save the library. I had to solve the issue by manually running revdep-rebuild Moreover, on another system which is using gcc-8, I noticed that one of the libs (libquadmath.so.0) listed by ldd is not inserted in the NEEDED file: # ldd /usr/lib64/lapack/reference/liblapack.so linux-vdso.so.1 (0x00007fff0df80000) libblas.so.0 => /usr/lib64/blas/reference/libblas.so.0 (0x00007f6b54a7b000) libgfortran.so.5 => /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libgfortran.so.5 (0x00007f6b54605000) libm.so.6 => /lib64/libm.so.6 (0x00007f6b5426c000) libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libgcc_s.so.1 (0x00007f6b54055000) libc.so.6 => /lib64/libc.so.6 (0x00007f6b53c8c000) libquadmath.so.0 => /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libquadmath.so.0 (0x00007f6b53a4c000) libz.so.1 => /lib64/libz.so.1 (0x00007f6b53835000) /lib64/ld-linux-x86-64.so.2 (0x00007f6b554a4000) # cat /var/db/pkg/sci-libs/lapack-reference-3.2.1-r4/NEEDED /usr/lib64/lapack/reference/liblapack.so.0.0.0 libblas.so.0,libgfortran.so.5,libm.so.6,libgcc_s.so.1,libc.so.6
Created attachment 570100 [details] emerge-info.txt.gz
*** This bug has been marked as a duplicate of bug 459038 ***