[Bug 208120] devel/cmake: Strips necessary rpath when installing any GNU compiler from ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 10 23:32:19 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208120

--- Comment #16 from Diane Bruce <db at FreeBSD.org> ---
The problem with the fix mentioned in comment #14 is it then forces everything
compiled with native compilers to use a port based libgcc_s which might be seen
as a feature, not a bug by some. ;) 

Our libgcc_s is not GPL code at all, it is our own code. It just happens to be
compatible with gcc's libgcc_s except apparently for gfortran. We don't have
our own BSDL libquadmath and gfortran requires libquadmath which is enforced by
libgfortran insisting it needs a later version of libgcc_s than we claim to be
compatible with. ;) And that's what the error message is telling us!

"ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc48/libgfortran.so.3 not found" libgfortran requires GCC_4.6.0
or later and our libgcc_s is only GCC_4.2.0 (from memory) compliant. You can
use elfdump to see this

elfdump -a /usr/lib/libgcc_s.so|grep GCC
        st_name: GCC_3.0
        st_name: GCC_3.3
        st_name: GCC_3.4
        st_name: GCC_4.2.0
        st_name: GCC_4.3.0
        st_name: GCC_3.3.1
        st_name: GCC_3.4.2
        st_name: GCC_3.4.4
        st_name: GCC_4.0.0



vs. 
 elfdump -a  /usr/local/lib/gcc49/libgcc_s.so|grep GCC
        st_name: GCC_3.3.1
        st_name: GCC_4.0.0
        st_name: GCC_3.0
        st_name: GCC_3.4
        st_name: GCC_4.6.0
        st_name: GCC_4.7.0
        st_name: GCC_3.4.2
        st_name: GCC_3.4.4
        st_name: GCC_4.2.0
        st_name: GCC_4.3.0
        st_name: GCC_3.3
        st_name: GCC_4.8.0
        st_name: GCC_3.3.1
        st_name: GCC_4.0.0
        st_name: GCC_3.0
        st_name: GCC_3.4
        st_name: GCC_4.6.0
        st_name: GCC_4.7.0
        st_name: GCC_3.4.2
        st_name: GCC_3.4.4
        st_name: GCC_4.2.0
        st_name: GCC_4.3.0
        st_name: GCC_3.3
        st_name: GCC_4.8.0

Time for me to poke at portmgr ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list