Skip to content

[osg, osgearth] x64-windows-static-md build failure #15301

@ankurvdev

Description

@ankurvdev

Host Environment

  • OS: [Windows]
  • Compiler: revision

To Reproduce
Steps to reproduce the behavior:
./vcpkg install osgearth:x64-windows-static-md

Failure logs
.\vcpkg.exe install osgearth:x64-windows-static-md
Computing installation plan...
The following packages will be built and installed:

  • fontconfig[core]:x64-windows-static-md -> 2.13.1#2

  • osg[core,plugins]:x64-windows-static-md -> 3.6.5#5
    osgearth[core]:x64-windows-static-md -> 3.1

  • pthread[core]:x64-windows-static-md -> 3.0.0

  • pthreads[core]:x64-windows-static-md -> 3.0.0-6
    Additional packages (*) will be modified to complete this operation.
    Detecting compiler hash for triplet x64-windows-static-md...
    Could not locate cached archive: C:\Users\ankurv\AppData\Local\vcpkg\archives\5e\5e72bae870a19423ee029c1c71c7da3159450547.zip
    Could not locate cached archive: C:\Users\ankurv\AppData\Local\vcpkg\archives\b8\b84b695828646368a405abd7808813edaa08a15b.zip
    Could not locate cached archive: C:\Users\ankurv\AppData\Local\vcpkg\archives\e9\e9eda6d7250d3fe4bf9b444bd770b02edcca9168.zip
    Could not locate cached archive: C:\Users\ankurv\AppData\Local\vcpkg\archives\5a\5a1000d20ce077d807a727a1b1f20b58bbb9ac50.zip
    Could not locate cached archive: C:\Users\ankurv\AppData\Local\vcpkg\archives\40\4029aa7651fc672136dae4b8e826e816bde11d73.zip
    Starting package 1/5: pthreads:x64-windows-static-md
    Building package pthreads[core]:x64-windows-static-md...
    -- Using community triplet x64-windows-static-md. This triplet configuration is not guaranteed to succeed.
    -- [COMMUNITY] Loading triplet configuration from: G:\vcpkg.2020.12.25\triplets\community\x64-windows-static-md.cmake
    -- Trying auto-select mirror...
    -- Using cached G:/vcpkg.2020.12.25/downloads/pthreads4w-code-v3.0.0.zip
    -- Skipping hash check for G:/vcpkg.2020.12.25/downloads/pthreads4w-code-v3.0.0.zip.
    -- The default mirror is in Disaster Recovery mode, trying other mirrors...
    -- Trying mirror cfhcable...
    -- Using cached G:/vcpkg.2020.12.25/downloads/pthreads4w-code-v3.0.0.zip
    -- Skipping hash check for G:/vcpkg.2020.12.25/downloads/pthreads4w-code-v3.0.0.zip.
    -- Cleaning sources at G:/vcpkg.2020.12.25/buildtrees/pthreads/src/49e541b66c-bb03a1deb3.clean. Use --editable to skip cleaning for the packages you specify.
    -- Extracting source G:/vcpkg.2020.12.25/downloads/pthreads4w-code-v3.0.0.zip
    -- Using source at G:/vcpkg.2020.12.25/buildtrees/pthreads/src/49e541b66c-bb03a1deb3.clean
    -- Building x64-windows-static-md-rel
    -- Building x64-windows-static-md-rel done
    -- Building x64-windows-static-md-dbg
    -- Building x64-windows-static-md-dbg done
    -- Installing: G:/vcpkg.2020.12.25/packages/pthreads_x64-windows-static-md/share/pthreads/copyright
    -- Performing post-build validation
    Expected Debug,Dynamic crt linkage, but the following libs had invalid crt linkage:

    G:/vcpkg.2020.12.25/packages/pthreads_x64-windows-static-md/debug/lib/pthreadVC3d.lib: Debug,Static
    G:/vcpkg.2020.12.25/packages/pthreads_x64-windows-static-md/debug/lib/pthreadVCE3d.lib: Debug,Static
    G:/vcpkg.2020.12.25/packages/pthreads_x64-windows-static-md/debug/lib/pthreadVSE3d.lib: Debug,Static

To inspect the lib files, use:
dumpbin.exe /directives mylibfile.lib
Expected Release,Dynamic crt linkage, but the following libs had invalid crt linkage:

G:/vcpkg.2020.12.25/packages/pthreads_x64-windows-static-md/lib/pthreadVC3.lib: Release,Static
G:/vcpkg.2020.12.25/packages/pthreads_x64-windows-static-md/lib/pthreadVCE3.lib: Release,Static
G:/vcpkg.2020.12.25/packages/pthreads_x64-windows-static-md/lib/pthreadVSE3.lib: Release,Static

To inspect the lib files, use:
dumpbin.exe /directives mylibfile.lib
Found 2 error(s). Please correct the portfile:
G:\vcpkg.2020.12.25\ports\pthreads\portfile.cmake
-- Performing post-build validation done
Error: Building package pthreads:x64-windows-static-md failed with: POST_BUILD_CHECKS_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: pthreads:x64-windows-static-md
Vcpkg version: 2020.11.12-nohash

Additionally, attach any relevant sections from the log files above.

Additional context

The error seems to be because of pthreads.
Even removing pthreads as a dependency from fontconfig (which is a dependency for osg) does not solve the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:community-tripletA PR or issue related to community triplets not officially validated by the vcpkg team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions