|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70015 Compilation failure on aarch64 when --enable-debug
Submitted: 2015-07-08 02:23 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: lrq2001 at 163 dot com Assigned:
Status: Open Package: Compile Failure
PHP Version: 5.5.26 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lrq2001 at 163 dot com
New email:
PHP Version: OS:


 [2015-07-08 02:23 UTC] lrq2001 at 163 dot com
1. -O0 of gcc will be used to compile the math.c when enable debug,
and lead to the below error

aarch64-wrs-linux-gcc --sysroot=/buildarea1/lirq/wrlinux-8.0/a64/bitbake_build/tmp/sysroots/qemuarm64 -DPHP_ATOM_INC -D_REENTRANT  -pipe -g -D_GNU_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -O0 -Wall -DZTS -c /buildarea1/lirq/wrlinux-8.0/a64/bitbake_build/tmp/work/aarch64-wrs-linux/php/5.5.26-r0/php-5.5.26/ext/standard/math.c  -fPIC -DPIC -o ext/standard/.libs/math.o

| {standard input}: Assembler messages:
| {standard input}:2977: Error: operand 2 should be an integer register -- `mul x1,[x29,200],[x29,192]'
| {standard input}:2978: Error: operand 2 should be an integer register -- `smulh x0,[x29,200],[x29,192]'
| {standard input}:3042: Error: operand 2 should be an integer register -- `mul x1,[x29,192],[x29,192]'
| {standard input}:3043: Error: operand 2 should be an integer register -- `smulh x0,[x29,192],[x29,192]'

2. if -O2 of gcc is used, not this building failure. 

Expected result:
pass the building on aarch64 when enable debug


fix-asm-constraints-in-aarch64-multiply-macro (last revision 2016-04-25 10:15 UTC) by schwab at linux-m68k dot org)
X-to-r-to-avoid-macro-expansion-error.patch (last revision 2015-07-10 06:09 UTC) by rongqing dot li at windriver dot com)

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Jul 17 00:01:41 2018 UTC