Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crashpad] Build error #21888

Closed
linuxaged opened this issue Dec 7, 2021 · 6 comments
Closed

[crashpad] Build error #21888

linuxaged opened this issue Dec 7, 2021 · 6 comments
Assignees
Labels
category:question This issue is a question

Comments

@linuxaged
Copy link

Windows 10 Pro 21H1
Visual Studio Community 2022 (64-bit) Version 17.0.2
package: crashpad[core]:x64-windows -> 2020-03-18#1
vcpkg-tool version: 2021-11-24-48b94a6946b8a70abd21529218927fd478d02b6c
vcpkg-scripts version: 4c9b301 2021-12-06 (32 minutes ago)

ninja: Entering directory `C:/workspace/vcpkg/buildtrees/crashpad/x64-windows-dbg'
[1/180] STAMP obj/build/default_exe_manifest_win.stamp
[2/180] CXX obj/client/client.annotation.obj
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
[3/180] CXX obj/compat/win/compat.time.obj
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
[4/180] CXX obj/client/client.settings.obj
FAILED: obj/client/client.settings.obj 
ninja -t msvc -e environment.amd64 -- cl.exe /nologo /showIncludes -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -I../src/5347cd549f-3259acc76e.clean -I../src/5347cd549f-3259acc76e.clean/third_party/mini_chromium/mini_chromium -I../src/5347cd549f-3259acc76e.clean/compat/non_mac -I../src/5347cd549f-3259acc76e.clean/compat/win -I../src/5347cd549f-3259acc76e.clean/compat/non_elf -IC:/workspace/vcpkg/installed/x64-windows/include /wd4201 /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /D_UNICODE /FS /W4 /WX /Zi /bigobj /wd4100 /wd4127 /wd4324 /wd4351 /wd4577 /wd4996  /GL- /nologo /DWIN32 /D_WINDOWS /W3  /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /c ../src/5347cd549f-3259acc76e.clean/client/settings.cc /Foobj/client/client.settings.obj /Fd"obj/client/client_cc.pdb"
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/uuid.h(1): error C2220: the following warning is treated as an error
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/uuid.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
[5/180] CXX obj/compat/win/compat.strings.obj
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
[6/180] CXX obj/client/client.crash_report_database.obj
FAILED: obj/client/client.crash_report_database.obj 
ninja -t msvc -e environment.amd64 -- cl.exe /nologo /showIncludes -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -I../src/5347cd549f-3259acc76e.clean -I../src/5347cd549f-3259acc76e.clean/third_party/mini_chromium/mini_chromium -I../src/5347cd549f-3259acc76e.clean/compat/non_mac -I../src/5347cd549f-3259acc76e.clean/compat/win -I../src/5347cd549f-3259acc76e.clean/compat/non_elf -IC:/workspace/vcpkg/installed/x64-windows/include /wd4201 /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /D_UNICODE /FS /W4 /WX /Zi /bigobj /wd4100 /wd4127 /wd4324 /wd4351 /wd4577 /wd4996  /GL- /nologo /DWIN32 /D_WINDOWS /W3  /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /c ../src/5347cd549f-3259acc76e.clean/client/crash_report_database.cc /Foobj/client/client.crash_report_database.obj /Fd"obj/client/client_cc.pdb"
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/metrics.h(1): error C2220: the following warning is treated as an error
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/metrics.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/uuid.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
[7/180] CXX obj/client/client.annotation_list.obj
FAILED: obj/client/client.annotation_list.obj 
ninja -t msvc -e environment.amd64 -- cl.exe /nologo /showIncludes -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -I../src/5347cd549f-3259acc76e.clean -I../src/5347cd549f-3259acc76e.clean/third_party/mini_chromium/mini_chromium -I../src/5347cd549f-3259acc76e.clean/compat/non_mac -I../src/5347cd549f-3259acc76e.clean/compat/win -I../src/5347cd549f-3259acc76e.clean/compat/non_elf -IC:/workspace/vcpkg/installed/x64-windows/include /wd4201 /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /D_UNICODE /FS /W4 /WX /Zi /bigobj /wd4100 /wd4127 /wd4324 /wd4351 /wd4577 /wd4996  /GL- /nologo /DWIN32 /D_WINDOWS /W3  /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /c ../src/5347cd549f-3259acc76e.clean/client/annotation_list.cc /Foobj/client/client.annotation_list.obj /Fd"obj/client/client_cc.pdb"
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/from_pointer_cast.h(1): error C2220: the following warning is treated as an error
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/from_pointer_cast.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
[8/180] CXX obj/client/client.prune_crash_reports.obj
FAILED: obj/client/client.prune_crash_reports.obj 
ninja -t msvc -e environment.amd64 -- cl.exe /nologo /showIncludes -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -I../src/5347cd549f-3259acc76e.clean -I../src/5347cd549f-3259acc76e.clean/third_party/mini_chromium/mini_chromium -I../src/5347cd549f-3259acc76e.clean/compat/non_mac -I../src/5347cd549f-3259acc76e.clean/compat/win -I../src/5347cd549f-3259acc76e.clean/compat/non_elf -IC:/workspace/vcpkg/installed/x64-windows/include /wd4201 /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /D_UNICODE /FS /W4 /WX /Zi /bigobj /wd4100 /wd4127 /wd4324 /wd4351 /wd4577 /wd4996  /GL- /nologo /DWIN32 /D_WINDOWS /W3  /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /c ../src/5347cd549f-3259acc76e.clean/client/prune_crash_reports.cc /Foobj/client/client.prune_crash_reports.obj /Fd"obj/client/client_cc.pdb"
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/metrics.h(1): error C2220: the following warning is treated as an error
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/metrics.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/uuid.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
[9/180] CXX obj/client/client.crashpad_info.obj
FAILED: obj/client/client.crashpad_info.obj 
ninja -t msvc -e environment.amd64 -- cl.exe /nologo /showIncludes -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -I../src/5347cd549f-3259acc76e.clean -I../src/5347cd549f-3259acc76e.clean/third_party/mini_chromium/mini_chromium -I../src/5347cd549f-3259acc76e.clean/compat/non_mac -I../src/5347cd549f-3259acc76e.clean/compat/win -I../src/5347cd549f-3259acc76e.clean/compat/non_elf -IC:/workspace/vcpkg/installed/x64-windows/include /wd4201 /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /D_UNICODE /FS /W4 /WX /Zi /bigobj /wd4100 /wd4127 /wd4324 /wd4351 /wd4577 /wd4996  /GL- /nologo /DWIN32 /D_WINDOWS /W3  /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /c ../src/5347cd549f-3259acc76e.clean/client/crashpad_info.cc /Foobj/client/client.crashpad_info.obj /Fd"obj/client/client_cc.pdb"
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
../src/5347cd549f-3259acc76e.clean/client/crashpad_info.cc(1): error C2220: the following warning is treated as an error
../src/5347cd549f-3259acc76e.clean/client/crashpad_info.cc(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/from_pointer_cast.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
[10/180] CXX obj/client/client.crashpad_client_win.obj
FAILED: obj/client/client.crashpad_client_win.obj 
ninja -t msvc -e environment.amd64 -- cl.exe /nologo /showIncludes -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -I../src/5347cd549f-3259acc76e.clean -I../src/5347cd549f-3259acc76e.clean/third_party/mini_chromium/mini_chromium -I../src/5347cd549f-3259acc76e.clean/compat/non_mac -I../src/5347cd549f-3259acc76e.clean/compat/win -I../src/5347cd549f-3259acc76e.clean/compat/non_elf -IC:/workspace/vcpkg/installed/x64-windows/include /wd4201 /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /D_UNICODE /FS /W4 /WX /Zi /bigobj /wd4100 /wd4127 /wd4324 /wd4351 /wd4577 /wd4996  /GL- /nologo /DWIN32 /D_WINDOWS /W3  /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /c ../src/5347cd549f-3259acc76e.clean/client/crashpad_client_win.cc /Foobj/client/client.crashpad_client_win.obj /Fd"obj/client/client_cc.pdb"
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/from_pointer_cast.h(1): error C2220: the following warning is treated as an error
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/from_pointer_cast.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/initialization_state_dcheck.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
[11/180] CXX obj/client/client.crash_report_database_win.obj
FAILED: obj/client/client.crash_report_database_win.obj 
ninja -t msvc -e environment.amd64 -- cl.exe /nologo /showIncludes -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -I../src/5347cd549f-3259acc76e.clean -I../src/5347cd549f-3259acc76e.clean/third_party/mini_chromium/mini_chromium -I../src/5347cd549f-3259acc76e.clean/compat/non_mac -I../src/5347cd549f-3259acc76e.clean/compat/win -I../src/5347cd549f-3259acc76e.clean/compat/non_elf -IC:/workspace/vcpkg/installed/x64-windows/include /wd4201 /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /D_CRT_SECURE_NO_WARNINGS /D_HAS_EXCEPTIONS=0 /D_UNICODE /FS /W4 /WX /Zi /bigobj /wd4100 /wd4127 /wd4324 /wd4351 /wd4577 /wd4996  /GL- /nologo /DWIN32 /D_WINDOWS /W3  /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /c ../src/5347cd549f-3259acc76e.clean/client/crash_report_database_win.cc /Foobj/client/client.crash_report_database_win.obj /Fd"obj/client/client_cc.pdb"
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/metrics.h(1): error C2220: the following warning is treated as an error
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/metrics.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/uuid.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
C:\workspace\vcpkg\buildtrees\crashpad\src\5347cd549f-3259acc76e.clean\util/misc/initialization_state_dcheck.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
ninja: build stopped: subcommand failed.

@JackBoosY
Copy link
Contributor

The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss

@JackBoosY JackBoosY self-assigned this Dec 7, 2021
@JackBoosY
Copy link
Contributor

See the related question: https://magpcss.org/ceforum/viewtopic.php?f=6&t=14855.
Also please ensure you've installed the English Language Package using Visual Studio Installer.

Thanks.

@JackBoosY JackBoosY added the category:question This issue is a question label Dec 7, 2021
@linuxaged
Copy link
Author

linuxaged commented Dec 7, 2021

@JackBoosY English Language Package has been installed.

Solved by convert all source files' encoding to utf8-bom manually.

@JackBoosY
Copy link
Contributor

@linuxaged Windows also have a config to set the charset. See https://www.cnblogs.com/walker-world/p/9548852.html.

@linuxaged
Copy link
Author

linuxaged commented Dec 8, 2021

there're still link errors:

1>------ Build started: Project: App, Configuration: RelWithDebInfo x64 ------
1>client.lib(client.crash_report_database_win.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>client.lib(client.crash_report_database_win.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>client.lib(client.settings.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>client.lib(client.settings.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>client.lib(client.crashpad_client_win.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>client.lib(client.crashpad_client_win.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>client.lib(client.crash_report_database.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>client.lib(client.crash_report_database.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.scoped_handle.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.scoped_handle.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.file_io.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.file_io.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.file_io_win.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.file_io_win.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.metrics.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.metrics.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.uuid.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.uuid.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.initialization_state_dcheck.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.initialization_state_dcheck.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.random_string.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.random_string.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.command_line.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.command_line.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.critical_section_with_debug_info.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.critical_section_with_debug_info.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.get_function.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.get_function.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.handle.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.handle.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.initial_client_data.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.initial_client_data.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.nt_internals.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.nt_internals.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.ntstatus_logging.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.ntstatus_logging.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.process_info.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.process_info.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.registration_protocol_win.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.registration_protocol_win.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.scoped_process_suspend.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.scoped_process_suspend.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.file_reader.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.file_reader.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.file_writer.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.file_writer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.scoped_remove_file.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.scoped_remove_file.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.string_number_conversion.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.string_number_conversion.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.split_string.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.split_string.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.aligned_allocator.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.aligned_allocator.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.scoped_local_alloc.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.scoped_local_alloc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.filesystem_win.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.filesystem_win.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>util.lib(util.time_win.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>util.lib(util.time_win.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>base.lib(base.file_path.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>base.lib(base.file_path.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>base.lib(base.logging.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>base.lib(base.logging.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>base.lib(base.utf_string_conversions.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>base.lib(base.utf_string_conversions.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>base.lib(base.stringprintf.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>base.lib(base.stringprintf.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>base.lib(base.lock.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>base.lib(base.lock.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>base.lib(base.rand_util.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>base.lib(base.rand_util.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>base.lib(base.utf_string_conversion_utils.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>base.lib(base.utf_string_conversion_utils.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>base.lib(base.string_util_win.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in cmake_pch.obj
1>base.lib(base.string_util_win.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in cmake_pch.obj
1>   Creating library C:/workspace/App/build/App/RelWithDebInfo/App.lib and object C:/workspace/App/build/App/RelWithDebInfo/App.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>base.lib(base.rand_util.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>base.lib(base.utf_string_conversion_utils.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>base.lib(base.logging.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>base.lib(base.utf_string_conversions.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>base.lib(base.stringprintf.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>base.lib(base.lock.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.split_string.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.filesystem_win.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.time_win.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>base.lib(base.file_path.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.process_info.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.file_reader.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.file_writer.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.string_number_conversion.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.command_line.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.get_function.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.initial_client_data.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.ntstatus_logging.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.file_io_win.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.metrics.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.uuid.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.random_string.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>client.lib(client.crash_report_database_win.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>client.lib(client.crashpad_client_win.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>client.lib(client.crash_report_database.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>util.lib(util.file_io.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
1>base.lib(base.rand_util.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>base.lib(base.utf_string_conversion_utils.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>base.lib(base.logging.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>base.lib(base.utf_string_conversions.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>base.lib(base.stringprintf.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>base.lib(base.lock.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.split_string.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.filesystem_win.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.time_win.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>base.lib(base.file_path.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.process_info.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.file_reader.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.file_writer.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.string_number_conversion.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.command_line.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.get_function.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.initial_client_data.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.ntstatus_logging.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.file_io_win.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.metrics.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.uuid.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.random_string.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>client.lib(client.crash_report_database_win.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>client.lib(client.crashpad_client_win.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>client.lib(client.crash_report_database.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>util.lib(util.file_io.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReport
1>base.lib(base.logging.obj) : error LNK2019: unresolved external symbol __imp__calloc_dbg referenced in function "char * __cdecl std::_Maklocstr<char>(char const *,char *,struct _Cvtvec const &)" (??$_Maklocstr@D@std@@YAPEADPEBDPEADAEBU_Cvtvec@@@Z)
1>C:\workspace\App\bin\RelWithDebInfo\App.exe : fatal error LNK1120: 3 unresolved externals
1>Done building project "App.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 25 up-to-date, 0 skipped ==========

it seems that crashpad built with MDd but my app built with MD, any idea?

By the way there're two link targets of crashpad, what's the diff of these two? have to link both?
target_link_libraries(main PRIVATE crashpad crashpad::crashpad)

@JackBoosY
Copy link
Contributor

Yeah that's another port bug, can you please open a new issue to report that?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants