The Compile error for Qt5



    1. ./configure -opensource -arch arm -prefix /usr/local/qt5-arm -release -make libs -xplatform qws/linux-arm-g++ -force-pkg-config -no-xcb -I/usr/local/tslib/include -L/usr/local/tslib/lib -release
    2. make
    3. error:
      .obj/release-shared/qtextcodec.o: In function QTextCodec::~QTextCodec()': qtextcodec.cpp:(.text+0x10f0): undefined reference to__sync_bool_compare_and_swap_4'
      qtextcodec.cpp:(.text+0x1150): undefined reference to __sync_fetch_and_add_4' qtextcodec.cpp:(.text+0x116c): undefined reference to__sync_fetch_and_add_4'

    .obj/release-shared/qmimedatabase.o:qmimedatabase.cpp:(.text+0x2be4): more undefined references to __sync_fetch_and_add_4' follow collect2: ld returned 1 exit status make[1]: *** [../../lib/libQtCore.so.5.0.0] Error 1 make[1]: Leaving directory/root/qt5/qtbase/src/corelib'
    make: *** [sub-corelib-make_default-ordered] Error 2

    Did anyone got this problem solved please?

    thanks



  • The same error came to me when I use arm-linux-g++ 4.2.1 , but it's not shown when I changed to arm-linux-g++ 4.6.1.



  • I think I have the same problem when I use arm-none-linux-gnueabi-c++ 4.4.1 .

    .obj/release-shared/qmimeprovider.o:qmimeprovider.cpp:(.text._ZN20QMimeAllGlobPatternsD1Ev[QMimeAllGlobPatterns::~QMimeAllGlobPatterns()]+0x248): more undefined references to __sync_fetch_and_add_4' follow collect2: ld returned 1 exit status make[2]: *** [../../lib/libQt5Core.so.5.0.1] Error 1 make[2]: Leaving directory/home/liqiang/Qt5.0.1/5.0.1/Src/qtbase/src/corelib'
    make[1]: *** [sub-corelib-make_first] Error 2
    make[1]: Leaving directory `/home/liqiang/Qt5.0.1/5.0.1/Src/qtbase/src'
    make: *** [sub-src-make_first] Error 2


Log in to reply
 

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