Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. static qt for mips: Can't find matching LO16 reloc against
Forum Updated to NodeBB v4.3 + New Features

static qt for mips: Can't find matching LO16 reloc against

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 459 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paul Busovikov
    wrote on last edited by
    #1

    I'm trying to compile QT static libs for MIPSEL
    so I have qmake.conf with redefined flags

    CROSS_COMPILE           = mipsel-unknown-linux-gnu-
    QMAKE_CC                = $${CROSS_COMPILE}gcc
    QMAKE_CXX               = $${CROSS_COMPILE}g++
    QMAKE_LINK              = $${QMAKE_CXX}
    QMAKE_LINK_SHLIB        = $${QMAKE_CXX}
    
    QMAKE_AR                = $${CROSS_COMPILE}ar cqs
    QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
    QMAKE_NM                = $${CROSS_COMPILE}nm -P
    QMAKE_STRIP             = $${CROSS_COMPILE}strip
    
    QMAKE_CFLAGS            = -EL -march=mips32r5
    QMAKE_CXXFLAGS          = $${QMAKE_CFLAGS}
    QMAKE_LFLAGS            = -EL
    
    QT_QPA_DEFAULT_PLATFORM = xcb
    

    during compilation of examples I have this

    mipsel-unknown-linux-gnu/bin/ld: /tmp/qt/qt-everywhere-src-5.11.2/qtbase/lib/libQt5Core.a(qurl.o): Can't find matching LO16 reloc against `_ZL8parseIp6R7QStringPK5QCharS3_N4QUrl11ParsingModeE' for R_MIPS_GOT16 at 0x36c in section `.text._ZN11QUrlPrivate7setHostERK7QStringiiN4QUrl11ParsingModeE[_ZN11QUrlPrivate7setHostERK7QStringiiN4QUrl11ParsingModeE]'
    

    Is it a toolchain problem or qt?

    my configuration parameters are:

    ./configure -opensource -confirm-license -static -release -nomake tests -no-opengl -webengine-embedded-build -xplatform devices/linux-mipsel-unknown-g++ -v -sysroot /opt/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/sysroot/
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Looks like a binutils bug

      See:

      • https://lists.gnu.org/archive/html/bug-binutils/2016-09/msg00134.html
      • https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884821

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved