Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] php-mysql do not work on AARCH64
@ 2020-05-15  9:02 bda65
  2020-05-15  9:54 ` Anachron
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: bda65 @ 2020-05-15  9:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]

New issue by bda65 on void-packages repository

https://github.com/void-linux/void-packages/issues/21982

Description:
### System
Raspberry Pi 3B+
* xuname:  Void 4.19.81_1 aarch64 Unknown uptodate rF

* package:  
php-7.4.6_1
php-mysql-7.4.6_1

### Expected behavior
mysqli and pdo_mysql extension work.

### Actual behavior
mysqli and pdo_mysql not seen:
```
php -m
[PHP Modules]
Core
ctype
date
dba
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqlnd
pcntl
pcre
PDO
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

[Zend Modules]

```
### Steps to reproduce the behavior
Install php and php-mysql.
Uncomment extension=mysqli and extension=pdo_mysql in /etc/php/php.ini

mysql extension work on my x86_64 PC:
Void 5.6.11_1 x86_64 GenuineIntel notuptodate rrFFF
```
php -m
[PHP Modules]
Core
ctype
date
dba
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqli
mysqlnd
pcntl
pcre
PDO
pdo_mysql
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
```

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
@ 2020-05-15  9:54 ` Anachron
  2020-05-15 16:44 ` jnbr
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Anachron @ 2020-05-15  9:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629145113

Comment:
Can confirm on a `RPI 3 B+`.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
  2020-05-15  9:54 ` Anachron
@ 2020-05-15 16:44 ` jnbr
  2020-05-15 20:04 ` bda65
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jnbr @ 2020-05-15 16:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

New comment by jnbr on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629363417

Comment:
similar to #21852, it looks like cross-built php can not load modules

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
  2020-05-15  9:54 ` Anachron
  2020-05-15 16:44 ` jnbr
@ 2020-05-15 20:04 ` bda65
  2020-05-15 20:32 ` newbluemoon
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bda65 @ 2020-05-15 20:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

New comment by bda65 on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629455932

Comment:
You're right.
I've recompiled php with xbps-src directly on the rpi and installed only php package (php-mysql come from official repo) and it work well.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (2 preceding siblings ...)
  2020-05-15 20:04 ` bda65
@ 2020-05-15 20:32 ` newbluemoon
  2020-05-15 20:55 ` newbluemoon
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: newbluemoon @ 2020-05-15 20:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629468288

Comment:
But the problem seems to only exist on glibc systems, see my comment in the [other issue](https://github.com/void-linux/void-packages/issues/21852#issuecomment-629429660).

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (3 preceding siblings ...)
  2020-05-15 20:32 ` newbluemoon
@ 2020-05-15 20:55 ` newbluemoon
  2020-05-15 21:08 ` jnbr
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: newbluemoon @ 2020-05-15 20:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4082 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629478749

Comment:
Running
`% strace -e trace=open php -r 'print_r(get_loaded_extensions());'`
on armv7l yields
```
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x769a5380} ---
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x769a5368} ---
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x769a5370} ---
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x769a5378} ---
Array
(
    [0] => Core
    [1] => date
    [2] => libxml
    [3] => pcre
    [4] => zlib
    [5] => ctype
    [6] => dba
    [7] => dom
    [8] => fileinfo
    [9] => filter
    [10] => hash
    [11] => json
    [12] => mbstring
    [13] => pcntl
    [14] => SPL
    [15] => PDO
    [16] => readline
    [17] => Reflection
    [18] => session
    [19] => SimpleXML
    [20] => standard
    [21] => tokenizer
    [22] => xml
    [23] => xmlreader
    [24] => xmlwriter
    [25] => mysqlnd
)
+++ exited with 0 +++
```

The same command on armv7l-musl:
```
open("/etc/ld-musl-armhf.path", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libreadline.so.8", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libdb-5.3.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libgdbm.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libxml2.so.2", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libz.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libonig.so.5", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libcrypto.so.45", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libncursesw.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libicui18n.so.64", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libicuuc.so.64", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libicudata.so.64", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/liblzma.so.5", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libstdc++.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libgcc_s.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x769fb000} ---
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x769fafe8} ---
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x769faff0} ---
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x769faff8} ---
open("/etc/localtime", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC) = 3
open("/usr/bin/php-cli.ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/etc/php/php-cli.ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/bin/php.ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/etc/php/php.ini", O_RDONLY|O_LARGEFILE) = 3
open("/etc/php/conf.d", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/lib/php/modules/mysqli", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/php/modules/mysqli.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/usr/lib/php/modules/sqlite3", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/php/modules/sqlite3.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
open("/lib/libsqlite3.so.0", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
Array
(
    [0] => Core
    [1] => date
    [2] => libxml
    [3] => pcre
    [4] => zlib
    [5] => ctype
    [6] => dba
    [7] => dom
    [8] => fileinfo
    [9] => filter
    [10] => hash
    [11] => json
    [12] => mbstring
    [13] => pcntl
    [14] => SPL
    [15] => PDO
    [16] => readline
    [17] => Reflection
    [18] => session
    [19] => SimpleXML
    [20] => standard
    [21] => tokenizer
    [22] => xml
    [23] => xmlreader
    [24] => xmlwriter
    [25] => mysqlnd
    [26] => mysqli
    [27] => sqlite3
)
+++ exited with 0 +++
```

Where does the `ILL_ILLOPC` come from? It doesn’t show up in native builds. Musl cross-builds seems to be able to work around it, glibc doesn’t.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (4 preceding siblings ...)
  2020-05-15 20:55 ` newbluemoon
@ 2020-05-15 21:08 ` jnbr
  2020-05-15 21:41 ` jnbr
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jnbr @ 2020-05-15 21:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 574 bytes --]

New comment by jnbr on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629485700

Comment:
The `ILL_ILLOPC` should be harmless, this is just libcrypto probing which instructions are available:
```
Program received signal SIGILL, Illegal instruction.
0xb6a2d380 in _armv8_pmull_probe () at armv4cpuid.S:91
91	armv4cpuid.S: No such file or directory.
(gdb) bt
#0  0xb6a2d380 in _armv8_pmull_probe () at armv4cpuid.S:91
#1  0xb6a29534 in OPENSSL_cpuid_setup () at armcap.c:69
```
Not sure why it doesn't appear on musl.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (5 preceding siblings ...)
  2020-05-15 21:08 ` jnbr
@ 2020-05-15 21:41 ` jnbr
  2020-05-15 21:56 ` jnbr
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jnbr @ 2020-05-15 21:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

New comment by jnbr on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629506104

Comment:
On cross glibc, the configure script does not find `dlopen` and builds without dynamic library support.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (6 preceding siblings ...)
  2020-05-15 21:41 ` jnbr
@ 2020-05-15 21:56 ` jnbr
  2020-05-16 19:57 ` newbluemoon
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jnbr @ 2020-05-15 21:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

New comment by jnbr on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629506104

Comment:
~On cross glibc, the configure script does not find `dlopen` and builds without dynamic library support.~

Scratch that, I've read the configure log wrong.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (7 preceding siblings ...)
  2020-05-15 21:56 ` jnbr
@ 2020-05-16 19:57 ` newbluemoon
  2020-05-16 20:22 ` bda65
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: newbluemoon @ 2020-05-16 19:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629698348

Comment:
I think I found the solution, please test #22019 if it works for you.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (8 preceding siblings ...)
  2020-05-16 19:57 ` newbluemoon
@ 2020-05-16 20:22 ` bda65
  2020-05-16 20:22 ` [ISSUE] [CLOSED] " bda65
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bda65 @ 2020-05-16 20:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

New comment by bda65 on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629701162

Comment:
Yes, cross compilation work with php-mysql.
Thanks very much :)

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ISSUE] [CLOSED] php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (9 preceding siblings ...)
  2020-05-16 20:22 ` bda65
@ 2020-05-16 20:22 ` bda65
  2020-05-16 20:43 ` newbluemoon
  2020-05-16 21:26 ` jnbr
  12 siblings, 0 replies; 14+ messages in thread
From: bda65 @ 2020-05-16 20:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]

Closed issue by bda65 on void-packages repository

https://github.com/void-linux/void-packages/issues/21982

Description:
### System
Raspberry Pi 3B+
* xuname:  Void 4.19.81_1 aarch64 Unknown uptodate rF

* package:  
php-7.4.6_1
php-mysql-7.4.6_1

### Expected behavior
mysqli and pdo_mysql extension work.

### Actual behavior
mysqli and pdo_mysql not seen:
```
php -m
[PHP Modules]
Core
ctype
date
dba
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqlnd
pcntl
pcre
PDO
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

[Zend Modules]

```
### Steps to reproduce the behavior
Install php and php-mysql.
Uncomment extension=mysqli and extension=pdo_mysql in /etc/php/php.ini

mysql extension work on my x86_64 PC:
Void 5.6.11_1 x86_64 GenuineIntel notuptodate rrFFF
```
php -m
[PHP Modules]
Core
ctype
date
dba
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqli
mysqlnd
pcntl
pcre
PDO
pdo_mysql
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
```

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (10 preceding siblings ...)
  2020-05-16 20:22 ` [ISSUE] [CLOSED] " bda65
@ 2020-05-16 20:43 ` newbluemoon
  2020-05-16 21:26 ` jnbr
  12 siblings, 0 replies; 14+ messages in thread
From: newbluemoon @ 2020-05-16 20:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629703312

Comment:
You’re welcome! :)

@jnbr sorry I forgot to mention, but you were right above! :)

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: php-mysql do not work on AARCH64
  2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
                   ` (11 preceding siblings ...)
  2020-05-16 20:43 ` newbluemoon
@ 2020-05-16 21:26 ` jnbr
  12 siblings, 0 replies; 14+ messages in thread
From: jnbr @ 2020-05-16 21:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

New comment by jnbr on void-packages repository

https://github.com/void-linux/void-packages/issues/21982#issuecomment-629707855

Comment:
Yep, I've just spent way too much time trying to debug the configure script

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-05-16 21:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-15  9:02 [ISSUE] php-mysql do not work on AARCH64 bda65
2020-05-15  9:54 ` Anachron
2020-05-15 16:44 ` jnbr
2020-05-15 20:04 ` bda65
2020-05-15 20:32 ` newbluemoon
2020-05-15 20:55 ` newbluemoon
2020-05-15 21:08 ` jnbr
2020-05-15 21:41 ` jnbr
2020-05-15 21:56 ` jnbr
2020-05-16 19:57 ` newbluemoon
2020-05-16 20:22 ` bda65
2020-05-16 20:22 ` [ISSUE] [CLOSED] " bda65
2020-05-16 20:43 ` newbluemoon
2020-05-16 21:26 ` jnbr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).