conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
967 stars 1.78k forks source link

[package] sentry-crashpad/0.4.15: can't build with mingw #10113

Open AndreyMlashkin opened 2 years ago

AndreyMlashkin commented 2 years ago

Package and Environment Details (include every applicable attribute)

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.exception=seh
compiler.libcxx=libstdc++11
compiler.threads=win32
compiler.version=11.2
cppstd=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
CC=gcc
CONAN_CMAKE_GENERATOR=Ninja
CXX=g++

Steps to reproduce (Include if Applicable)

conan install sentry-crashpad/0.4.15@ -pr mingw --build missing

Logs (Include/Attach if Applicable)

Click to expand log ``` > conan install sentry-native/0.4.15@ -pr mingw --build missing Configuration: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.exception=seh compiler.libcxx=libstdc++11 compiler.threads=win32 compiler.version=11.2 cppstd=17 os=Windows [options] [build_requires] [env] CC=gcc CXX=g++ [conf] tools.cmake.cmaketoolchain:generator=Ninja sentry-crashpad/0.4.15: WARN: Package binary is corrupted, removing: 02f1a102f73bb3269f238dfe2b78584d58130dcd Installing package: sentry-native/0.4.15 Requirements sentry-crashpad/0.4.15 from 'conancenter' - Cache sentry-native/0.4.15 from 'artifactory' - Cache zlib/1.2.11 from 'artifactory' - Cache Packages sentry-crashpad/0.4.15:02f1a102f73bb3269f238dfe2b78584d58130dcd - Build sentry-native/0.4.15:8e6307ae8d081b58217e10e576f8f8519bf6e25e - Build zlib/1.2.11:296232c0fe7b58ba257fce810f3a02a03a884aaa - Cache Build requirements cmake/3.22.0 from 'artifactory' - Cache Build requirements packages cmake/3.22.0:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache Installing (downloading, building) binaries... cmake/3.22.0: Already installed! cmake/3.22.0: Appending PATH environment variable: D:\.conan\storage\cmake\3.22.0\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fdb68\bin zlib/1.2.11: Already installed! sentry-crashpad/0.4.15: WARN: Build folder is dirty, removing it: D:\.conan\348f4d\1 sentry-crashpad/0.4.15: Copying sources to build folder sentry-crashpad/0.4.15: Building your package in D:\.conan\348f4d\1 sentry-crashpad/0.4.15: Generator cmake created conanbuildinfo.cmake sentry-crashpad/0.4.15: Aggregating env generators sentry-crashpad/0.4.15: Calling build() ----Running------ > cd D:\.conan\348f4d\1\build_subfolder && cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="11.2" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DCMAKE_INSTALL_PREFIX="D:\.conan\3fb004\1" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DCRASHPAD_ENABLE_INSTALL="True" -DCRASHPAD_ENABLE_INSTALL_DEV="True" -DCRASHPAD_ZLIB_SYSTEM="True" -Wno-dev D:\.conan\348f4d\1 ----------------- -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/ProgramData/chocolatey/bin/gcc.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:/ProgramData/chocolatey/bin/g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Conan: called by CMake conan helper -- Conan: called inside local cache -- Conan: Adjusting output directories -- Conan: Using cmake global configuration -- Conan: Adjusting default RPATHs Conan policies -- Conan: Adjusting language standard -- Conan: Compiler GCC>=5, checking major version 11.2 -- Conan: Checking correct version: 11.2 -- Conan: C++ stdlib: libstdc++11 -- Found ZLIB: D:/.conan/storage/zlib/1.2.11/_/_/package/296232c0fe7b58ba257fce810f3a02a03a884aaa/lib/libzlib.a (found version "1.2.11") -- The ASM_MASM compiler identification is unknown -- Found assembler: ml CMake Warning at source_subfolder/external/crashpad/CMakeLists.txt:57 (message): No custom ASM_MASM compiler defined via 'CMAKE_ASM_MASM_COMPILER'. Trying to use UASM... -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY -- Build files have been written to: D:/.conan/348f4d/1/build_subfolder ----Running------ > cmake --build D:\.conan\348f4d\1\build_subfolder -- -j12 ----------------- [ 0%] Linking CXX static library ..\..\..\..\lib\libcrashpad_compat.a [ 2%] [ 2%] Building CXX object source_subfolder/external/crashpad/tools/CMakeFiles/crashpad_tools.dir/tool_support.cc.objBuilding CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/debug/alias.cc.obj [ 3%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/files/file_path.cc.obj [ 3%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/files/scoped_file.cc.obj [ 4%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/logging.cc.obj [ 5%] [ 5%] [ 5%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/strings/string_number_conversions.cc.objBuilding CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/rand_util.cc.obj Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/process/memory.cc.obj [ 7%] [ 7%] [ 7%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/synchronization/lock.cc.objBuilding CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/strings/stringprintf.cc.obj Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/strings/utf_string_conversions.cc.obj [ 8%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/third_party/icu/icu_utf.cc.obj [ 8%] Built target crashpad_compat [ 8%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/threading/thread_local_storage.cc.obj [ 9%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/utf_string_conversion_utils.mingw.cc.obj [ 10%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/memory/page_size_win.cc.obj [ 10%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/scoped_clear_last_error_win.cc.obj [ 10%] Linking CXX static library ..\..\..\..\lib\libcrashpad_tools.a [ 11%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/strings/string_util_win.cc.obj [ 12%] [ 12%] Building CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/synchronization/lock_impl_win.cc.objBuilding CXX object source_subfolder/external/crashpad/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/mini_chromium/base/threading/thread_local_storage_win.cc.obj [ 12%] Built target crashpad_tools [ 13%] Linking CXX static library ..\..\..\..\..\lib\libmini_chromium.a [ 13%] Built target mini_chromium Scanning dependencies of target crashpad_util [ 15%] [ 15%] [ 15%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/file_io.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/file_helper.cc.obj Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/delimited_file_reader.cc.obj[ 16%] [ 17%] [ 18%] [ 18%] [ 19%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/file_writer.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/scoped_remove_file.cc.obj[ 19%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/string_file.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/file_reader.cc.obj Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/output_stream_file_writer.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/file_seeker.cc.obj [ 20%] [ 20%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/lexing.cc.obj Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/metrics.cc.obj [ 20%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/initialization_state_dcheck.cc.obj [ 21%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/pdb_structures.cc.obj [ 21%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/random_string.cc.obj [ 22%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/range_set.cc.obj [ 23%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/reinterpret_bytes.cc.obj [ 23%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/uuid.cc.obj [ 23%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/scoped_forbid_return.cc.obj [ 24%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/time.cc.obj [ 25%] [ 26%] [ 26%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/zlib.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/net/http_body.cc.obj Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/net/http_body_gzip.cc.obj [ 27%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/net/http_multipart_builder.cc.obj [ 27%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/net/http_transport.cc.obj [ 28%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/net/url.cc.obj[ 28%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/numeric/checked_address_range.cc.obj [ 29%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/process/process_memory.cc.obj [ 30%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/process/process_memory_range.cc.obj [ 30%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stdlib/aligned_allocator.cc.obj [ 31%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stdlib/string_number_conversion.cc.obj [ 31%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stdlib/strlcpy.cc.obj [ 32%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stdlib/strnlen.cc.obj [ 33%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stream/base94_output_stream.cc.obj [ 33%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stream/file_encoder.cc.obj [ 34%] [ 34%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stream/file_output_stream.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stream/log_output_stream.cc.obj [ 35%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/stream/zlib_output_stream.cc.obj [ 36%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/string/split_string.cc.obj [ 36%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/thread/thread.cc.obj [ 37%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/thread/thread_log_messages.cc.obj [ 37%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/thread/worker_thread.cc.obj [ 38%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/directory_reader_win.cc.obj [ 38%] [ 39%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/file_io_win.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/file/filesystem_win.cc.obj [ 40%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/clock_win.cc.obj [ 40%] [ 41%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/paths_win.cc.obj Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/time_win.cc.obj [ 41%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/net/http_transport_win.cc.obj [ 42%] [ 43%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/process/process_memory_win.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/synchronization/semaphore_win.cc.obj [ 43%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/thread/thread_win.cc.obj [ 44%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/command_line.cc.obj [ 44%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/critical_section_with_debug_info.cc.obj [ 45%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/exception_handler_server.cc.obj [ 45%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/get_function.cc.obj [ 46%] [ 47%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/get_module_information.cc.objBuilding CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/handle.cc.obj [ 47%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/initial_client_data.cc.obj [ 48%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/loader_lock.cc.obj [ 48%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/module_version.cc.obj [ 49%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/nt_internals.cc.obj [ 50%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/ntstatus_logging.cc.obj [ 50%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/process_info.cc.obj [ 51%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/registration_protocol_win.cc.obj [ 51%] [ 52%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/scoped_handle.cc.obj Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/scoped_local_alloc.cc.obj[ 52%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/scoped_process_suspend.cc.obj [ 53%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/scoped_set_event.cc.obj [ 54%] Building CXX object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/session_end_watcher.cc.obj [ 54%] Building ASM_MASM object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/capture_context_win.asm.obj[ 55%] Building ASM_MASM object source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/safe_terminate_process.asm.obj 'uasm' is not recognized as an internal or external command, operable program or batch file. mingw32-make[2]: *** [source_subfolder\external\crashpad\util\CMakeFiles\crashpad_util.dir\build.make:1109: source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/misc/capture_context_win.asm.obj] Error 1 mingw32-make[2]: *** Waiting for unfinished jobs.... 'uasm' is not recognized as an internal or external command, operable program or batch file. mingw32-make[2]: *** [source_subfolder\external\crashpad\util\CMakeFiles\crashpad_util.dir\build.make:1114: source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/win/safe_terminate_process.asm.obj] Error 1 mingw32-make[1]: *** [CMakeFiles\Makefile2:362: source_subfolder/external/crashpad/util/CMakeFiles/crashpad_util.dir/all] Error 2 mingw32-make: *** [Makefile:135: all] Error 2 sentry-crashpad/0.4.15: sentry-crashpad/0.4.15: ERROR: Package '02f1a102f73bb3269f238dfe2b78584d58130dcd' build failed sentry-crashpad/0.4.15: WARN: Build folder D:\.conan\348f4d\1 ERROR: sentry-crashpad/0.4.15: Error in build() method, line 101 cmake.build() ConanException: Error 2 while executing cmake --build D:\.conan\348f4d\1\build_subfolder -- -j12 ```
AndreyMlashkin commented 2 years ago

upstream https://github.com/getsentry/sentry-native/issues/694