|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 + 44 = ?
Subscribe to this entry?

 [2017-01-09 18:04 UTC] kyle dot fazzari at canonical dot com
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-11 04:49 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2017-01-11 04:49 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.
 [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]
The build failure has already been resolved by, 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: Tue Mar 05 08:01:28 2024 UTC