Open variar opened 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?
Sure, I'll check this tomorrow
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
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.
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)
Unfortunately I cannot build the recent klogg (21.09) with MSVC 2019 / Qt 5.15.2 because of following issues:
Originally posted by @ArsMasiuk in https://github.com/variar/klogg/issues/399#issuecomment-917975136