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

Building qt from source fails "error: attribute(target("+crc")) is unknown"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.7.0 RC
    • 5.7.0 Beta
    • Build System
    • None
    • Linux Raspbian based on Debian 8.0
    • 184b2ea4ea9c3e4ad735ff67c5a399e9613da8ab

    Description

      The build process of qt 5.7.0 beta fails with the following error message.

      g++ -c -o qhash.o -pipe -std=c+11 -ffunction-sections -O2 -g -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/qmake -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/qmake/library -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/qmake/generators -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/qmake/generators/unix -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/qmake/generators/win32 -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/qmake/generators/mac -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/qmake/generators/integrity -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtCore -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtCore/5.7.0 -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtCore/5.7.0/QtCore -I../src/corelib/global -DHAVE_QCONFIG_CPP -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/mkspecs/linux-g+ -I/home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/tools/shared -DQT_VERSION_STR=\"5.7.0\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=7 -DQT_VERSION_PATCH=0 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS /home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/src/corelib/tools/qhash.cpp

      /home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/src/corelib/tools/qhash.cpp:147:54: error: attribute(target("+crc")) is unknown
      static uint crc32(const Char *ptr, size_t len, uint h)

      I used the following configure options:
      ./configure --prefix=/opt/develop/qt-5.7.0 -optimized-tools -opensource -confirm-license -v
      + cd qtbase
      + /home/pi/Downloads/qt-everywhere-opensource-src-5.7.0-beta/qtbase/configure -top-level --prefix=/opt/develop/qt-5.7.0 -optimized-tools -opensource -confirm-license -v

      ...

      DEFAULT_INCDIRS="/opt/gcc_6.1.0/include/c++/6.1.0
      /opt/gcc_6.1.0/include/c++/6.1.0/arm-linux-gnueabihf
      /opt/gcc_6.1.0/include/c++/6.1.0/backward
      /opt/gcc_6.1.0/lib/gcc/arm-linux-gnueabihf/6.1.0/include
      /usr/local/include
      /opt/gcc_6.1.0/lib/gcc/arm-linux-gnueabihf/6.1.0/include-fixed
      /usr/include
      "
      DEFAULT_LIBDIRS="/opt/gcc_6.1.0/lib/gcc/arm-linux-gnueabihf/6.1.0
      /opt/gcc_6.1.0/lib
      /lib
      /usr/lib
      "
      Creating qmake...

      gcc -v returns:
      Using built-in specs.
      COLLECT_GCC=g++
      COLLECT_LTO_WRAPPER=/opt/gcc_6.1.0/libexec/gcc/arm-linux-gnueabihf/6.1.0/lto-wrapper
      Target: arm-linux-gnueabihf
      Configured with: ../gcc-6.1.0/configure -v --enable-languages=c,c+,objc,obj-c+ --program-suffix=-6.1.0 --enable-shared --enable-linker-build-id --without-included-gettext --enable-threads=posix --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --enable-gtk-cairo --with-arch-directory=arm --enable-objc-gc --disable-multiarch --disable-sjlj-exceptions --with-float=hard --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf --with-cpu=cortex-a53 --enable-tls --enable-libgomp --disable-libstdcxx-pch --disable-bootstrap --enable-objc-gc --with-ppl --with-cloog=enable --with-fpu=crypto-neon-fp-armv8 --prefix=/opt/gcc_6.1.0
      Thread model: posix
      gcc version 6.1.0 (GCC)

      Feel free to request more informations.

      Attachments

        Activity

          People

            lagocs Laszlo Agocs
            hallo32 hallo32
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: