Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119182 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15793 invoked from network); 17 Dec 2022 19:51:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Dec 2022 19:51:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8B395180504 for ; Sat, 17 Dec 2022 11:51:49 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 17 Dec 2022 11:51:49 -0800 (PST) Received: by mail-ed1-f54.google.com with SMTP id v8so7977547edi.3 for ; Sat, 17 Dec 2022 11:51:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RvM+J5HCfZCm25lLA9TQMUiEuOwZpXiP7rZmY9b4Q0I=; b=jE0htv4ZzbOsE7o426aLhkZOc/SlBD7x0RrcGUnsPgs3qQzV9CHxQnkLR3V4noHV0Z Ey1HSxokBOk1we3z0m9L4zawfQYLKMHJuvVDITFjh/9li8dmJTK65CREYAZKID4uljfb v4ygELoBQn/r685jd8Z7ZUb8tnxGuSEcKz/G2I3cNogmW2KhahR1ZI7AFZnF62RFClQ9 b8Tl0VdZDmi7GRSZ8g/CjJHGM0HVick2sSzsXjheAFaAXriBbImRP5AHP+wHxmbwetNf FpHMCc9rK54p67QZT7nGhg9Xie+cpPLUGiKjqVMA4SHLpe74W2otY9kbpQo99WozRXmO ybZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RvM+J5HCfZCm25lLA9TQMUiEuOwZpXiP7rZmY9b4Q0I=; b=UWYVvOANniFqniJgMpBFdPfRQzP8qrQd68Ip13+IGaPVwSzF5CVKwGWNn7ZW2UL7aH Qj8gI0t6S7JaZrhcyd3+D7Dd1D4PMn8Wn0/FGIDP8qfBwhwgxxOYVl/6ERJcOMnjkdRm lN74SmUbyhPLRmFsBjWhshd2SGbmH2dKyctYLnlRG1u5ZJv9oUJhD6uaIY5cH1/kEOJX WbGHUQf/VD0ts38lKY+UVKiilN5l+QP0JTIJiTJ5A0mu9xjfqdaAPR4Fot2Oci2wqW4y oQPXlrvdnoOmmHzpAx5ZKLAAekATbGOv/ITxf4vkOX7JDLhq6qMoZWDWJempJ+rjiyq0 N6Tg== X-Gm-Message-State: ANoB5pkQR1FMJMjLyoykJtyD8mzAmsviFvguTImhKDNxeQdG1hCzgcHl 1Zzf73AnTCI8RhmVSw4lhlCGbv+pMyE5ph3k9Ek= X-Google-Smtp-Source: AA0mqf7X1WJ9BLF4I8V//1uetKST2XuSLqpHZn62/NI+vALMaAVWFJe8dut6DHv7t59sPMi5hY92pZ58WdHh4+ZeiEM= X-Received: by 2002:a05:6402:146:b0:46a:c132:3e23 with SMTP id s6-20020a056402014600b0046ac1323e23mr34375722edu.133.1671306707791; Sat, 17 Dec 2022 11:51:47 -0800 (PST) MIME-Version: 1.0 References: <93d820f0-aa43-3068-ce0e-0211993b20c7@gmx.de> In-Reply-To: Date: Sat, 17 Dec 2022 11:51:36 -0800 Message-ID: To: "Christoph M. Becker" Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a0f33505f00b6a64" Subject: Re: PHP support for matrix operations - BLAS, LAPACK. From: zardozrocks@gmail.com (j adams) --000000000000a0f33505f00b6a64 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Christopher: I have carefully followed the instructions under 'Manually compiling the extension' in your first link[1]. When I attempted `make`, it failed, ending with the following errors. I'll be filing an issue. /home/jaith/biz/machine-learning/tensor/Tensor/ext/kernel/main.c: In function =E2=80=98zephir_function_exists=E2=80=99: /home/jaith/biz/machine-learning/tensor/Tensor/ext/kernel/main.c:285:101: warning: comparison between pointer and integer 285 | if (zend_hash_str_exists(CG(function_table), Z_STRVAL_P(function_name), Z_STRLEN_P(function_name)) !=3D NULL) { | ^~ /home/jaith/biz/machine-learning/tensor/Tensor/ext/kernel/main.c: In function =E2=80=98zephir_function_exists_ex=E2=80=99: /home/jaith/biz/machine-learning/tensor/Tensor/ext/kernel/main.c:301:76: warning: comparison between pointer and integer 301 | if (zend_hash_str_exists(CG(function_table), function_name, function_len) !=3D NULL) { | ^~ /home/jaith/biz/machine-learning/tensor/Tensor/ext/kernel/main.c: In function =E2=80=98zephir_get_arg=E2=80=99: /home/jaith/biz/machine-learning/tensor/Tensor/ext/kernel/main.c:571:9: error: too many arguments to function =E2=80=98zend_forbid_dynamic_call=E2= =80=99 571 | if (zend_forbid_dynamic_call("func_get_arg()") =3D=3D FAILURE) = { | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/20220829/main/php.h:35, from /home/jaith/biz/machine-learning/tensor/Tensor/ext/kernel/main.c:16: /usr/include/php/20220829/Zend/zend_API.h:782:39: note: declared here 782 | static zend_always_inline zend_result zend_forbid_dynamic_call(void= ) | ^~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:213: kernel/main.lo] Error 1 [1] On Tue, Dec 6, 2022 at 6:29 AM Christoph M. Becker wrote: > On 05.12.2022 at 20:05, j adams wrote: > > > Christoph, thanks for this tip. > > > > Unfortunately, pecl refuses to install Tensor either on my Macbook Pro = or > > on my Ubuntu 20 workstation. Both machines complain about being unable = to > > find cblas.h. I ran 'sudo pecl install tensor' which has quite a bit of > > output. The problem seems to happen when it attempts to run make: > > > > running: make > > /bin/bash /tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/libtool > > --mode=3Dcompile cc -I. -I/tmp/pear/temp/tensor/ext > > -I/tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/include > > -I/tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/main > > -I/tmp/pear/temp/tensor/ext -I/usr/include/php/20210902 > > -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM > > -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext > > -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -O3 > > -ffast-math -DZEND_COMPILE_DL_EXT=3D1 -c /tmp/pear/temp/tensor/ext/tens= or.c > > -o tensor.lo -MMD -MF tensor.dep -MT tensor.lo > > libtool: compile: cc -I. -I/tmp/pear/temp/tensor/ext > > -I/tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/include > > -I/tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/main > > -I/tmp/pear/temp/tensor/ext -I/usr/include/php/20210902 > > -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM > > -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext > > -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -O3 > > -ffast-math -DZEND_COMPILE_DL_EXT=3D1 -c /tmp/pear/temp/tensor/ext/tens= or.c > > -MMD -MF tensor.dep -MT tensor.lo -fPIC -DPIC -o .libs/tensor.o > > /tmp/pear/temp/tensor/ext/tensor.c:25:10: fatal error: cblas.h: No such > > file or directory > > 25 | #include "cblas.h" > > | ^~~~~~~~~ > > compilation terminated. > > make: *** [Makefile:208: tensor.lo] Error 1 > > ERROR: `make' failed > > I think you need to install the OpenBLAS dev package[1]. > > If in doubt, file an issue at the tensor bug tracker[2]. > > [1] > [2] > > -- > Christoph M. Becker > --000000000000a0f33505f00b6a64--