Giter Club home page Giter Club logo

Comments (7)

mvdan avatar mvdan commented on June 12, 2024 3

^ That's probably because Go defaults to CGO_ENABLED=0 when cross-building, and CGO_ENABLED=1 when building for the host platform, and I guess that the binaries were built on linux/amd64. The solution is often to consistently set CGO_ENABLED=0 when building release binaries.

from gh-actions-cache.

jooola avatar jooola commented on June 12, 2024 1

After uninstalling and pinning the version to 1.0.1, the extension is indeed working.

from gh-actions-cache.

wjdix avatar wjdix commented on June 12, 2024 1

Given that a fix for this has been committed into main, is there an update to be shared on when the next version, including the fix, might be released?

from gh-actions-cache.

t-dedah avatar t-dedah commented on June 12, 2024

Thank you @jooola for bringing this up. As per our preliminary investigation, we suspect the issue is happening as the package was compiled using ubuntu-22 which uses GLIBC_2.32 whereas Debian is still on GLIBC_2.31.

Will you be able to confirm if 1.0.1 for the extension is working fine on Debian bullseye?

from gh-actions-cache.

t-dedah avatar t-dedah commented on June 12, 2024

Thanks for the confirmation @jooola we will need some more time to finalize changes.

from gh-actions-cache.

myitcv avatar myitcv commented on June 12, 2024

The problem here appears to be that the linux/amd64 version is built with CGO_ENABLED=1, whereas for linux/arm64 (at least) it is not.

$ cd $(mktemp -d)
$ curl -sLO https://github.com/actions/gh-actions-cache/releases/download/v1.0.3/linux-arm64
$ curl -sLO https://github.com/actions/gh-actions-cache/releases/download/v1.0.3/linux-amd64
$ go version -m ./linux-amd64 | grep CGO_ENABLED
        build   CGO_ENABLED=1
$ go version -m ./linux-arm64 | grep CGO_ENABLED
        build   CGO_ENABLED=0

Is there a reason the linux/amd64 version is not built with CGO_ENABLED=0?

from gh-actions-cache.

proppy avatar proppy commented on June 12, 2024

Something similar also seems to be happening un ubuntu20.04 when using larger dedicated runners:

Current runner version: '2.303.0'
Runner name: 'ubuntu-[2](https://github.com/google/xls/actions/runs/4634539949/jobs/8200889388#step:1:2)0.04-64core_1eb[3](https://github.com/google/xls/actions/runs/4634539949/jobs/8200889388#step:1:3)2a3c1924'
Runner group name: 'large-runner'
Machine name: 'runner'

See the error message below:

/home/runner/.local/share/gh/extensions/gh-actions-cache/gh-actions-cache: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/runner/.local/share/gh/extensions/gh-actions-cache/gh-actions-cache)
/home/runner/.local/share/gh/extensions/gh-actions-cache/gh-actions-cache: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/runner/.local/share/gh/extensions/gh-actions-cache/gh-actions-cache)

from gh-actions-cache.

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.