Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70097

FTBFS: linking fails to system libraries through static libs in builds with -qtlibinfix

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.0 Alpha
    • 5.12.0 Alpha
    • Build tools: qmake
    • None
    • 5.12 branch (07eda676e45f6c3c7237581c3f4a9e39695697ab)
    • Linux/Wayland, Linux/X11, Linux/Other display system
    • 999d4d5777b098f9c1f311af4addad910e44ab62

    Description

      1. Configure with -system-zlib -qtlibinfix .t.
      2. make

      Result:

      gmake[2]: Entering directory '/home/tjmaciei/obj/qt/qt5/qtbase/src/tools/rcc'
      g++ -pipe -march=native -Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,--enable-new-dtags -fuse-linker-plugin -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,--gdb-index -Wl,--gc-sections -Wl,-z,nocopyreloc -o ../../../bin/rcc .obj/rcc.o .obj/main.o   -L/home/tjmaciei/obj/qt/qt5/qtbase/lib -lQt5Bootstrap.t -lpthread 
      /home/tjmaciei/src/qt/qt5/qtbase/src/corelib/tools/qbytearray.cpp:760: error: undefined reference to 'compress2'
      collect2: error: ld returned 1 exit status
      gmake[2]: *** [Makefile:112: ../../../bin/rcc] Error 1
      gmake[2]: Leaving directory '/home/tjmaciei/obj/qt/qt5/qtbase/src/tools/rcc'
      

      Indeed, the src/tools/rcc/Makefile has:

      LIBS          = $(SUBLIBS) -L/home/tjmaciei/obj/qt/qt5/qtbase/lib -lQt5Bootstrap.t -lpthread 
      

      The old build had:

      LIBS          = $(SUBLIBS) -L/home/tjmaciei/obj/qt/qt5-clang/qtbase/lib -lQt5Bootstrap.t -lz -lpthread 
      

      (different lib paths because it's the Clang build I haven't erased yet)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              buddenha Oswald Buddenhagen
              thiago Thiago Macieira
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes