php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73898 arm64 build failure
Submitted: 2017-01-09 18:04 UTC Modified: 2017-01-11 23:50 UTC
From: kyle dot fazzari at canonical dot com Assigned: krakjoe (profile)
Status: Closed Package: opcache
PHP Version: 7.1.0 OS: Ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kyle dot fazzari at canonical dot com
New email:
PHP Version: OS:

 

 [2017-01-09 18:04 UTC] kyle dot fazzari at canonical dot com
Description:
------------
PHP 7.1's opcache doesn't seem to build on arm64. Just using a simple `./configure && make`.

Expected result:
----------------
A successful build.

Actual result:
--------------
$ make
/bin/bash /home/kyrofa/php-7.1.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/home/kyrofa/php-7.1.0/ext/opcache/ -DPHP_ATOM_INC -I/home/kyrofa/php-7.1.0/include -I/home/kyrofa/php-7.1.0/main -I/home/kyrofa/php-7.1.0 -I/home/kyrofa/php-7.1.0/ext/date/lib -I/usr/include/libxml2 -I/home/kyrofa/php-7.1.0/ext/sqlite3/libsqlite -I/home/kyrofa/php-7.1.0/TSRM -I/home/kyrofa/php-7.1.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS    -c /home/kyrofa/php-7.1.0/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo 
/bin/bash /home/kyrofa/php-7.1.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/home/kyrofa/php-7.1.0/ext/opcache/ -DPHP_ATOM_INC -I/home/kyrofa/php-7.1.0/include -I/home/kyrofa/php-7.1.0/main -I/home/kyrofa/php-7.1.0 -I/home/kyrofa/php-7.1.0/ext/date/lib -I/usr/include/libxml2 -I/home/kyrofa/php-7.1.0/ext/sqlite3/libsqlite -I/home/kyrofa/php-7.1.0/TSRM -I/home/kyrofa/php-7.1.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS    -c /home/kyrofa/php-7.1.0/ext/opcache/zend_accelerator_blacklist.c -o ext/opcache/zend_accelerator_blacklist.lo 
/bin/bash /home/kyrofa/php-7.1.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/home/kyrofa/php-7.1.0/ext/opcache/ -DPHP_ATOM_INC -I/home/kyrofa/php-7.1.0/include -I/home/kyrofa/php-7.1.0/main -I/home/kyrofa/php-7.1.0 -I/home/kyrofa/php-7.1.0/ext/date/lib -I/usr/include/libxml2 -I/home/kyrofa/php-7.1.0/ext/sqlite3/libsqlite -I/home/kyrofa/php-7.1.0/TSRM -I/home/kyrofa/php-7.1.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS    -c /home/kyrofa/php-7.1.0/ext/opcache/zend_accelerator_debug.c -o ext/opcache/zend_accelerator_debug.lo 
/bin/bash /home/kyrofa/php-7.1.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/home/kyrofa/php-7.1.0/ext/opcache/ -DPHP_ATOM_INC -I/home/kyrofa/php-7.1.0/include -I/home/kyrofa/php-7.1.0/main -I/home/kyrofa/php-7.1.0 -I/home/kyrofa/php-7.1.0/ext/date/lib -I/usr/include/libxml2 -I/home/kyrofa/php-7.1.0/ext/sqlite3/libsqlite -I/home/kyrofa/php-7.1.0/TSRM -I/home/kyrofa/php-7.1.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS    -c /home/kyrofa/php-7.1.0/ext/opcache/zend_accelerator_hash.c -o ext/opcache/zend_accelerator_hash.lo 
/bin/bash /home/kyrofa/php-7.1.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/home/kyrofa/php-7.1.0/ext/opcache/ -DPHP_ATOM_INC -I/home/kyrofa/php-7.1.0/include -I/home/kyrofa/php-7.1.0/main -I/home/kyrofa/php-7.1.0 -I/home/kyrofa/php-7.1.0/ext/date/lib -I/usr/include/libxml2 -I/home/kyrofa/php-7.1.0/ext/sqlite3/libsqlite -I/home/kyrofa/php-7.1.0/TSRM -I/home/kyrofa/php-7.1.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS    -c /home/kyrofa/php-7.1.0/ext/opcache/zend_accelerator_module.c -o ext/opcache/zend_accelerator_module.lo 
/tmp/cc9RGrKE.s: Assembler messages:
/tmp/cc9RGrKE.s:946: Error: operand 3 should be an integer register -- `mul x1,x1,1048576'
/tmp/cc9RGrKE.s:947: Error: operand 3 should be an integer register -- `smulh x0,x1,1048576'
Makefile:815: recipe for target 'ext/opcache/zend_accelerator_module.lo' failed
make: *** [ext/opcache/zend_accelerator_module.lo] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-11 04:49 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2017-01-11 04:49 UTC] krakjoe@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

https://github.com/php/php-src/commit/8c8679207ae5ada8751288e75b78c928a4d34d1d
 [2017-01-11 17:39 UTC] kyle dot fazzari at canonical dot com
I can confirm that master builds on arm64, thank you. Note that this bug also applies to 7.0.14, which means this build failure is standing in the way of some security updates (the latest one that works is 7.0.12). Can we get a patch release of either 7.0 or 7.1 with this update?
 [2017-01-11 23:50 UTC] nikic@php.net
The build failure has already been resolved by https://github.com/php/php-src/commit/003346c450b58a07af9e0061bffb14c287c39be8, which is in 7.0+. It should be part of the current release candidates.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC