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

-Wdate-time incorrectly applied to host compiler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.1
    • 5.7.0 Beta
    • Build System
    • None
    • c55bdc271fd4014f0bdb314840d89ceb02d6fc40

    Description

      I'm trying to cross-compile Qt from Linux x86_64 to Linux ARM. Host compiler is gcc 4.7.2, target compiler is gcc 5.3.0. The -Wdate-time flag is supported only by the latter, but it also is used when using the host compiler.

      make[3]: Entering directory `/tmp/e2/build/build/qtbase/src/tools/bootstrap'
      g++ -c -O2 -pipe -ffunction-sections -O2 -fPIC -std=c++11 -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -DQT_NO_MTDEV -DQT_NO_LIBINPUT -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/src/tools/bootstrap -I. -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/src/3rdparty/zlib -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtCore -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtCore/5.7.0 -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtCore/5.7.0/QtCore -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtXml -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtXml/5.7.0 -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/include/QtXml/5.7.0/QtXml -I../../../include -I../../../include/QtCore -I/tmp/e2/build/build/qtbase/include/QtXml -I/tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/mkspecs/linux-g++ -o .obj/qlatincodec.o /tmp/e2/build/qt-everywhere-opensource-src-5.7.0-beta/qtbase/src/corelib/codecs/qlatincodec.cpp
      g++: error: unrecognized command line option '-Wdate-time'
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            rebemlix Rolf Eike Beer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes