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

Can not compile examples on openSUSE15.2 or SLES15 SP2, "undefined reference to `powf@GLIBC_2.27'"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.1.0 Beta2
    • Packaging & Installer

    Description

      Unable to build examples on openSUSE15.2 or SLES15 SP2. E.g. gui/analogclock:

      [1/1] Linking CXX executable gui_analogclock
      FAILED: gui_analogclock 
      : && /usr/bin/c++   CMakeFiles/gui_analogclock.dir/gui_analogclock_autogen/mocs_compilation.cpp.o CMakeFiles/gui_analogclock.dir/home/qt/RTA/qt5/Examples/Qt-6.1.0/gui/rasterwindow/rasterwindow.cpp.o CMakeFiles/gui_analogclock.dir/main.cpp.o -o gui_analogclock  -Wl,-rpath,/home/qt/RTA/qt5/6.1.0/gcc_64/lib:  /home/qt/RTA/qt5/6.1.0/gcc_64/lib/libQt6Gui.so.6.1.0  /usr/lib64/libGLX.so  /usr/lib64/libOpenGL.so  /home/qt/RTA/qt5/6.1.0/gcc_64/lib/libQt6Core.so.6.1.0  -pthread && :
      /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /home/qt/RTA/qt5/6.1.0/gcc_64/lib/libQt6Gui.so.6.1.0: undefined reference to `powf@GLIBC_2.27'
      collect2: error: ld returned 1 exit status
      ninja: build stopped: subcommand failed.
      
      ldd qmake
      linux-vdso.so.1 (0x00007fffa039f000)
      libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fd7aaa49000)
      libm.so.6 => /lib64/libm.so.6 (0x00007fd7aa711000)
      libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fd7aa4f8000)
      libc.so.6 => /lib64/libc.so.6 (0x00007fd7aa13d000)
      /lib64/ld-linux-x86-64.so.2 (0x00007fd7aae23000)
      
      ldd libQt6Gui.so.6.1.0 
      ./libQt6Gui.so.6.1.0: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ./libQt6Gui.so.6.1.0)
      linux-vdso.so.1 (0x00007ffef1f6f000)
      libEGL.so.1 => /usr/lib64/libEGL.so.1 (0x00007f02360ad000)
      libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1
      (0x00007f0235e68000)
      libz.so.1 => /lib64/libz.so.1
      (0x00007f0235c51000)
      libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f0235910000)
      libdl.so.2 => /lib64/libdl.so.2 (0x00007f023570c000)
      libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f02353e7000)
      libQt6DBus.so.6 => /home/qt/Qt610/6.1.0/gcc_64/lib/./libQt6DBus.so.6 (0x00007f023511b000)
      libxkbcommon.so.0 => /usr/lib64/libxkbcommon.so.0 (0x00007f0234edb000)
      libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f0234c43000)
      libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f0234989000)
      libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007f0234787000)
      libQt6Core.so.6 => /home/qt/Qt610/6.1.0/gcc_64/lib/./libQt6Core.so.6 (0x00007f0233f6e000)
      libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0233d4f000)
      libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f0233975000)
      libm.so.6 => /lib64/libm.so.6 (0x00007f023363d000)
      libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f0233424000)
      libc.so.6 => /lib64/libc.so.6 (0x00007f0233069000)
      libGLdispatch.so.0 => /usr/lib64/libGLdispatch.so.0
      (0x00007f0232dad000)
      libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f0232b7b000)
      libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f0232952000)
      /lib64/ld-linux-x86-64.so.2 (0x00007f0236d54000)
      libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f02326c7000)
      libdbus-1.so.3 => /usr/lib64/libdbus-1.so.3 (0x00007f0232475000)
      libGLX.so.0 => /usr/lib64/libGLX.so.0 (0x00007f0232243000)
      libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x00007f0232026000)
      libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007f0231de3000) libicui18n.so.60 => /home/qt/Qt610/6.1.0/gcc_64/lib/./libicui18n.so.60
      (0x00007f023190a000)
      libicuuc.so.60 => /home/qt/Qt610/6.1.0/gcc_64/lib/./libicuuc.so.60 (0x00007f0231534000)
      libicudata.so.60 => /home/qt/Qt610/6.1.0/gcc_64/lib/./libicudata.so.60 (0x00007f022f98c000)
      librt.so.1 => /lib64/librt.so.1 (0x00007f022f784000)
      libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f022f580000)
      libsystemd.so.0 => /usr/lib64/libsystemd.so.0 (0x00007f022f2ea000)
      libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f022f0c1000)
      libcap.so.2 => /usr/lib64/libcap.so.2 (0x00007f022eebc000)
      liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00007f022ec82000)
      liblz4.so.1 => /usr/lib64/liblz4.so.1 (0x00007f022ea6d000)
      libgcrypt.so.20 => /usr/lib64/libgcrypt.so.20 (0x00007f022e74f000)
      libgpg-error.so.0 => /usr/lib64/libgpg-error.so.0 (0x00007f022e52f000)
      

      Works fine on Ubuntu20.04 and CentOS8.3

      Attachments

        Issue Links

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

          Activity

            People

              janihe Jani Heikkinen
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes