Skip to content

Installation on Alpine and php 8.2+ #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Kabingeran opened this issue Apr 4, 2025 · 4 comments
Open

Installation on Alpine and php 8.2+ #50

Kabingeran opened this issue Apr 4, 2025 · 4 comments

Comments

@Kabingeran
Copy link

Kabingeran commented Apr 4, 2025

Hi! Does not install on Alpine with php 8.2+ via pecl. Has anyone tried to install it?

@andrewdalpino
Copy link
Member

Hi @Kabingeran I don't think it compiles in Alpine. We had an Alpine environment set up in our CI pipeline and it failed to compile. Since we've shifted our focus away from Tensor and to contributing to NumPower (https://github.com/RubixML/numpower) I haven't had much of a reason to look into the issue further than that.

Here's the GitHub Actions logs for the last time we tried to run the compile workflow on Alpine with PHP 8.2

https://github.com/RubixML/Tensor/actions/runs/14185339324/job/40287690335

Is there something that stands out to you in those logs? I'd be happy to work with you to fix it.

@Kabingeran
Copy link
Author

Kabingeran commented Apr 10, 2025

Please add Alpine. Otherwise, your package will not make it into most builds. It looks like you are passing the wrong argument type?

@Kabingeran Kabingeran changed the title Installation on Alpine 3.21 Installation on php 8.2+ Apr 10, 2025
@andrewdalpino
Copy link
Member

andrewdalpino commented Apr 11, 2025

/tmp/pear/temp/tensor/ext/kernel/require.c is part of Zephir, a third-party dependency we use to compile to a PHP extension. Perhaps this is an issue for them?

https://github.com/zephir-lang/zephir

The extension compiles fine on Ubuntu with PHP 8.2 and 8.3, not sure why you changed the title of this issue.

https://github.com/RubixML/Tensor/actions/runs/14185879466

@Kabingeran Kabingeran changed the title Installation on php 8.2+ Installation on Alpine and php 8.2+ Apr 13, 2025
@Kabingeran
Copy link
Author

Why you use Zephir? This is an unnecessary dependence that brings problems. If this bug is not your responsibility, then who will work on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants