Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681148 - FEATURES=preserve-libs seems not working with slotted gcc
Summary: FEATURES=preserve-libs seems not working with slotted gcc
Status: RESOLVED DUPLICATE of bug 459038
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-21 11:18 UTC by Fabio Rossi
Modified: 2019-03-21 14:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt.gz (emerge-info.txt.gz,7.42 KB, application/gzip)
2019-03-21 11:20 UTC, Fabio Rossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2019-03-21 11:18:42 UTC
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
Comment 1 Fabio Rossi 2019-03-21 11:20:38 UTC
Created attachment 570100 [details]
emerge-info.txt.gz
Comment 2 Zac Medico gentoo-dev 2019-03-21 14:15:47 UTC

*** This bug has been marked as a duplicate of bug 459038 ***