|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69744 Fails to build from source on PPC64LE
Submitted: 2015-06-01 21:48 UTC Modified: 2017-10-24 08:26 UTC
Avg. Score:3.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ferseiti at linux dot vnet dot ibm dot com Assigned:
Status: Suspended Package: xhprof (PECL)
PHP Version: 5.6.9 OS: Debian Jessie
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ferseiti at linux dot vnet dot ibm dot com
New email:
PHP Version: OS:


 [2015-06-01 21:48 UTC] ferseiti at linux dot vnet dot ibm dot com
xhprof fails to build from source on ppc64le.
This has been tested on Debian Jessie.
Version is master 0bbf2a2 from

Test script:
# make

Actual result:
/bin/bash /home/xhprof/upstream/xhprof/extension/libtool --mode=compile cc  -I. -I/home/xhprof/upstream/xhprof/extension -DPHP_ATOM_INC -I/home/xhprof/upstream/xhprof/extension/include -I/home/xhprof/upstream/xhprof/extension/main -I/home/xhprof/upstream/xhprof/extension -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/xhprof/upstream/xhprof/extension/xhprof.c -o xhprof.lo 
libtool: compile:  cc -I. -I/home/xhprof/upstream/xhprof/extension -DPHP_ATOM_INC -I/home/xhprof/upstream/xhprof/extension/include -I/home/xhprof/upstream/xhprof/extension/main -I/home/xhprof/upstream/xhprof/extension -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/xhprof/upstream/xhprof/extension/xhprof.c  -fPIC -DPIC -o .libs/xhprof.o
In file included from /usr/include/php5/main/php.h:34:0,
                 from /home/xhprof/upstream/xhprof/extension/xhprof.c:27:
/usr/include/php5/main/php_config.h:2481:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE 1
/home/xhprof/upstream/xhprof/extension/xhprof.c:24:0: note: this is the location of the previous definition
 # define _GNU_SOURCE
/home/xhprof/upstream/xhprof/extension/xhprof.c: In function 'hp_mode_hier_beginfn_cb':
/home/xhprof/upstream/xhprof/extension/xhprof.c:1235:3: error: impossible register constraint in 'asm'
   asm volatile("rdtsc" : "=a" (__a), "=d" (__d));
Makefile:180: recipe for target 'xhprof.lo' failed
make: *** [xhprof.lo] Error 1


patch.txt (last revision 2017-06-16 05:48 UTC by jc at unternet dot net)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-09 19:32 UTC] cand at gmx dot com
I posted a pull request here:

(can't use the "pull request" field, as it's not under the account)
 [2015-09-25 18:13 UTC] cand at gmx dot com
Upstream has rejected the pull request, on grounds of insufficient commercial access to Power VMs.
 [2017-06-16 04:32 UTC] jc at unternet dot net

you can get free access to powerpc systems through IBM's PDP program: or alternatively, OSU:
 [2017-06-16 06:19 UTC] jc at unternet dot net
if the upstream fails to apply my patch, you could switch your upstream to
 [2017-10-24 08:26 UTC]
-Status: Open +Status: Suspended
 [2017-10-24 08:26 UTC]
This package has not had a release for over 4 years, and the last bit of git activity was over 2 years ago, so I think its safe to say this extension is no longer in active development. If development picks back up, then please re-open this report
 [2017-10-24 16:36 UTC] jc at unternet dot net
There's an active bounty on this bug at the developers who solved it need the bug to be *closed* so we can claim it.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 12:01:29 2024 UTC