mipsel: relocation truncated to fit: R_MIPS_TLS_GD against `currentThreadData'



  • Hello!
    I try cross-compile Qt-5.6.1 for Broadcom97231 CPU with gcc-4.5.3 in debug mode.
    Unfortunately compile failed with follow message:

    mipsel-linux-g++ -Wl,-rpath-link,/refsw_release_unified_20121210/rockford/middleware/v3d/lib_97230_debug ....  -shared -Wl,-soname,libQt5Core.so.5 -o libQt5Core.so.5.6.1 ...........
    .......... 
    .obj/qthread_unix.o: In function `get_thread_data':
    /tmp/qt5/src/corelib/thread/qthread_unix.cpp:184: relocation truncated to fit: R_MIPS_TLS_GD against `currentThreadData'
    .obj/qthread_unix.o: In function `set_thread_data':
    /tmp/qt5/src/corelib/thread/qthread_unix.cpp:194: relocation truncated to fit: R_MIPS_TLS_GD against `currentThreadData'
    .obj/qthread_unix.o: In function `clear_thread_data':
    /tmp/qt5/src/corelib/thread/qthread_unix.cpp:203: relocation truncated to fit: R_MIPS_TLS_GD against `currentThreadData'
    collect2: ld returned 1 exit status
    make[2]: *** [../../lib/libQt5Core.so.5.6.1] Error 1
    make[2]: Leaving directory `/tmp/qt5/src/corelib'
    

    How can I solve this problem?
    Thank you and excuse my bad english.


  • Moderators

    @debian I'm not sure whether those are really errors or just warnings. Is there anything before?
    Do you have to use such an old compiler?



  • @jsulm I havn't more old toolchain and I havn't this problem on build release


  • Moderators

    @debian What about my first question?



  • @jsulm sorry, follow full output, I not see another errors

    make[2]: Leaving directory `/tmp/qt5/src/3rdparty/pcre'
    cd corelib/ && ( test -e Makefile || /tmp/qt5/bin/qmake /tmp/qt5/src/corelib/corelib.pro -o Makefile ) && make -f Makefile 
    make[2]: Entering directory `/tmp/qt5/src/corelib'
    rm -f libQt5Core.so.5.6.1 libQt5Core.so libQt5Core.so.5 libQt5Core.so.5.6
    mipsel-linux-g++ -Wl,-rpath-link,/refsw_release_unified_20121210/rockford/middleware/v3d/lib_97230_debug -Wl,-rpath-link,/refsw_release_unified_20121210/AppLibs/opensource/zlib/zlib-1.2.6 -Wl,--no-undefined -Wl,--version-script,QtCore.version -Wl,--enable-new-dtags -shared -Wl,-soname,libQt5Core.so.5 -o libQt5Core.so.5.6.1 .obj/qabstractanimation.o .obj/qvariantanimation.o .obj/qpropertyanimation.o .obj/qanimationgroup.o .obj/qsequentialanimationgroup.o .obj/qparallelanimationgroup.o .obj/qpauseanimation.o .obj/qatomic_unix.o .obj/qglobal.o .obj/qglobalstatic.o .obj/qlibraryinfo.o .obj/qmalloc.o .obj/qnumeric.o .obj/qlogging.o .obj/qhooks.o .obj/qversiontagging.o .obj/qatomic.o .obj/qexception.o .obj/qresultstore.o .obj/qfutureinterface.o .obj/qfuturewatcher.o .obj/qmutex.o .obj/qreadwritelock.o .obj/qrunnable.o .obj/qmutexpool.o .obj/qsemaphore.o .obj/qthread.o .obj/qthreadpool.o .obj/qthreadstorage.o .obj/qthread_unix.o .obj/qwaitcondition_unix.o .obj/qarraydata.o .obj/qbitarray.o .obj/qbytearray.o .obj/qbytearraylist.o .obj/qbytearraymatcher.o .obj/qcollator.o .obj/qcommandlineoption.o .obj/qcommandlineparser.o .obj/qcryptographichash.o .obj/qdatetime.o .obj/qdatetimeparser.o .obj/qeasingcurve.o .obj/qelapsedtimer.o .obj/qfreelist.o .obj/qhash.o .obj/qline.o .obj/qlinkedlist.o .obj/qlist.o .obj/qlocale.o .obj/qlocale_tools.o .obj/qpoint.o .obj/qmap.o .obj/qmargins.o .obj/qmessageauthenticationcode.o .obj/qcontiguouscache.o .obj/qrect.o .obj/qregexp.o .obj/qrefcount.o .obj/qringbuffer.o .obj/qshareddata.o .obj/qsharedpointer.o .obj/qsimd.o .obj/qsize.o .obj/qstring.o .obj/qstringbuilder.o .obj/qstringlist.o .obj/qtextboundaryfinder.o .obj/qtimeline.o .obj/qtimezone.o .obj/qtimezoneprivate.o .obj/qunicodetools.o .obj/qvector.o .obj/qvsnprintf.o .obj/qversionnumber.o .obj/qelapsedtimer_unix.o .obj/qlocale_unix.o .obj/qtimezoneprivate_tz.o .obj/qcollator_posix.o .obj/qregularexpression.o .obj/harfbuzz-buffer.o .obj/harfbuzz-gdef.o .obj/harfbuzz-gsub.o .obj/harfbuzz-gpos.o .obj/harfbuzz-impl.o .obj/harfbuzz-open.o .obj/harfbuzz-stream.o .obj/harfbuzz-shaper-all.o .obj/qharfbuzz.o .obj/qabstractfileengine.o .obj/qbuffer.o .obj/qdatastream.o .obj/qdataurl.o .obj/qtldurl.o .obj/qdebug.o .obj/qdir.o .obj/qdiriterator.o .obj/qfile.o .obj/qfiledevice.o .obj/qfileinfo.o .obj/qipaddress.o .obj/qiodevice.o .obj/qlockfile.o .obj/qnoncontiguousbytedevice.o .obj/qprocess.o .obj/qstorageinfo.o .obj/qtextstream.o .obj/qtemporarydir.o .obj/qtemporaryfile.o .obj/qresource.o .obj/qresource_iterator.o .obj/qsavefile.o .obj/qstandardpaths.o .obj/qurl.o .obj/qurlidna.o .obj/qurlquery.o .obj/qurlrecode.o .obj/qsettings.o .obj/qfsfileengine.o .obj/qfsfileengine_iterator.o .obj/qfilesystemwatcher.o .obj/qfilesystemwatcher_polling.o .obj/qfilesystementry.o .obj/qfilesystemengine.o .obj/qfileselector.o .obj/qloggingcategory.o .obj/qloggingregistry.o .obj/qfsfileengine_unix.o .obj/qfilesystemengine_unix.o .obj/qlockfile_unix.o .obj/qprocess_unix.o .obj/qfilesystemiterator_unix.o .obj/forkfd_qt.o .obj/qstandardpaths_unix.o .obj/qstorageinfo_unix.o .obj/qfilesystemwatcher_inotify.o .obj/qabstractitemmodel.o .obj/qabstractproxymodel.o .obj/qitemselectionmodel.o .obj/qidentityproxymodel.o .obj/qsortfilterproxymodel.o .obj/qstringlistmodel.o .obj/qjson.o .obj/qjsondocument.o .obj/qjsonobject.o .obj/qjsonarray.o .obj/qjsonvalue.o .obj/qjsonwriter.o .obj/qjsonparser.o .obj/qfactoryinterface.o .obj/qpluginloader.o .obj/qfactoryloader.o .obj/quuid.o .obj/qlibrary.o .obj/qelfparser_p.o .obj/qmachparser.o .obj/qlibrary_unix.o .obj/qabstracteventdispatcher.o .obj/qabstractnativeeventfilter.o .obj/qbasictimer.o .obj/qeventloop.o .obj/qcoreapplication.o .obj/qcoreevent.o .obj/qmetaobject.o .obj/qmetatype.o .obj/qmetaobjectbuilder.o .obj/qmimedata.o .obj/qobject.o .obj/qobjectcleanuphandler.o .obj/qsignalmapper.o .obj/qsocketnotifier.o .obj/qtimer.o .obj/qtranslator.o .obj/qvariant.o .obj/qcoreglobaldata.o .obj/qsharedmemory.o .obj/qsystemsemaphore.o .obj/qpointer.o .obj/qmath.o .obj/qsystemerror.o .obj/qcore_unix.o .obj/qcrashhandler.o .obj/qeventdispatcher_unix.o .obj/qtimerinfo_unix.o .obj/qsharedmemory_posix.o .obj/qsharedmemory_systemv.o .obj/qsharedmemory_unix.o .obj/qsystemsemaphore_posix.o .obj/qsystemsemaphore_systemv.o .obj/qsystemsemaphore_unix.o .obj/qisciicodec.o .obj/qlatincodec.o .obj/qsimplecodec.o .obj/qtextcodec.o .obj/qtsciicodec.o .obj/qutfcodec.o .obj/qgb18030codec.o .obj/qjpunicode.o .obj/qeucjpcodec.o .obj/qjiscodec.o .obj/qsjiscodec.o .obj/qeuckrcodec.o .obj/qbig5codec.o .obj/qstatemachine.o .obj/qabstractstate.o .obj/qstate.o .obj/qfinalstate.o .obj/qhistorystate.o .obj/qabstracttransition.o .obj/qsignaltransition.o .obj/qeventtransition.o .obj/qmimedatabase.o .obj/qmimetype.o .obj/qmimemagicrulematcher.o .obj/qmimetypeparser.o .obj/qmimemagicrule.o .obj/qmimeglobpattern.o .obj/qmimeprovider.o .obj/qxmlstream.o .obj/qxmlutils.o .obj/qstring_compat.o .obj/qrc_mimetypes.o .obj/moc_qabstractanimation_p.o .obj/moc_qnamespace.o .obj/moc_qthread.o .obj/moc_qthreadpool.o .obj/moc_qfuturewatcher.o .obj/moc_qeasingcurve.o .obj/moc_qlocale.o .obj/moc_qtimeline.o .obj/moc_qfile.o .obj/moc_qfiledevice.o .obj/moc_qiodevice.o .obj/moc_qnoncontiguousbytedevice_p.o .obj/moc_qtextstream_p.o .obj/moc_qtemporaryfile.o .obj/moc_qsavefile.o .obj/moc_qsettings.o .obj/moc_qfilesystemwatcher_p.o .obj/moc_qfilesystemwatcher_polling_p.o .obj/moc_qfilesystemwatcher_inotify_p.o .obj/moc_qabstractitemmodel.o .obj/moc_qstringlistmodel.o .obj/moc_qpluginloader.o .obj/moc_qlibrary.o .obj/moc_qfactoryloader_p.o .obj/moc_qabstracteventdispatcher.o .obj/moc_qeventloop.o .obj/moc_qcoreapplication.o .obj/moc_qcoreevent.o .obj/moc_qmimedata.o .obj/moc_qsocketnotifier.o .obj/moc_qtimer.o .obj/moc_qtranslator.o .obj/moc_qobjectcleanuphandler.o .obj/moc_qsharedmemory.o .obj/moc_qeventdispatcher_unix_p.o .obj/moc_qabstractstate.o .obj/moc_qstate.o .obj/moc_qfinalstate.o .obj/moc_qhistorystate.o .obj/moc_qhistorystate_p.o .obj/moc_qabstracttransition.o .obj/moc_qsignaltransition.o .obj/moc_qeventtransition.o  -L/refsw_release_unified_20121210/AppLibs/opensource/zlib/zlib-1.2.6 -lpthread -L/staging/usr/lib -lz -L/tmp/qt5/lib -lqtpcre -L/refsw_release_unified_20121210/AppLibs/opensource/zlib/zlib-1.2.6 -L/staging/usr/lib -lm -ldl -lrt 
    .obj/qthread_unix.o: In function `get_thread_data':
    /tmp/qt5/src/corelib/thread/qthread_unix.cpp:184: relocation truncated to fit: R_MIPS_TLS_GD against `currentThreadData'
    .obj/qthread_unix.o: In function `set_thread_data':
    /tmp/qt5/src/corelib/thread/qthread_unix.cpp:194: relocation truncated to fit: R_MIPS_TLS_GD against `currentThreadData'
    .obj/qthread_unix.o: In function `clear_thread_data':
    /tmp/qt5/src/corelib/thread/qthread_unix.cpp:203: relocation truncated to fit: R_MIPS_TLS_GD against `currentThreadData'
    collect2: ld returned 1 exit status
    make[2]: *** [../../lib/libQt5Core.so.5.6.1] Error 1
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.