php.net |  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: 2018-08-21 22:15 UTC
Votes:1
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: petk (profile)
Status: Closed 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lrq2001 at 163 dot com
New email:
PHP Version: OS:

 

 [2015-07-08 02:23 UTC] lrq2001 at 163 dot com
Description:
------------
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


Patches

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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-21 22:15 UTC] petk@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: petk
 [2018-08-21 22:15 UTC] petk@php.net
Hello, this bug has been fixed via http://git.php.net/?p=php-src.git;a=commit;h=8c8679207ae5ada8751288e75b78c928a4d34d1d and has been available in PHP 7.0 and above.

Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC