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. Compiling Qt-4.8.0 in RHEL 4 gives an error
QtWS25 Last Chance

Compiling Qt-4.8.0 in RHEL 4 gives an error

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 2 Posters 7.7k Views
  • 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.
  • R Offline
    R Offline
    rohalm
    wrote on last edited by
    #1

    Hello

    I am trying to install Qt-4.8.0 on my Red Hat Enterprise Linux 4 system. I am configuring it with:

    ./configure -nomake demos -nomake examples

    The configure runs fine.

    Then I compile it:

    gmake -j 3

    I then get an error:

    _.obj/release-shared/qthread_unix.o(.text+0x2c): In function set_thread_data(QThreadData*)': : undefined reference to __tls_get_addr'
    .obj/release-shared/qthread_unix.o(.text+0x1670): In function QThreadData::current()': : undefined reference to __tls_get_addr'
    .obj/release-shared/qthread_unix.o(.text+0x177a): In function QThreadData::current()': : undefined reference to _tls_get_addr'
    collect2: ld returned 1 exit status

    Seems that there is trouble with some tls support, so I tried configuring without tls:

    ./configure -no-stl -nomake demos -nomake examples

    I got the same error when running gmake.
    I checked the output while configuring and tls support was shut off:

    STL support ............ no

    I know that I am using an old OS version, but I cannot simply switch OS.

    I have succesfully compiled both Qt-4.5.2 and Qt-4.6.3 on this system before.

    Please help

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vivek2k5
      wrote on last edited by
      #2

      I think you are mixing tls with STL.
      It looks like older kernel has this issue.

      Remove following line to skip this error
      #define HAVE_TLS

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rohalm
        wrote on last edited by
        #3

        Hi vivek2k5

        Thank you for your reply.

        Qt compilation problem with corelib solved after I removed the lines in src/corelib/thread/qthread_unix.cpp.
        Now I just need to work on the problem of my brain meltdown, failing to spot the difference between stl and tls...

        BUT - now it fails with the following message:

        painting/qdrawhelper_sse2.cpp: In static member function static long int __vector__ QSimdSse2::v_greaterOrEqual(float __vector__, float __vector__)': painting/qdrawhelper_sse2.cpp:531: error: _mm_castps_si128' was not declared in this scope
        painting/qdrawhelper_sse2.cpp:531: warning: unused variable '_mm_castps_si128'
        gmake[1]: *** [.obj/release-shared/qdrawhelper_sse2.o] Error 1
        gmake[1]: *** Waiting for unfinished jobs....
        gmake[1]: Leaving directory $HOME/software/qt-everywhere-opensource-src-4.8.0/src/gui'
        gmake: *** [sub-gui-make_default-ordered] Error 2

        Any idea?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vivek2k5
          wrote on last edited by
          #4

          You will have to reconfigure with following option

          ./configure -no-sse2

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rohalm
            wrote on last edited by
            #5

            Thanks - It worked.

            I will google it before posting next time, as I also found the workaround immediately after posting the question.

            Sorry for the inconvenience...

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rohalm
              wrote on last edited by
              #6

              hmm - now it failed during compiling of Javascriptcore with only a warning message. I googled this, and was not really able to find an answer:

              wtf/Assertions.cpp:31: warning: ignoring #pragma GCC diagnostic
              gmake[2]: *** [.obj/release-static/Assertions.o] Error 1
              gmake[2]: Leaving directory /home/roha/software/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore' gmake[1]: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Error 2 gmake[1]: Leaving directory /home/roha/software/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source'
              gmake: *** [sub-webkit-make_default-ordered] Error 2

              Any ideas?

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vivek2k5
                wrote on last edited by
                #7

                I also got same issue. Not sure exactly whats wrong here (may be because of older version of g++, 3.4.6 in may case).
                "This":http://qt-project.org/forums/viewthread/13798 thread talks about issues in static build of webkit.

                I Just removed webkit from list of modules to be built
                ./configure -no-sse2 -no-webkit

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  rohalm
                  wrote on last edited by
                  #8

                  I also have gcc-3.4.6...

                  Thanks - I will not use the webkit anyway, and now it compiled until the end.

                  Thank you very much, you have been a BIG help.

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vivek2k5
                    wrote on last edited by
                    #9

                    Did you manage to run any Qt program with these newly compiled libs ? I am getting a seg fault in hello Qt program itself. Have not looked deep into this, but looks like compilation is messed somewhere..

                    By any chance, have you compiled Qt-4.6.4 and run it successfully on same system ??

                    Thanks,

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      rohalm
                      wrote on last edited by
                      #10

                      I compiled Qt-4.6.3 one and a half year back, and I also compiled Qt-4.7.4 a few days ago, when I was struggling with 4.8.0, but not Qt-4.6.4.

                      1 Reply Last reply
                      0

                      • Login

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