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

qt does not compile to static

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.11.3, 5.12.0 Beta 3
    • 5.11.0
    • Core: I/O
    • None
    • Linux/X11
    • b7887f9b4faad2227691a2af589e9d7680d6ae08

    Description

      static compilation gived error

      Creating qmake...
      .In file included from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:94:
      /usr/include/linux/stat.h:56:8: ошибка: повторное определение «struct statx_timestamp»
      struct statx_timestamp {
      ^~~~~~~~~~~~~~~
      In file included from /usr/include/sys/stat.h:446,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/mkspecs/linux-g+-64/../linux-g+/qplatformdefs.h:75,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/mkspecs/linux-g++-64/qplatformdefs.h:40,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
      /usr/include/bits/statx.h:25:8: замечание: предыдущее определение «struct statx_timestamp»
      struct statx_timestamp
      ^~~~~~~~~~~~~~~
      In file included from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:94:
      /usr/include/linux/stat.h:99:8: ошибка: повторное определение «struct statx»
      struct statx {
      ^~~~~
      In file included from /usr/include/sys/stat.h:446,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/mkspecs/linux-g+-64/../linux-g+/qplatformdefs.h:75,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/mkspecs/linux-g++-64/qplatformdefs.h:40,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
      /usr/include/bits/statx.h:36:8: замечание: предыдущее определение «struct statx»
      struct statx
      ^~~~~
      /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:110:12: ошибка: «int renameat2(int, const char*, int, const char*, unsigned int)» продекларирован как «extern», а позже как «static» [-fpermissive]
      static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
      ^~~~~~~~~
      In file included from /usr/include/c++/8/cstdio:42,
      from /usr/include/c++/8/ext/string_conversions.h:43,
      from /usr/include/c++/8/bits/basic_string.h:6400,
      from /usr/include/c++/8/string:52,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/include/QtCore/../../src/corelib/tools/qbytearray.h:52,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/include/QtCore/qbytearray.h:1,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:49,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/include/QtCore/qstring.h:1,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/include/QtCore/../../src/corelib/io/qiodevice.h:50,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/include/QtCore/qiodevice.h:1,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/include/QtCore/../../src/corelib/io/qfiledevice.h:43,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/include/QtCore/qfiledevice.h:1,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfile.h:44,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_p.h:54,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:43:
      /usr/include/stdio.h:164:12: замечание: предыдущая декларация «int renameat2(int, const char*, int, const char*, unsigned int)»
      extern int renameat2 (int _oldfd, const char *_old, int __newfd,
      ^~~~~~~~~
      /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:115:12: ошибка: «int statx(int, const char*, int, unsigned int, statx*)» продекларирован как «extern», а позже как «static» [-fpermissive]
      static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
      ^~~~~
      In file included from /usr/include/sys/stat.h:446,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/mkspecs/linux-g+-64/../linux-g+/qplatformdefs.h:75,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/mkspecs/linux-g++-64/qplatformdefs.h:40,
      from /opt/QT59_static/qt-everywhere-src-5.11.0/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
      /usr/include/bits/statx.h:87:5: замечание: предыдущая декларация «int statx(int, const char*, int, unsigned int, statx*)»
      int statx (int _dirfd, const char *_restrict __path, int __flags,
      ^~~~~
      gmake: *** [Makefile:423: qfilesystemengine_unix.o] Ошибка 1

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            igor_kvyatkovsky Igor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes