Comments (11)
@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.
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.
Yep OK.
from run-vcpkg.
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.
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.
@vadi2 could you provide a link to the failed workflow execution?
from run-vcpkg.
https://github.com/Mudlet/Mudlet/runs/1713255489?check_suite_focus=true
from run-vcpkg.
@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.
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.
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.
@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)
- macos build fail after macos GH hosted runner updates on 16 Feb 2023 - Root cause: missing pkg-config HOT 1
- Saving duplicate cache HOT 2
- Use a separate cache entry for OS independent files HOT 10
- run-vcpkg could turn on/off the cache of vcpkg according to platform (e.g. doNotCache:false on ARM)
- v11 has been published onto the v10 branch HOT 2
- run-vcpkg@v11 requires manually setting environment variables for caching to work HOT 6
- run-vcpkg@v11 does not support prepended/appendedCacheKey HOT 2
- run-vcpkg failing with "dyld: Symbol not found: __ZNKSt3_V214error_category10_M_messageB5cxx11Ei" HOT 4
- One package not cached HOT 6
- About Static Linking HOT 4
- some errors when install package HOT 1
- Running the action in a container fails. HOT 3
- Use same cache for all builds? HOT 2
- default vcpkg install directory HOT 4
- Error: EACCES: permission denied, mkdir when running with act on full HOT 4
- 'Could not find toolchain file' even though path seems OK HOT 5
- respect VCPKG_FORCE_SYSTEM_BINARIES HOT 8
- Unnecessary double compilation when using VCPKG_DEFAULT_TRIPLET HOT 4
- vcpkg.json link dead HOT 1
- Update v7 to Node.js 20 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from run-vcpkg.