microsoft / microsoft/vcpkg

[crashpad] Build error on x64-linux

Open
#45,299 3 comments 0 reactions 1 assignee View on GitHub

@LilyWangLL is already working on this.

Since May 6, 2025.

category:port-bug
Dominant language
CMake
Stars
27.5k
Forks
7.7k
Avg merge
2d 19h
Merged PRs (30d)
321

Description

Package: crashpad:x64-linux@2024-04-11#7

Host Environment

  • Host: x64-linux
  • Compiler: GNU 15.1.1
  • vcpkg-tool version: 2025-01-29-a75ad067f470c19f030361064e32a2585392bee2
    vcpkg-scripts version: 5a874b05fb 2025-04-30 (2 hours ago)

To Reproduce

vcpkg install crashpad

Failure logs

-- Using cached /home/will/Projects/Playdate/raven/vcpkg/downloads/crashpad-7e0af1d4d45b526f01677e74a56f4a951b70517d.tar.gz
-- Cleaning sources at /home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/src/951b70517d-d5821ac542.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/will/Projects/Playdate/raven/vcpkg/downloads/crashpad-7e0af1d4d45b526f01677e74a56f4a951b70517d.tar.gz
-- Applying patch fix-linux.patch
-- Applying patch fix-lib-name-conflict.patch
-- Using source at /home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/src/951b70517d-d5821ac542.clean
-- Setting up python virtual environment...
-- Installing python packages: setuptools
-- Setting up python virtual environment... finished.
-- Using cached /home/will/Projects/Playdate/raven/vcpkg/downloads/crashpad-dce72d97d1c2e9beb5e206c6a05a702269794ca3.tar.gz
-- Extracting source /home/will/Projects/Playdate/raven/vcpkg/downloads/crashpad-dce72d97d1c2e9beb5e206c6a05a702269794ca3.tar.gz
-- Applying patch fix-std-20.patch
-- Applying patch ndk-toolchain.diff
-- Applying patch fix-lib-name-conflict-1.patch
-- Using source at /home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/src/2269794ca3-41bab2e83c.clean
-- Using cached /home/will/Projects/Playdate/raven/vcpkg/downloads/crashpad-9719c1e1e676814c456b55f5f070eabad6709d31.tar.gz
-- Extracting source /home/will/Projects/Playdate/raven/vcpkg/downloads/crashpad-9719c1e1e676814c456b55f5f070eabad6709d31.tar.gz
-- Using source at /home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/src/bad6709d31-6e596bea61.clean
-- Generating build (x64-linux-dbg)...
-- Generating build (x64-linux-rel)...
-- Found external ninja('1.12.1').
-- Building (x64-linux-dbg)...
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/bin/ninja -C /home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/x64-linux-dbg client client:common util third_party/mini_chromium/mini_chromium/base handler:crashpad_handler
    Working Directory: /home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/src/951b70517d-d5821ac542.clean
    See logs for more information:
      /home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/build-x64-linux-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_ninja.cmake:3 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_build_ninja.cmake:24 (z_vcpkg_build_ninja_build)
  installed/x64-linux/share/vcpkg-gn/vcpkg_gn_install.cmake:94 (vcpkg_build_ninja)
  ports/crashpad/portfile.cmake:130 (vcpkg_gn_install)
  scripts/ports.cmake:206 (include)



/home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/build-x64-linux-dbg-out.log
ninja: Entering directory `/home/will/Projects/Playdate/raven/vcpkg/buildtrees/crashpad/x64-linux-dbg'
[1/81] CXX obj/third_party/mini_chromium/mini_chromium/base/threading/base.thread_local_storage.o
[2/81] CXX obj/util/misc/util.uuid.o
[3/81] AR obj/third_party/mini_chromium/mini_chromium/base/libvcpkg_crashpad_base.a
[4/81] CXX obj/util/linux/util.thread_info.o
FAILED: obj/util/linux/util.thread_info.o 
clang++ -MMD -MF obj/util/linux/util.thread_info.o.d -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -DCRASHPAD_FLOCK_ALWAYS_SUPPORTED=true -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DCRASHPAD_LSS_SOURCE_EMBEDDED -Igen/third_party/crashpad/crashpad -I../src/951b70517d-d5821ac542.clean -Igen -I../src/951b70517d-d5821ac542.clean/third_party/mini_chromium/mini_chromium -I../src/951b70517d-d5821ac542.clean/compat/linux -I../src/951b70517d-d5821ac542.clean/compat/non_win -I/home/will/Projects/Playdate/raven/vcpkg/installed/x64-linux/include  -Wall -Wendif-labels -Werror -Wextra -Wextra-semi -Wheader-hygiene -Wnewline-eof -Wno-missing-field-initializers -Wno-unused-parameter -Wsign-compare -Wstring-conversion -Wvla -fno-exceptions -fno-rtti -fno-strict-aliasing -fobjc-call-cxx-cdtors -fstack-protector-all -fvisibility-inlines-hidden -fvisibility=hidden -fPIC -pthread -m64 -g -Wexit-time-destructors -Wimplicit-fallthrough -std=c++20 -c ../src/951b70517d-d5821ac542.clean/util/linux/thread_info.cc -o obj/util/linux/util.thread_info.o
../src/951b70517d-d5821ac542.clean/util/linux/thread_info.cc:22:10: error: first argument in call to 'memset' is a pointer to non-trivially copyable type 'crashpad::ThreadContext' [-Werror,-Wnontrivial-memcall]
   22 |   memset(this, 0, sizeof(*this));
      |          ^
../src/951b70517d-d5821ac542.clean/util/linux/thread_info.cc:22:10: note: explicitly cast the pointer to silence this warning
   22 |   memset(this, 0, sizeof(*this));
      |          ^
      |          (void*)
../src/951b70517d-d5821ac542.clean/util/linux/thread_info.cc:28:10: error: first argument in call to 'memset' is a pointer to non-trivially copyable type 'crashpad::FloatContext' [-Werror,-Wnontrivial-memcall]
   28 |   memset(this, 0, sizeof(*this));
      |          ^
../src/951b70517d-d5821ac542.clean/util/linux/thread_info.cc:28:10: note: explicitly cast the pointer to silence this warning
   28 |   memset(this, 0, sizeof(*this));
      |          ^
      |          (void*)
2 errors generated.
[5/81] CXX obj/snapshot/posix/snapshot.timezone.o
[6/81] CXX obj/snapshot/linux/snapshot.cpu_context_linux.o
[7/81] CXX obj/snapshot/sanitized/snapshot.memory_snapshot_sanitized.o
[8/81] CXX obj/snapshot/linux/snapshot.debug_rendezvous.o
[9/81] CXX obj/snapshot/linux/snapshot.system_snapshot_linux.o
[10/81] CXX obj/snapshot/sanitized/snapshot.process_snapshot_sanitized.o
[11/81] CXX obj/snapshot/sanitized/snapshot.module_snapshot_sanitized.o
[12/81] CXX obj/snapshot/linux/snapshot.capture_memory_delegate_linux.o
[13/81] CXX obj/snapshot/sanitized/snapshot.sanitization_information.o
[14/81] CXX obj/snapshot/linux/snapshot.process_reader_linux.o
[15/81] CXX obj/snapshot/linux/snapshot.exception_snapshot_linux.o
[16/81] CXX obj/snapshot/linux/snapshot.thread_snapshot_linux.o
[17/81] CXX obj/snapshot/linux/snapshot.process_snapshot_linux.o
ninja: build stopped: subcommand failed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.