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

Qt compile error for ARM (assembler message)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.4
    • None
    • Debian 7.0 (wheezy) x86_64, kernel 3.2.41

    Description

      Qt 4.8.4 fails to compile using gcc cross-compiler for arm, cortex-a8

      The mkspecs modifications are following:

      QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
      QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
      

      The error is following:

      make[3]: Entering directory `/home/chogori/qt-4.8.4-src/qt-everywhere-opensource-src-4.8.4/src/plugins/imageformats/tiff'
      arm-cortex_a8-linux-gnueabi-gcc -c -pipe -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fvisibility=hidden -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/qws/linux-arm-cortex-g++ -I. -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I../../../3rdparty/zlib -I.moc/release-shared-emb-arm -o .obj/release-shared-emb-arm/tif_aux.o ../../../3rdparty/libtiff/libtiff/tif_aux.c
      {standard input}: Assembler messages:
      {standard input}:339: Error: ']' expected -- `vst2.32 {d16-d17},[r2:64]'
      make[3]: *** [.obj/release-shared-emb-arm/tif_aux.o] Error 1
      make[3]: Leaving directory `/home/chogori/qt-4.8.4-src/qt-everywhere-opensource-src-4.8.4/src/plugins/imageformats/tiff'
      make[2]: *** [sub-tiff-make_default] Error 2
      make[2]: Leaving directory `/home/chogori/qt-4.8.4-src/qt-everywhere-opensource-src-4.8.4/src/plugins/imageformats'
      make[1]: *** [sub-imageformats-make_default] Error 2
      make[1]: Leaving directory `/home/chogori/qt-4.8.4-src/qt-everywhere-opensource-src-4.8.4/src/plugins'
      make: *** [sub-plugins-make_default-ordered] Error 2
      

      The configure script is:

      ./configure -embedded arm -prefix /home/chogori/qt-4.8-arm-gui-lib \
       -opensource -shared -largefile -no-cups -no-opengl \
       -platform qws/linux-x86_64-g++ -xplatform qws/linux-arm-cortex-g++ \
       -nomake examples -nomake demos -little-endian -depths 16,24,32 \
       -no-qt3support -no-pch -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp \
       -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc \
       -no-glib -no-accessibility -host-little-endian -no-javascript-jit \
       -no-declarative -no-webkit -no-xmlpatterns -no-script -no-scripttools
      

      GCC configuration:

      Using built-in specs.
      COLLECT_GCC=arm-cortex_a8-linux-gnueabi-gcc
      COLLECT_LTO_WRAPPER=/home/chogori/x-tools/arm-cortex_a8-linux-gnueabi/libexec/gcc/arm-cortex_a8-linux-gnueabi/4.7.2/lto-wrapper
      Target: arm-cortex_a8-linux-gnueabi
      Configured with: /home/chogori/arm-linux-toolchain/.build/src/gcc-4.7.2/configure --build=x86_64-build_unknown-linux-gnu --host=x86_64-build_unknown-linux-gnu --target=arm-cortex_a8-linux-gnueabi --prefix=/home/chogori/x-tools/arm-cortex_a8-linux-gnueabi --with-sysroot=/home/chogori/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sysroot --enable-languages=c,c++ --with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=neon --with-float=softfp --with-pkgversion='crosstool-NG 1.18.0' --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/home/chogori/arm-linux-toolchain/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-mpfr=/home/chogori/arm-linux-toolchain/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-mpc=/home/chogori/arm-linux-toolchain/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-ppl=/home/chogori/arm-linux-toolchain/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-cloog=/home/chogori/arm-linux-toolchain/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-libelf=/home/chogori/arm-linux-toolchain/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm -L/home/chogori/arm-linux-toolchain/.build/arm-cortex_a8-linux-gnueabi/buildtools/lib -lpwl' --enable-threads=posix --enable-target-optspace --enable-linker-build-id --with-system-zlib --enable-multilib --with-local-prefix=/home/chogori/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sysroot --enable-c99 --enable-long-long
      Thread model: posix
      gcc version 4.7.2 (crosstool-NG 1.18.0) 
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            livenets Alexander Livenets
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes