Обсуждение: BUG #18083: not compile PostgreSQL module in Qt with GCC 11.2 compiler

Поиск
Список
Период
Сортировка

BUG #18083: not compile PostgreSQL module in Qt with GCC 11.2 compiler

От
PG Bug reporting form
Дата:
The following bug has been logged on the website:

Bug reference:      18083
Logged by:          Navadvipa-Chandra-dasa Zolotyh
Email address:      navadvipa.chandra.das@nizhnyaya-navadvipa.ru
PostgreSQL version: 15.4
Operating system:   Windows 11
Description:

Hello!
Visual Studio 2022 compiler - ok!
GCC 11.2 compiler - not ok!
Why?

For example message:
[333/11973] Building CXX object
qtbase/src/tools/moc/CMakeFiles/moc.dir/token.cpp.obj
[334/11973] Building RC object
qtbase/src/tools/moc/CMakeFiles/moc.dir/moc_longpath.rc.obj
[335/11973] Building RC object
qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/tracepointgen_resource.rc.obj
[336/11973] Building CXX object
qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj
FAILED: qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj 
C:\Prg\mingw64\bin\c++.exe -DMINGW_HAS_SECURE_API=1 -DNOMINMAX
-DPCRE2_STATIC -DQT_BOOTSTRAPPED -DQT_DISABLE_DEPRECATED_UP_TO=0x040800
-DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC
-DQT_NO_AS_CONST -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH
-DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
-DQT_NO_QEXCHANGE -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6
-DQT_VERSION_MINOR=7 -DQT_VERSION_PATCH=0 -DQT_VERSION_STR=\"6.7.0\"
-DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64
-D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64
-IC:/QtSource/qt6/qtbase/src/tools/moc
-IC:/QtSource/Release/Build/qtbase/src/tools/moc
-IC:/QtSource/qt6/qtbase/src/tools/moc/../../3rdparty/tinycbor/src
-IC:/QtSource/qt6/qtbase/src/tools/moc/../shared
-IC:/QtSource/qt6/qtbase/mkspecs/win32-g++
-IC:/QtSource/Release/Build/qtbase/include
-IC:/QtSource/Release/Build/qtbase/src/corelib/Core_autogen/include
-IC:/QtSource/Release/Build/qtbase/include/QtCore
-IC:/QtSource/qt6/qtbase/src/corelib
-IC:/QtSource/Release/Build/qtbase/src/corelib
-IC:/QtSource/Release/Build/qtbase/src/corelib/global
-IC:/QtSource/Release/Build/qtbase/src/corelib/kernel
-IC:/QtSource/qt6/qtbase/src/corelib/../3rdparty/tinycbor/src
-IC:/QtSource/Release/Build/qtbase/include/QtCore/6.7.0
-IC:/QtSource/Release/Build/qtbase/include/QtCore/6.7.0/QtCore
-IC:/QtSource/qt6/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion
-IC:/QtSource/qt6/qtbase/src/corelib/../3rdparty/double-conversion
-IC:/QtSource/Release/Build/qtbase/src/corelib/.rcc
-IC:/Prg/PostgreSQL/15/include
-IC:/QtSource/qt6/qtbase/src/3rdparty/pcre2/src
-IC:/QtSource/qt6/qtbase/src/tools/bootstrap/../../corelib/global
-IC:/QtSource/qt6/qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src
-DNDEBUG -O2 -std=c++17 -fvisibility=hidden -fno-keep-inline-dllexport -Wall
-Wextra -fno-exceptions -Wa,-mbig-obj -Wsuggest-override -ffunction-sections
-fdata-sections -MD -MT qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj
-MF qtbase\src\tools\moc\CMakeFiles\moc.dir\main.cpp.obj.d -o
qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj -c
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp
In file included from C:/QtSource/qt6/qtbase/src/tools/moc/symbols.h:8,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/parser.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.h:7,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:6:
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:40:7: error: expected
identifier before 'void'
   40 |     F(THIS) \
      |       ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:196:33: note: in definition of
macro 'CREATE_ENUM_VALUE'
  196 | #define CREATE_ENUM_VALUE(Name) Name,
      |                                 ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:197:5: note: in expansion of
macro 'FOR_ALL_TOKENS'
  197 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
      |     ^~~~~~~~~~~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:40:7: error: expected '}'
before 'void'
   40 |     F(THIS) \
      |       ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:196:33: note: in definition of
macro 'CREATE_ENUM_VALUE'
  196 | #define CREATE_ENUM_VALUE(Name) Name,
      |                                 ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:197:5: note: in expansion of
macro 'FOR_ALL_TOKENS'
  197 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
      |     ^~~~~~~~~~~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:12: note: to match this
'{'
  194 | enum Token {
      |            ^
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:196:37: error: expected
unqualified-id before ',' token
  196 | #define CREATE_ENUM_VALUE(Name) Name,
      |                                     ^
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:40:5: note: in expansion of
macro 'CREATE_ENUM_VALUE'
   40 |     F(THIS) \
      |     ^
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:197:5: note: in expansion of
macro 'FOR_ALL_TOKENS'
  197 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
      |     ^~~~~~~~~~~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'TEMPLATE'
  194 | enum Token {
      | ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'THROW'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'TRY'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'CATCH'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'TYPEDEF'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'FRIEND'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'CLASS'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'NAMESPACE'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'ENUM'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'STRUCT'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'UNION'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'VIRTUAL'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'PRIVATE'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'PROTECTED'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'PUBLIC'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'EXPORT'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'AUTO'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'REGISTER'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'EXTERN'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'MUTABLE'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'ASM'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'USING'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'INLINE'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'EXPLICIT'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:194:1: error: two or more data
types in declaration of 'STATIC'
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:66:7: error: expected
unqualified-id before 'const'
   66 |     F(CONST) \
      |       ^~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:196:33: note: in definition of
macro 'CREATE_ENUM_VALUE'
  196 | #define CREATE_ENUM_VALUE(Name) Name,
      |                                 ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:197:5: note: in expansion of
macro 'FOR_ALL_TOKENS'
  197 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
      |     ^~~~~~~~~~~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:243:1: error: expected
declaration before '}' token
  243 | };
      | ^
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp: In function 'QByteArray
composePreprocessorOutput(const Symbols&)':
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:76:18: error: 'PP_NOTOKEN' was
not declared in this scope; did you mean 'NOTOKEN'?
   76 |     Token last = PP_NOTOKEN;
      |                  ^~~~~~~~~~
      |                  NOTOKEN
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:82:14: error: 'PP_NEWLINE' was
not declared in this scope
   82 |         case PP_NEWLINE:
      |              ^~~~~~~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:83:14: error: 'PP_WHITESPACE'
was not declared in this scope; did you mean 'C2_WHITESPACE'?
   83 |         case PP_WHITESPACE:
      |              ^~~~~~~~~~~~~
      |              C2_WHITESPACE
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:90:14: error:
'PP_STRING_LITERAL' was not declared in this scope; did you mean
'STRING_LITERAL'?
   90 |         case PP_STRING_LITERAL:
      |              ^~~~~~~~~~~~~~~~~
      |              STRING_LITERAL
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:101:14: error:
'MOC_INCLUDE_BEGIN' was not declared in this scope
  101 |         case MOC_INCLUDE_BEGIN:
      |              ^~~~~~~~~~~~~~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:104:14: error:
'MOC_INCLUDE_END' was not declared in this scope; did you mean
'QDC_INCLUDE_HMD'?
  104 |         case MOC_INCLUDE_END:
      |              ^~~~~~~~~~~~~~~
      |              QDC_INCLUDE_HMD
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp: In function 'int runMoc(int,
char**)':
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:174:55: error: 'PP_IDENTIFIER'
was not declared in this scope; did you mean 'IDENTIFIER'?
  174 |     dummyVariadicFunctionMacro.arguments += Symbol(0, PP_IDENTIFIER,
"__VA_ARGS__");
      |
^~~~~~~~~~~~~
      |                                                       IDENTIFIER
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:507:42: error:
'MOC_INCLUDE_BEGIN' was not declared in this scope
  507 |                 moc.symbols += Symbol(0, MOC_INCLUDE_BEGIN,
rawName);
      |                                          ^~~~~~~~~~~~~~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/main.cpp:509:42: error:
'MOC_INCLUDE_END' was not declared in this scope; did you mean
'QDC_INCLUDE_HMD'?
  509 |                 moc.symbols += Symbol(0, MOC_INCLUDE_END,
rawName);
      |                                          ^~~~~~~~~~~~~~~
      |                                          QDC_INCLUDE_HMD
[337/11973] Building CXX object
qtbase/src/3rdparty/harfbuzz-ng/CMakeFiles/BundledHarfbuzz.dir/src/hb-aat-layout.cc.obj
[338/11973] Building CXX object
qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/tracepointgen.cpp.obj
[339/11973] Building CXX object
qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/parser.cpp.obj
[340/11973] Building CXX object
qtbase/src/tools/moc/CMakeFiles/moc.dir/preprocessor.cpp.obj
FAILED: qtbase/src/tools/moc/CMakeFiles/moc.dir/preprocessor.cpp.obj 
C:\Prg\mingw64\bin\c++.exe -DMINGW_HAS_SECURE_API=1 -DNOMINMAX
-DPCRE2_STATIC -DQT_BOOTSTRAPPED -DQT_DISABLE_DEPRECATED_UP_TO=0x040800
-DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC
-DQT_NO_AS_CONST -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH
-DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
-DQT_NO_QEXCHANGE -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6
-DQT_VERSION_MINOR=7 -DQT_VERSION_PATCH=0 -DQT_VERSION_STR=\"6.7.0\"
-DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64
-D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64
-IC:/QtSource/qt6/qtbase/src/tools/moc
-IC:/QtSource/Release/Build/qtbase/src/tools/moc
-IC:/QtSource/qt6/qtbase/src/tools/moc/../../3rdparty/tinycbor/src
-IC:/QtSource/qt6/qtbase/src/tools/moc/../shared
-IC:/QtSource/qt6/qtbase/mkspecs/win32-g++
-IC:/QtSource/Release/Build/qtbase/include
-IC:/QtSource/Release/Build/qtbase/src/corelib/Core_autogen/include
-IC:/QtSource/Release/Build/qtbase/include/QtCore
-IC:/QtSource/qt6/qtbase/src/corelib
-IC:/QtSource/Release/Build/qtbase/src/corelib
-IC:/QtSource/Release/Build/qtbase/src/corelib/global
-IC:/QtSource/Release/Build/qtbase/src/corelib/kernel
-IC:/QtSource/qt6/qtbase/src/corelib/../3rdparty/tinycbor/src
-IC:/QtSource/Release/Build/qtbase/include/QtCore/6.7.0
-IC:/QtSource/Release/Build/qtbase/include/QtCore/6.7.0/QtCore
-IC:/QtSource/qt6/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion
-IC:/QtSource/qt6/qtbase/src/corelib/../3rdparty/double-conversion
-IC:/QtSource/Release/Build/qtbase/src/corelib/.rcc
-IC:/Prg/PostgreSQL/15/include
-IC:/QtSource/qt6/qtbase/src/3rdparty/pcre2/src
-IC:/QtSource/qt6/qtbase/src/tools/bootstrap/../../corelib/global
-IC:/QtSource/qt6/qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src
-DNDEBUG -O2 -std=c++17 -fvisibility=hidden -fno-keep-inline-dllexport -Wall
-Wextra -fno-exceptions -Wa,-mbig-obj -Wsuggest-override -ffunction-sections
-fdata-sections -MD -MT
qtbase/src/tools/moc/CMakeFiles/moc.dir/preprocessor.cpp.obj -MF
qtbase\src\tools\moc\CMakeFiles\moc.dir\preprocessor.cpp.obj.d -o
qtbase/src/tools/moc/CMakeFiles/moc.dir/preprocessor.cpp.obj -c
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.cpp
In file included from
C:/Prg/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                 from
C:/Prg/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                 from C:/Prg/PostgreSQL/15/include/pthread.h:198,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qarraydataops.h:9,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qarraydataops.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/text/qbytearray.h:11,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qbytearray.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/text/qstringview.h:8,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qstringview.h:1,
                 from C:/QtSource/qt6/qtbase/src/corelib/text/qchar.h:656,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qchar.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/serialization/qtextstream.h:8,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qtextstream.h:1,
                 from C:/QtSource/qt6/qtbase/src/corelib/io/qdebug.h:13,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qdebug.h:1,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/symbols.h:9,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/parser.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.cpp:5:
C:/Prg/mingw64/x86_64-w64-mingw32/include/minwindef.h:131:15: error:
'typedef int BOOL' redeclared as different kind of entity
  131 |   typedef int BOOL;
      |               ^~~~
In file included from C:/QtSource/qt6/qtbase/src/tools/moc/symbols.h:8,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/parser.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.cpp:5:
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:107:7: note: previous
declaration 'Token BOOL'
  107 |     F(BOOL) \
      |       ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:196:33: note: in definition of
macro 'CREATE_ENUM_VALUE'
  196 | #define CREATE_ENUM_VALUE(Name) Name,
      |                                 ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:197:5: note: in expansion of
macro 'FOR_ALL_TOKENS'
  197 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
      |     ^~~~~~~~~~~~~~
In file included from
C:/Prg/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                 from
C:/Prg/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                 from C:/Prg/PostgreSQL/15/include/pthread.h:198,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qarraydataops.h:9,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qarraydataops.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/text/qbytearray.h:11,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qbytearray.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/text/qstringview.h:8,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qstringview.h:1,
                 from C:/QtSource/qt6/qtbase/src/corelib/text/qchar.h:656,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qchar.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/serialization/qtextstream.h:8,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qtextstream.h:1,
                 from C:/QtSource/qt6/qtbase/src/corelib/io/qdebug.h:13,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qdebug.h:1,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/symbols.h:9,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/parser.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.cpp:5:
C:/Prg/mingw64/x86_64-w64-mingw32/include/minwindef.h:142:17: error:
'typedef float FLOAT' redeclared as different kind of entity
  142 |   typedef float FLOAT;
      |                 ^~~~~
In file included from C:/QtSource/qt6/qtbase/src/tools/moc/symbols.h:8,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/parser.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.cpp:5:
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:113:7: note: previous
declaration 'Token FLOAT'
  113 |     F(FLOAT) \
      |       ^~~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:196:33: note: in definition of
macro 'CREATE_ENUM_VALUE'
  196 | #define CREATE_ENUM_VALUE(Name) Name,
      |                                 ^~~~
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:197:5: note: in expansion of
macro 'FOR_ALL_TOKENS'
  197 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
      |     ^~~~~~~~~~~~~~
In file included from
C:/Prg/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                 from
C:/Prg/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                 from C:/Prg/PostgreSQL/15/include/pthread.h:198,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                 from
C:/Prg/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qarraydataops.h:9,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qarraydataops.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/text/qbytearray.h:11,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qbytearray.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/text/qstringview.h:8,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qstringview.h:1,
                 from C:/QtSource/qt6/qtbase/src/corelib/text/qchar.h:656,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qchar.h:1,
                 from
C:/QtSource/qt6/qtbase/src/corelib/serialization/qtextstream.h:8,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qtextstream.h:1,
                 from C:/QtSource/qt6/qtbase/src/corelib/io/qdebug.h:13,
                 from
C:/QtSource/Release/Build/qtbase/include/QtCore/qdebug.h:1,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/symbols.h:9,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/parser.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.cpp:5:
C:/Prg/mingw64/x86_64-w64-mingw32/include/minwindef.h:143:11: error: 'FLOAT'
does not name a type
  143 |   typedef FLOAT *PFLOAT;
      |           ^~~~~
C:/Prg/mingw64/x86_64-w64-mingw32/include/minwindef.h:158:15: error:
'typedef int INT' redeclared as different kind of entity
  158 |   typedef int INT;
      |               ^~~
In file included from C:/QtSource/qt6/qtbase/src/tools/moc/symbols.h:8,
                 from C:/QtSource/qt6/qtbase/src/tools/moc/parser.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.h:7,
                 from
C:/QtSource/qt6/qtbase/src/tools/moc/preprocessor.cpp:5:
C:/QtSource/qt6/qtbase/src/tools/moc/token.h:109:7: note: previous
declaration 'Token INT'
  109 |     F(INT) \


If you remove the PostgreSQL module from the compilation, then there are no
errors. In the given fragment, you can find the following line "from
C:/Prg/PostgreSQL/15/include/pthread.h:198 ,". Please fix it so that both
compilers - GCC and Microsoft Visual Studio 2022 work, and not just one of
the two!
Thanks!
With best regards, Navadvipa Chandra dasa.


Re: BUG #18083: not compile PostgreSQL module in Qt with GCC 11.2 compiler

От
Laurenz Albe
Дата:
Are you talking about building a Qt module for PostgreSQL on Windows?

Sorry, but that's not our software. You'll have to ask elsewhere.

Yours,
Laurenz Albe



Re: BUG #18083: not compile PostgreSQL module in Qt with GCC 11.2 compiler

От
Thomas Munro
Дата:
On Tue, Sep 5, 2023 at 1:51 PM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> Are you talking about building a Qt module for PostgreSQL on Windows?
>
> Sorry, but that's not our software. You'll have to ask elsewhere.

What is C:/Prg/PostgreSQL/15/include/pthread.h, though?

Searching the web finds other complaints like this, and in one case it
involved the Chocolatey postgresql package, and peering at
https://github.com/majkinetor/au-packages/blob/master/postgresql/tools/chocolateyInstall.ps1
reveals that Choco fetches the EnterpriseDB build.  I know that a long
time ago PostgreSQL used to use the pthread-win32 package...  is it
possible that the EntrepriseDB installer is still installing that
project's pthread.h?  That theory might be a long shot, but
*something* seems fishy here.



Re: BUG #18083: not compile PostgreSQL module in Qt with GCC 11.2 compiler

От
Thomas Munro
Дата:
On Tue, Sep 5, 2023 at 2:25 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> What is C:/Prg/PostgreSQL/15/include/pthread.h, though?
>
> Searching the web finds other complaints like this, and in one case it
> involved the Chocolatey postgresql package, and peering at
> https://github.com/majkinetor/au-packages/blob/master/postgresql/tools/chocolateyInstall.ps1
> reveals that Choco fetches the EnterpriseDB build.  I know that a long
> time ago PostgreSQL used to use the pthread-win32 package...  is it
> possible that the EntrepriseDB installer is still installing that
> project's pthread.h?  That theory might be a long shot, but
> *something* seems fishy here.

Navadvipa confirmed privately that it was the EDB installer (via
postgresql.org), and it's clearly the pthread.h from
https://sourceware.org/pthreads-win32/.  CCing Sandeep who might know
who to ask why that's being installed and check if it's a mistake.
Nothing in PostgreSQL itself should need <pthread.h> on Windows AFAIK
(I think that changed some time around 2007, commit 96b17190?).



Re: BUG #18083: not compile PostgreSQL module in Qt with GCC 11.2 compiler

От
Navadvipa Chandra das
Дата:
Thomas Munro писал(а) 2023-09-05 11:57:
> On Tue, Sep 5, 2023 at 2:25 PM Thomas Munro <thomas.munro@gmail.com> 
> wrote:

Hello, All!
I corresponded with Thomas Munro.
I think that no action is required on my part. The error correction 
process has started! We will wait for the results!
Thank You Thomas! Thank You All!


With best regards, Navadvipa Chandra dasa.



Re: BUG #18083: not compile PostgreSQL module in Qt with GCC 11.2 compiler

От
Daniel Gustafsson
Дата:
> On 5 Sep 2023, at 10:57, Thomas Munro <thomas.munro@gmail.com> wrote:
>
> On Tue, Sep 5, 2023 at 2:25 PM Thomas Munro <thomas.munro@gmail.com> wrote:
>> What is C:/Prg/PostgreSQL/15/include/pthread.h, though?
>>
>> Searching the web finds other complaints like this, and in one case it
>> involved the Chocolatey postgresql package, and peering at
>> https://github.com/majkinetor/au-packages/blob/master/postgresql/tools/chocolateyInstall.ps1
>> reveals that Choco fetches the EnterpriseDB build.  I know that a long
>> time ago PostgreSQL used to use the pthread-win32 package...  is it
>> possible that the EntrepriseDB installer is still installing that
>> project's pthread.h?  That theory might be a long shot, but
>> *something* seems fishy here.
>
> Navadvipa confirmed privately that it was the EDB installer (via
> postgresql.org), and it's clearly the pthread.h from
> https://sourceware.org/pthreads-win32/.  CCing Sandeep who might know
> who to ask why that's being installed and check if it's a mistake.
> Nothing in PostgreSQL itself should need <pthread.h> on Windows AFAIK
> (I think that changed some time around 2007, commit 96b17190?).

The 15.4 ZIP archive from EDB does contain pthread.h in ./include, but the
16rc1 ZIP archive does not.  The 16rc1 does not contain all the additional
packages though so it might come from there?

--
Daniel Gustafsson