variar / klogg

Really fast log explorer based on glogg project
https://klogg.filimonov.dev
GNU General Public License v3.0
2.33k stars 203 forks source link

Unfortunately I cannot build the recent klogg (21.09) with MSVC 2019 / Qt 5.15.2 #401

Open variar opened 3 years ago

variar commented 3 years ago

Unfortunately I cannot build the recent klogg (21.09) with MSVC 2019 / Qt 5.15.2 because of following issues:

Build started...
1>------ Build started: Project: generate_version, Configuration: Release x64 ------
1>fatal: not a git repository (or any of the parent directories): .git
1>Git branch:
1>fatal: not a git repository (or any of the parent directories): .git
1>Git commit:
1>fatal: not a git repository (or any of the parent directories): .git
1>Git describe:
2>------ Build started: Project: klogg_version, Configuration: Release x64 ------
2>cl : command line warning D9025: overriding '/external:W4' with '/external:W0'
2>klogg_version.cpp
2>klogg_version.vcxproj -> C:\Users\dhdam\Downloads\klogg-master-BUILD\output\Release\klogg_version.lib
2>Done building project "klogg_version.vcxproj".
3>------ Build started: Project: klogg_settings, Configuration: Release x64 ------
3>cl : command line warning D9025: overriding '/external:W4' with '/external:W0'
3>configuration.cpp
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : see usage of 'QLatin1String::QLatin1String'
3>styles.cpp
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : see usage of 'QLatin1String::QLatin1String'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): error C2131: expression did not evaluate to a constant
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
3>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : see usage of 'QLatin1String::QLatin1String'
3>Done building project "klogg_settings.vcxproj" -- FAILED.
4>------ Build started: Project: klogg_versioncheck, Configuration: Release x64 ------
5>------ Build started: Project: klogg_logdata, Configuration: Release x64 ------
4>Automatic MOC for target klogg_versioncheck
5>Automatic MOC for target klogg_logdata
4>cl : command line warning D9025: overriding '/external:W4' with '/external:W0'
4>mocs_compilation.cpp
5>cl : command line warning D9025: overriding '/external:W4' with '/external:W0'
5>compressedlinestorage.cpp
5>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): error C2220: the following warning is treated as an error
5>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): warning C4242: 'initializing': conversion from 'int' to 'quint16', possible loss of data
4>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): error C2220: the following warning is treated as an error
4>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): warning C4242: 'initializing': conversion from 'int' to 'quint16', possible loss of data
4>versionchecker.cpp
5>encodingdetector.cpp
4>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): error C2220: the following warning is treated as an error
4>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): warning C4242: 'initializing': conversion from 'int' to 'quint16', possible loss of data
5>C:\Users\dhdam\Downloads\klogg-master\src\logdata\src\encodingdetector.cpp(69,36): error C2127: 'LineFeed': illegal initialization of 'constexpr' entity with a non-constant expression
5>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qmetatype.h(2089,1): message : failure was because type 'QChar' is not a literal type
5>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qmetatype.h(2089,1): message : type 'QChar' is not a literal type because it is not an aggregate type, a closure type, or does not have a constexpr constructor that is not a copy or move constructor
5>Done building project "klogg_logdata.vcxproj" -- FAILED.
4>C:\Users\dhdam\Downloads\klogg-master\src\versioncheck\src\versionchecker.cpp(48,41): error C2127: '`anonymous-namespace'::OsSuffix': illegal initialization of 'constexpr' entity with a non-constant expression
4>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qregularexpression.h(55,7): message : failure was because type 'QLatin1String' is not a literal type
4>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qregularexpression.h(55,7): message : type 'QLatin1String' is not a literal type because it is not an aggregate type, a closure type, or does not have a constexpr constructor that is not a copy or move constructor
4>C:\Users\dhdam\Downloads\klogg-master\src\versioncheck\src\versionchecker.cpp(56,5): error C2127: '`anonymous-namespace'::VERSION_URL': illegal initialization of 'constexpr' entity with a non-constant expression
4>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qregularexpression.h(55,7): message : failure was because type 'QLatin1String' is not a literal type
4>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qregularexpression.h(55,7): message : type 'QLatin1String' is not a literal type because it is not an aggregate type, a closure type, or does not have a constexpr constructor that is not a copy or move constructor
4>Generating Code...
4>Done building project "klogg_versioncheck.vcxproj" -- FAILED.
6>------ Build started: Project: klogg_ui, Configuration: Release x64 ------
6>Automatic MOC and UIC for target klogg_ui
6>cl : command line warning D9025: overriding '/external:W4' with '/external:W0'
6>abstractlogview.cpp
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): error C2220: the following warning is treated as an error
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): warning C4242: 'initializing': conversion from 'int' to 'quint16', possible loss of data
6>crawlerwidget.cpp
6>C:\Users\dhdam\Downloads\klogg-master\src\regex\include\regularexpressionpattern.h(89,43): error C2027: use of undefined type 'std::atomic<uint>'
6>C:\Users\dhdam\Downloads\klogg-master\src\regex\include\regularexpressionpattern.h(89): message : see declaration of 'std::atomic<uint>'
6>C:\Users\dhdam\Downloads\klogg-master\src\regex\include\regularexpressionpattern.h(90,62): error C2676: binary '++': 'std::atomic<uint>' does not define this operator or a conversion to a type acceptable to the predefined operator
6>highlightersdialog.cpp
6>C:\Users\dhdam\Downloads\klogg-master\src\ui\src\highlightersdialog.cpp(56,45): error C2127: 'DEFAULT_NAME': illegal initialization of 'constexpr' entity with a non-constant expression
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore\qregularexpression.h(55,7): message : failure was because type 'QLatin1String' is not a literal type
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore\qregularexpression.h(55,7): message : type 'QLatin1String' is not a literal type because it is not an aggregate type, a closure type, or does not have a constexpr constructor that is not a copy or move constructor
6>highlightersetedit.cpp
6>C:\Users\dhdam\Downloads\klogg-master\src\ui\src\highlightersetedit.cpp(52,48): error C2127: '`anonymous-namespace'::DEFAULT_PATTERN': illegal initialization of 'constexpr' entity with a non-constant expression
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore\qregularexpression.h(55,7): message : failure was because type 'QLatin1String' is not a literal type
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore\qregularexpression.h(55,7): message : type 'QLatin1String' is not a literal type because it is not an aggregate type, a closure type, or does not have a constexpr constructor that is not a copy or move constructor
6>mainwindow.cpp
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : see usage of 'QLatin1String::QLatin1String'
6>optionsdialog.cpp
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): error C2220: the following warning is treated as an error
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): warning C4242: 'initializing': conversion from 'int' to 'quint16', possible loss of data
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : see usage of 'QLatin1String::QLatin1String'
6>quickfind.cpp
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): error C2220: the following warning is treated as an error
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): warning C4242: 'initializing': conversion from 'int' to 'quint16', possible loss of data
6>tabbedcrawlerwidget.cpp
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(28,64): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(29,71): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(30,60): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(31,61): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(32,62): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(33,64): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(35,59): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): error C2131: expression did not evaluate to a constant
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : failure was caused by call of undefined function or one not declared 'constexpr'
6>C:\Users\dhdam\Downloads\klogg-master\src\settings\include\styles.h(36,59): message : see usage of 'QLatin1String::QLatin1String'
6>C:\Users\dhdam\Downloads\klogg-master\src\ui\src\tabbedcrawlerwidget.cpp(42,33): error C2127: '`anonymous-namespace'::PathKey': illegal initialization of 'constexpr' entity with a non-constant expression
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qregularexpression.h(55,7): message : failure was because type 'QLatin1String' is not a literal type
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qregularexpression.h(55,7): message : type 'QLatin1String' is not a literal type because it is not an aggregate type, a closure type, or does not have a constexpr constructor that is not a copy or move constructor
6>C:\Users\dhdam\Downloads\klogg-master\src\ui\src\tabbedcrawlerwidget.cpp(43,35): error C2127: '`anonymous-namespace'::StatusKey': illegal initialization of 'constexpr' entity with a non-constant expression
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qregularexpression.h(55,7): message : failure was because type 'QLatin1String' is not a literal type
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qregularexpression.h(55,7): message : type 'QLatin1String' is not a literal type because it is not an aggregate type, a closure type, or does not have a constexpr constructor that is not a copy or move constructor
6>decompressor.cpp
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): error C2220: the following warning is treated as an error
6>C:\Qt\5.15.2\msvc2019_64\include\QtCore/qfloat16.h(75,39): warning C4242: 'initializing': conversion from 'int' to 'quint16', possible loss of data
6>Done building project "klogg_ui.vcxproj" -- FAILED.
7>------ Build started: Project: klogg, Configuration: Release x64 ------
7>Automatic MOC for target klogg
7>Automatic RCC for klogg.qrc
7>Automatic RCC for ../../generated/documentation.qrc
7>
7>AutoRcc subprocess error
7>------------------------
7>The rcc process failed to compile
7>  "SRC:-BUILD/generated/documentation.qrc"
7>into
7>  "SRC:-BUILD/src/app/klogg_autogen/include_Debug/G2ZEMYGGGB/qrc_documentation_CMAKE_.cpp"
7>
7>Command
7>-------
7>C:/Qt/5.15.2/msvc2019_64/bin/rcc.exe -name documentation -o C:/Users/dhdam/Downloads/klogg-master-BUILD/src/app/klogg_autogen/include_Debug/G2ZEMYGGGB/qrc_documentation_CMAKE_.cpp C:/Users/dhdam/Downloads/klogg-master-BUILD/generated/documentation.qrc
7>
7>Output
7>------
7>RCC: Error in 'C:/Users/dhdam/Downloads/klogg-master-BUILD/generated/documentation.qrc': Cannot find file 'documentation.html'
7>
7>
7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'C:\Users\dhdam\Downloads\klogg-master-BUILD\CMakeFiles\05e1a13ba4338e7c05e5914c719fa01d\qrc_klogg.cpp.rule;C:\Users\dhdam\Downloads\klogg-master-BUILD\CMakeFiles\261c9a203530ce3ddd1ec62ed6774890\qrc_documentation.cpp.rule;C:\Users\dhdam\Downloads\klogg-master\src\app\CMakeLists.txt' exited with code 1.
7>Done building project "klogg.vcxproj" -- FAILED.
========== Build: 2 succeeded, 5 failed, 22 up-to-date, 0 skipped ==========

Originally posted by @ArsMasiuk in https://github.com/variar/klogg/issues/399#issuecomment-917975136

variar commented 3 years ago

@ArsMasiuk what exact version of MSVC c++ compiler was used in failed build case? Klogg builds fine on GitHub build agents. Here is some output from configure step:

-- The C compiler identification is MSVC 19.29.30133.0
-- The CXX compiler identification is MSVC 19.29.30133.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
...
Qt version 5.15.2

Could you attach logs from cmake configuration step when build failed?

ArsMasiuk commented 3 years ago

Sure, I'll check this tomorrow

ArsMasiuk commented 3 years ago

Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042. The C compiler identification is MSVC 19.29.30133.0 The CXX compiler identification is MSVC 19.29.30133.0 The ASM compiler identification is MSVC Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped Detecting C compile features Detecting C compile features - done Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped Detecting CXX compile features Detecting CXX compile features - done Version override Build Project version is 21.9.0 Project version tweak is 0 Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Flags set for 'MSVC' compiler:/fp:fast Defines set for 'MSVC' compiler:-DNOMINMAX

CMAKE_C_FLAGS: /DWIN32 /D_WINDOWS /W4 CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W4 /GR /EHsc /experimental:external /external:W0 /bigobj CMAKE_EXE_LINKER_FLAGS: /machine:x64 CMAKE_MODULE_LINKER_FLAGS: /machine:x64 CMAKE_SHARED_LINKER_FLAGS: /machine:x64 CMAKE_STATIC_LINKER_FLAGS: /machine:x64 CMAKE_C_FLAGS_DEBUG: /MDd /Zi /Ob0 /Od /RTC1 CMAKE_CXX_FLAGS_DEBUG: /MDd /Zi /Ob0 /Od /RTC1 CMAKE_EXE_LINKER_FLAGS_DEBUG: /debug /INCREMENTAL CMAKE_MODULE_LINKER_FLAGS_DEBUG: /debug /INCREMENTAL CMAKE_SHARED_LINKER_FLAGS_DEBUG: /debug /INCREMENTAL CMAKE_STATIC_LINKER_FLAGS_DEBUG: CMAKE_C_FLAGS_RELEASE: /MD /O2 /Ob2 /DNDEBUG CMAKE_CXX_FLAGS_RELEASE: /MD /O2 /Ob2 /DNDEBUG CMAKE_EXE_LINKER_FLAGS_RELEASE: /INCREMENTAL:NO CMAKE_MODULE_LINKER_FLAGS_RELEASE: /INCREMENTAL:NO CMAKE_SHARED_LINKER_FLAGS_RELEASE: /INCREMENTAL:NO CMAKE_STATIC_LINKER_FLAGS_RELEASE: CMAKE_C_FLAGS_MINSIZEREL: /MD /O1 /Ob1 /DNDEBUG CMAKE_CXX_FLAGS_MINSIZEREL: /MD /O1 /Ob1 /DNDEBUG CMAKE_EXE_LINKER_FLAGS_MINSIZEREL: /INCREMENTAL:NO CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL: /INCREMENTAL:NO CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL: /INCREMENTAL:NO CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL: CMAKE_C_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /DNDEBUG CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO: /debug /INCREMENTAL CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO: /debug /INCREMENTAL CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO: /debug /INCREMENTAL CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:

Qt version 5.13.2 LTO ON Looking for pthread.h Looking for pthread.h - not found Found Threads: TRUE
Using bundled tbb HWLOC target HWLOC::hwloc_1_11 doesn't exist. The tbbbind target cannot be created HWLOC target HWLOC::hwloc_2 doesn't exist. The tbbbind_2_0 target cannot be created HWLOC target HWLOC::hwloc_2_4 doesn't exist. The tbbbind_2_4 target cannot be created Using bundled uchardet Using bundled xxhash Performing Test CFLAG_Wall Performing Test CFLAG_Wall - Success Performing Test CFLAG_Wextra Performing Test CFLAG_Wextra - Failed Performing Test CFLAG_Wcast_qual Performing Test CFLAG_Wcast_qual - Failed Performing Test CFLAG_Wcast_align Performing Test CFLAG_Wcast_align - Failed Performing Test CFLAG_Wshadow Performing Test CFLAG_Wshadow - Failed Performing Test CFLAG_Wstrict_aliasing_1 Performing Test CFLAG_Wstrict_aliasing_1 - Failed Performing Test CFLAG_Wswitch_enum Performing Test CFLAG_Wswitch_enum - Failed Performing Test CFLAG_Wdeclaration_after_statement Performing Test CFLAG_Wdeclaration_after_statement - Failed Performing Test CFLAG_Wstrict_prototypes Performing Test CFLAG_Wstrict_prototypes - Failed Performing Test CFLAG_Wundef Performing Test CFLAG_Wundef - Failed Performing Test CFLAG_Wimplicit_fallthrough Performing Test CFLAG_Wimplicit_fallthrough - Failed CMake Warning at 3rdparty/karchive/CMakeLists.txt:1 (find_package): By not providing "FindKF5Archive.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "KF5Archive", but CMake did not find one.

Could not find a package configuration file provided by "KF5Archive" with any of the following names:

KF5ArchiveConfig.cmake
kf5archive-config.cmake

Add the installation prefix of "KF5Archive" to CMAKE_PREFIX_PATH or set "KF5Archive_DIR" to a directory containing one of the above files. If "KF5Archive" provides a separate development package or SDK, be sure it has been installed.

Using bundled KArchive Looking for byteswap.h Looking for byteswap.h - not found Looking for inttypes.h Looking for inttypes.h - found Looking for limits.h Looking for limits.h - found Looking for memory.h Looking for memory.h - found Looking for strings.h Looking for strings.h - not found Looking for string.h Looking for string.h - found Looking for sys/sysctl.h Looking for sys/sysctl.h - not found Looking for stdbool.h Looking for stdbool.h - found Performing Test HAVE_BSWAP_16 Performing Test HAVE_BSWAP_16 - Failed Performing Test HAVE_BSWAP_32 Performing Test HAVE_BSWAP_32 - Failed Performing Test HAVE_BSWAP_64 Performing Test HAVE_BSWAP_64 - Failed Check if the system is big endian Searching 16 bit integer Looking for sys/types.h Looking for sys/types.h - found Looking for stdint.h Looking for stdint.h - found Looking for stddef.h Looking for stddef.h - found Check size of unsigned short Check size of unsigned short - done Searching 16 bit integer - Using unsigned short Check if the system is big endian - little endian Check size of int16_t Check size of int16_t - done Check size of int32_t Check size of int32_t - done Check size of int64_t Check size of int64_t - done Check size of intmax_t Check size of intmax_t - done Check size of uint8_t Check size of uint8_t - done Check size of uint16_t Check size of uint16_t - done Check size of uint32_t Check size of uint32_t - done Check size of uint64_t Check size of uint64_t - done Check size of uintmax_t Check size of uintmax_t - done Check size of short Check size of short - done Check size of int Check size of int - done Check size of long Check size of long - done Check size of long long Check size of long long - done Check size of unsigned short Check size of unsigned short - done Check size of unsigned Check size of unsigned - done Check size of unsigned long Check size of unsigned long - done Check size of unsigned long long Check size of unsigned long long - done Check size of size_t Check size of size_t - done Check size of int64 Check size of int64 - done Check size of unsigned int64 Check size of unsigned int64 - done Check size of uintptr_t Check size of uintptr_t - done Configuring done

ArsMasiuk commented 3 years ago

What is strange: it does not work when I try to build the solution for the first time. If I build it again, it does some rests of work and does not fail anymore.

variar commented 2 years ago

Compiler is the same as in CI. However, Qt version in your configuration is Qt version 5.13.2. I've never tried building klogg with it. If possible, please, move to one of the LTS versions of Qt (5.9, 5.12 or 5.15 should be fine)