Coder Social home page Coder Social logo

vcpkg failing on macOS about run-vcpkg HOT 11 CLOSED

lukka avatar lukka commented on June 4, 2024
vcpkg failing on macOS

from run-vcpkg.

Comments (11)

lukka avatar lukka commented on June 4, 2024 1

@vadi2 I took a quick look, but i think it is a good lead: the cache has been created in the past with a different version of the macOS GitHub environments, and the vcpkg executable is failing its execution on some missing binary dependency, i.e. dyld: Symbol not found: ___emutls_v._ZSt11__once_call.

The environment look brand new released on 10th Jan 2021.

Environment: macos-10.15
Version: 20210110.1
Included Software: https://github.com/actions/virtual-environments/blob/macOS-10.15/20210110.1/images/macos/macos-10.15-Readme.md

The solution is to change the key, so that the old cache is not used anymore, and vcpkg's executable is being rebuilt.

I think the action should include by default the version of the image, but I am not aware of any way to fetch it. We can keep this ticket open until i found a good solution to this problem.

from run-vcpkg.

lukka avatar lukka commented on June 4, 2024 1

Posting here below the link where I asked how to fetch the required data to append to the key in order to tie the cache to a given environment version. Probably the environment and the version would be good candidates (e.g Environment: macos-10.15 Version: 20201212.1), as I expect them to change on updates.

https://github.community/t/fetching-runner-and-environment-data-while-an-action-is-executing/155663

from run-vcpkg.

vadi2 avatar vadi2 commented on June 4, 2024

Yep OK.

from run-vcpkg.

woodruffw avatar woodruffw commented on June 4, 2024

Thanks for keeping this open! I also experienced this on one of my builds; will report back when it's fixed.

Edit: Confirmed that a cache refresh fixes it for me.

from run-vcpkg.

vadi2 avatar vadi2 commented on June 4, 2024

After changing the cache key, I am still running into the issue in newer PRs, this time with a different message:

  dyld: Symbol not found: __ZSt14__once_functor

I know the environments are deployed step by step (that's why there's the % meter on https://github.com/actions/virtual-environments), so either perhaps it was updated once again, breaking our builds, or an older build managed to save the cache.

from run-vcpkg.

lukka avatar lukka commented on June 4, 2024

@vadi2 could you provide a link to the failed workflow execution?

from run-vcpkg.

vadi2 avatar vadi2 commented on June 4, 2024

https://github.com/Mudlet/Mudlet/runs/1713255489?check_suite_focus=true

from run-vcpkg.

lukka avatar lukka commented on June 4, 2024

@vadi2 In this run this key has been hit:

submodGitId=4b222f8d2653603b74fa5086cf0b02a1963d3911-args=262756201-os=-931134771-appendedKey=-820573572

Could we trace back where that key has been first created? i.e. in which run?

And yes, the macOS environment is not the very last one (released in Jan 2021), where clang has been bumped from version 11 to version 12, and here I assume we are hitting a ABI compatibility problem.

from run-vcpkg.

vadi2 avatar vadi2 commented on June 4, 2024

Could we trace back where that key has been first created? i.e. in which run?

That would be hard because Github wipes the cache very often, so even if we keep the vcpkg submodule ID the same, it gets rebuilt every now and then anyway - and so it require a lot of clicking around to find.

from run-vcpkg.

vadi2 avatar vadi2 commented on June 4, 2024

This is becoming a real issue because the action breaks very frequently now due to this and the only way to fix it is to change the cache key - not something everyone knows how to do or can (or should be). Could a fallback be added that if running vcpkg fails, it is rebuilt?

from run-vcpkg.

lukka avatar lukka commented on June 4, 2024

@vadi2 let me know the changes applied to run-vcpkg@v6 fix this issue for you. Feel free to reopen this ticket if it is not the case (the ticket has been closed automatically upon PR completion).

from run-vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.