Closed mlocati closed 3 years ago
Hi @mlocati thanks for the valuable feedback! Did you try building the extension as a super user?
Yes:
$ docker run --rm -it php:7.2-cli-alpine whoami
root
Ok, what version are you attempting to compile? I wonder if this https://github.com/RubixML/Tensor/pull/11 issue is related in any way.
Also, just a heads up version 2.1.3 on PECL is defunct (the PECL service is very old and its limited set of features offers no way of deleting, updating, hiding, or otherwise disabling a defunct release) so you'll need the 2.1.03 if you want the actual 2.1.3 package. Although by now, 2.1.4 is currently out.
Thanks, any additional information would be great
pecl install tensor
uses the latest stable version: 2.1.4
Hmmm well, I'm out of ideas for the time being.
Thank you for the reconnaissance info @mlocati - we'll continue to monitor this to see if something similar comes up with other users, distributions of linux and/or containerized setups.
Join us in our Telegram channel if you'd like https://t.me/RubixML
This error also occurs on debian-based docker images:
docker run --rm -it php:7.2-cli bash
apt-get update
apt-get install -y liblapack-dev libopenblas-dev
pecl install tensor
The output is almost the same: the compilation still fails after ext/tensor/decompositions/cholesky.zep.c
; we only have a slightly different error message:
/tmp/pear/temp/.../tensor-2.1.4/libtool: line 1283: can't create tensor/decompositions/cholesky.loT: nonexistent directory
/tmp/pear/temp/.../tensor-2.1.4/libtool: line 1283: tensor/decompositions/cholesky.loT: No such file or directory
(the reason for this difference may be a different version of gcc)
So, I'm going to update the subject of this issue to a more generic one.
I tried to rebuild ext
with the most recent version of zephir, and it seems that the new code should work:
PHP_ADD_BUILD_DIR([$ext_builddir/kernel/])
- PHP_ADD_BUILD_DIR([$ext_builddir/tensor/])
+ for dir in "tensor tensor/decompositions tensor/reductions"; do
+ PHP_ADD_BUILD_DIR([$ext_builddir/$dir])
+ done
PHP_SUBST(TENSOR_SHARED_LIBADD)
So, instead of patching the generated config.m4
file, we could simply rebuild ext
with the most recent zephir version...
I can't install tensor in a PHP 7.2 Alpine image with pecl.
Steps to reproduce inside the docker image (
docker run --rm -it php:7.2-cli-alpine sh
)Here's the last few lines of the output: