php.net |  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
Votes:2
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
Description:
------------
xhprof fails to build from source on ppc64le.
This has been tested on Debian Jessie.
Version is master 0bbf2a2 from https://github.com/phacility/xhprof.git



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


Patches

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

Pull Requests

History

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

(can't use the "pull request" field, as it's not under the github.com/php 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
https://github.com/phacility/xhprof/pull/97

you can get free access to powerpc systems through IBM's PDP program: https://www-356.ibm.com/partnerworld/wps/servlet/ContentHandler/stg_com_sys_power-development-platform or alternatively, OSU: http://osuosl.org/services/powerdev/
 [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 https://github.com/jcomeauictx/xhprof
 [2017-10-24 08:26 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 08:26 UTC] kalle@php.net
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 bountysource.com. 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 Oct 11 13:01:27 2024 UTC