setup-php icon indicating copy to clipboard operation
setup-php copied to clipboard

php: symbol lookup error: php: undefined symbol: crypto_core_ristretto255_scalar_invert

Open serzhik opened this issue 1 year ago • 1 comments

Describe the bug I got error php: symbol lookup error: php: undefined symbol: crypto_core_ristretto255_scalar_invert on Setup Tools. The same configuration worked with PHP 8.3.6 a week ago. Now I see an error message and PHP is 8.3.8

Version

  • [x] I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • [x] v2
  • [ ] v1

Runners

  • [ ] GitHub Hosted
  • [x] Self Hosted

Operating systems

PHP versions 8.3 (Issue with 8.3.8. It worked with 8.3.6)

To Reproduce Configuration:

jobs:
  deploy:
    runs-on: self-hosted
    steps:
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.3'

Expected behavior No issues

Screenshots/Logs image

Additional context It worked with PHP 8.3.6 but does not work with PHP 8.3.8

Are you willing to submit a PR? No

serzhik avatar Aug 22 '24 09:08 serzhik

@serzhik

Please try running it again with update: true input, and runner: self-hosted env if you are using a self-hosted runner. It should install PHP 8.3.10 now.

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.3'
    update:true
  env:
    runner: self-hosted

if this is not fixed, make sure the libsodium package is the latest one.

sudo apt-get update
sudo apt-get install libsodium -y

shivammathur avatar Aug 22 '24 13:08 shivammathur

Please reopen if you are still facing the issue.

shivammathur avatar Aug 31 '24 05:08 shivammathur

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.3'
          coverage: none
        env:
          update: true

It still uses PHP 8.3.8 with the same issue

serzhik avatar Sep 06 '24 11:09 serzhik

Please specify the runner env and set it to self-hosted.

shivammathur avatar Sep 06 '24 11:09 shivammathur

Issue still exists :(

Configuration:

name: magento-deploy

on:
  push:
    branches:
      - develop

jobs:
  deploy:
    runs-on: self-hosted
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          node-version: 18

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.3'
        env:
          runner: self-hosted
          fail-fast: true
          update: true

Result: image

serzhik avatar Sep 06 '24 12:09 serzhik

Please provide the output of this.

sudo apt-get update
sudo apt-cache policy libsodium
sudo apt-get install libsodium -y

shivammathur avatar Sep 06 '24 12:09 shivammathur

image

serzhik avatar Sep 06 '24 17:09 serzhik

The OS version you are using Debian 10 (Buster) is no longer supported. Please try running the workflow on a new version of Debian.

https://github.com/oerdnj/deb.sury.org/issues/2098

shivammathur avatar Sep 07 '24 00:09 shivammathur