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

Qt 4.8 does not build with GCC 4.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.0
    • Core: Threads
    • None

    Description

      $ mips-linux-g++ -dumpversion
      4.1.2
      $ ./configure -no-webkit -no-svg -nomake tests -nomake demos -nomake examples -nomake tools -opensource -confirm-license -embedded mips

      When linking QtCore:

      .obj/release-shared-emb-mips/qthread_unix.o: In function `set_thread_data(QThreadData*)':
      qthread_unix.cpp.text+0xec): undefined reference to `__tls_get_addr'
      .obj/release-shared-emb-mips/qthread_unix.o: In function `QThreadData::current()':
      qthread_unix.cpp.text+0x708): undefined reference to `__tls_get_addr'
      collect2: ld returned 1 exit status

      The problem is 'fixed' by a patch like:

      diff --git a/src/corelib/thread/qthread_unix.cpp b/src/corelib/thread/qthread_unix.cpp
      index 765969e..ae75700 100644
      --- a/src/corelib/thread/qthread_unix.cpp
      +++ b/src/corelib/thread/qthread_unix.cpp
      @@ -107,7 +107,7 @@ QT_BEGIN_NAMESPACE
       enum { ThreadPriorityResetFlag = 0x80000000 };
       
       #if defined(Q_OS_LINUX) && defined(__GLIBC__) && (defined(Q_CC_GNU) || defined(Q_CC_INTEL))
      -#define HAVE_TLS
      +// #define HAVE_TLS
       #endif
       #if defined(Q_CC_XLC) || defined (Q_CC_SUN)
       #define HAVE_TLS
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              stephen.kelly Stephen Kelly (Unused account) (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes