Github messages for voidlinux
 help / color / mirror / Atom feed
From: newbluemoon <newbluemoon@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: php-mysql do not work on AARCH64
Date: Fri, 15 May 2020 22:55:39 +0200	[thread overview]
Message-ID: <20200515205539._irHUmKELq6nUJ1v9LlnSouwQwuQOKO04JN3Idf0MWE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21982@inbox.vuxu.org>

[-- 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.

  parent reply	other threads:[~2020-05-15 20:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15  9:02 [ISSUE] " 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200515205539._irHUmKELq6nUJ1v9LlnSouwQwuQOKO04JN3Idf0MWE@z \
    --to=newbluemoon@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).