[Bug 218187] devel/qt5-core, devel/qt5-qmake, devel/binutils: qt5 produces unusable library with binutils

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 28 15:43:30 UTC 2017


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

            Bug ID: 218187
           Summary: devel/qt5-core, devel/qt5-qmake, devel/binutils: qt5
                    produces unusable library with binutils
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: bapt at FreeBSD.org
          Reporter: amdmi3 at FreeBSD.org
          Assignee: bapt at FreeBSD.org
             Flags: maintainer-feedback?(bapt at FreeBSD.org)

There's problem in gold linker from new binutils, which produces the following
problem:

- when binutils 2.28 are installed
- qmake detects gold and adds use_gold_linker to CONFIG
/usr/local/lib/qt5/mkspecs/qmodule.pri:

-CONFIG +=  compile_examples no-libdl qpa largefile use_gold_linker
enable_new_dtags sse2 sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512er
avx512cd
+CONFIG +=  compile_examples no-libdl qpa largefile enable_new_dtags sse2 sse3
ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512er avx512cd

- qt5-core builds library which may not be used with conventional linker
because of duplicated symbols

This leads to failure when building qt5-widgets after rebuilding qt5-core:

/usr/work/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensource-src-5.7.1/lib/libQt5Core.so:(.dynamic+0x27aa0):
multiple definition of `__bss_start at Qt_5'
/usr/work/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensource-src-5.7.1/lib/libQt5Core.so:(.dynamic+0x27aa0):
first defined here
/usr/work/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensource-src-5.7.1/lib/libQt5Core.so:(.dynamic+0x27aa0):
multiple definition of `_edata at Qt_5'
/usr/work/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensource-src-5.7.1/lib/libQt5Core.so:(.dynamic+0x27aa0):
first defined here
/usr/work/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensource-src-5.7.1/lib/libQt5Core.so:(.dynamic+0x2b2a8):
multiple definition of `_end at Qt_5'

related bugs from other distros:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852035
https://sourceware.org/bugzilla/show_bug.cgi?id=21074

This reveals at least two problems:
- qmake5 should be fixed to never detect gold. Otherwise it creates hidden
dependency on binutils which leads to build failures after binutils are
deinstalled and kills consistency in general
- gold from binutils port should be fixed to not produce duplicate symbols;
there's likely upstream fix for that

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


More information about the freebsd-ports-bugs mailing list