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

Compilation error with iwmmx-enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 4.7.1
    • GUI: Painting
    • None
    • Debian GNU/Linux Squeeze

    Description

      I'm using gcc 3.4.5(crosstool-0.43 builded) with iwmmx support. Configure stage(and test from $QTDIR/config.tests/unix/iwmmxt) was successful.

      arm-iwmmxt-linux-gnu-g++ -c -pipe -fno-exceptions -O2 -O2 -march=iwmmxt -mtune=iwmmxt -fomit-frame-pointer -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -DQT_HAVE_IWMMXT -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -o .obj/release-shared-emb-arm/qsimd.o tools/qsimd.cpp
      In file included from tools/qsimd.cpp:42:
      tools/qsimd_p.h:123:25: xmmintrin.h: No such file or directory
      

      xmmintrin.h is SSE include file, not iwmmx.

      In addition, my compiler define needed _IWMMX_ token:

      sergey@host15:~/code/qt-everywhere-opensource-src-4.7.1/src/corelib$ arm-iwmmxt-linux-gnu-g++ -E -dM tools/qsimd.cpp | grep -i iwmmx
      In file included from tools/qsimd.cpp:42:
      tools/qsimd_p.h:45:21: qglobal.h: No such file or directory
      tools/qsimd.cpp:43:22: QByteArray: No such file or directory
      #define __IWMMXT__ 1
      

      Attachments

        Activity

          People

            rodal Samuel Rødal
            laborer Sergey Gusarov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: