Skip to content

Unable to cross compile spdlog for x86_64-windows-gnu #17828

@przybysh

Description

@przybysh

Zig Version

0.11.0-dev.3724+32cb9462f

Steps to Reproduce and Observed Behavior

Operating system:
cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"

  1. Checkout spdlog library
    git@github.com:gabime/spdlog.git
  2. Go to the spdlog dir and configure CMake project
    cd spdlog && CC="zig cc -pthread -target x86_64-windows-gnu" CXX="zig c++ -pthread -target x86_64-windows-gnu" cmake -B build_zig

Expected Behavior

Would expect that project configure with succes.

Instead got :

CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.25/Modules/FindThreads.cmake:228 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:144 (find_package)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions